Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
32 user(s) are online (23 user(s) are browsing Forums)

Members: 0
Guests: 32

more...

Support us!

Headlines

 
  Register To Post  

Java-OS4 0.5.0 (beta)
Not too shy to talk
Not too shy to talk


See User information
Beta: Java 8 for AmigaOS 4 (PowerPC) - JamVM 2.0 + OpenJDK 8 on clib4, with a native AWT/Swing toolkit.

https://github.com/derfsss/java-os4/releases/tag/v0.5.0

Quote:
Java-OS4 stands on a great deal of prior work, with gratitude:

JAmiga by jaokim — the Java-on-Amiga effort this project revives and extends. The AmigaOS 4 JamVM port and the IcedTea 8 build harness are the foundation we built on.


Quote:
First beta release of Java-OS4 — a Java 8 runtime for AmigaOS 4 (PowerPC): JamVM 2.0 + the OpenJDK 8 class library on clib4, with a native AWT/Swing toolkit so Java GUIs run in Workbench windows.

What works
Headless Java 8 programs — collections, streams/lambdas, NIO, reflection, serialization, zip, text.
Swing/AWT GUIs in Intuition windows: real mouse and keyboard input, window resize, modal dialogs, fonts via FreeType.
Zero-flag GUI launch: java -cp app.jar Main starts a Swing app with no special options.


https://en.wikipedia.org/wiki/Vibe_coding

Go to top
Re: Java-OS4 0.5.0 (beta)
Amigans Defender
Amigans Defender


See User information
@derfs

Excellent works mate!!!

i'm really tired...
Go to top
Re: Java-OS4 0.5.0 (beta)
Home away from home
Home away from home


See User information
Sounds interesting for sure !

It said "Java GUIs run in Workbench windows" , it mean not proper integration with menus and co, but main intution window in which all "alien" interface are ? Just like it was with firefox/timberwolf ?

Anyway, is there anything which were tested and worked which can show how it all ? I mean, not simple test cases, but something which using swing/awt so we can have see how it acts now on os4 ?

Thanks!

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Java-OS4 0.5.0 (beta)
Not too shy to talk
Not too shy to talk


See User information
@afxgroup

Its only possible thanks to your clib4!

Go to top
Re: Java-OS4 0.5.0 (beta)
Home away from home
Home away from home


See User information
@derfs

Its the continuation of the old work of Jaokim or its a new fresh implementation?

Go to top
Re: Java-OS4 0.5.0 (beta)
Not too shy to talk
Not too shy to talk


See User information
@kas1e

Im adding things as I go, however its really just a stepping stone towards OpenJDK 17 LTS support.

Go to top
Re: Java-OS4 0.5.0 (beta)
Not too shy to talk
Not too shy to talk


See User information
@samo79

Based on the work of Jaokim.

Go to top
Re: Java-OS4 0.5.0 (beta)
Just popping in
Just popping in


See User information
That is really awesome!

Alien Air Attack

SAM440@733 mhz as main amiga.
Go to top
Re: Java-OS4 0.5.0 (beta)
Home away from home
Home away from home


See User information
@derfs
Tested briefly:

- you added Assign >NIL: JAVA: "path:Java/" , to user-startup, but didn't mention user need to reboot before he can run "java" binary.
- also, with this one assign you can't run "java" bin from anywhere, you need to run it like "java:java -version", because pure "java" will not find it, as JAVA: assing isnt' added as system one.
- "java" file is script, but not marked as executable. Probably you pack archive wrong or forget about bit set (or copy it from pc where it looses). protect +es fixed it.

Didn't find any working test examples in archive, but so far it seems to runs, and -version working.

Join us to improve dopus5!
AmigaOS4 on youtube
Go to top
Re: Java-OS4 0.5.0 (beta)
Just can't stay away
Just can't stay away


See User information
@kas1e

Quote:
- also, with this one assign you can't run "java" bin from anywhere, you need to run it like "java:java -version", because pure "java" will not find it, as JAVA: assing isnt' added as system one.
isn't that just a matter of running it once with the path, and then it will be in APPDIR:, which by default is in the system path?

Best regards,

Niels

Go to top
Re: Java-OS4 0.5.0 (beta)
Home away from home
Home away from home


See User information
@kas1e

Intuition and graphics.library, is correct approach sense just lowlevel api's the JavaVM has to interface with.. Reaction/Mui is too highlevel, Java has its own GUI system.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Java-OS4 0.5.0 (beta)
Amigans Defender
Amigans Defender


See User information
@derfs

Jest tried a Swing tetris clone and:

1) keys are not working
2) When I close the window the system freeze. With sashimi I can see amiga_exit but the window is not closed and of course it doesn't return to console

I've compiled in on Linux with java 11 and tested on OS4

i'm really tired...
Go to top
Re: Java-OS4 0.5.0 (beta)
Home away from home
Home away from home


See User information
@afxgroup

Probably the standard problems, none initialized pointers (causes random pointer values), and not checking if they allocated before freeing, freeing things twice, (freeing things while things are in-use. Async issues)…

I have noticed when vibe coding that AI’s often write code as examples not production code. I think Vibe coding might work better in Phyton and other languages where don’t need to be so picky.

It can well be that on Windows if free object it also close it, that is not true for AmigaOS. I doubt AI knows the different behavior of different OS's.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: Java-OS4 0.5.0 (beta)
Not too shy to talk
Not too shy to talk


See User information
I think the important thing on vibe coding is - don‘t let
it do the whole stuff. Do it one method at a time or at
least class at a time. And do a manual review of the produced code,
at least roughly.

Let it do repetitive and copy/paste work or api replacement. But
the real big stuff and architectural work do yourselves.

Go to top
Re: Java-OS4 0.5.0 (beta)
Just popping in
Just popping in


See User information
@derfs

clib4 is missing from the requirements over the readme.Otherwise it won't work.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project