|
Amiga Inc. Faq-O-Matic : Amiga SDK FAQ :
Java problem can't find sun.tools.javac.Main |
The folowin output comes from a javac
Amiga 1.0:/$ javac demo/example/j/Hello.java
jcode: (*env)->FindClass returned an exception
java.lang.NoClassDefFoundError: sun.tools.javac.Main
java.lang.Throwable.init(java/lang/Throwable/class.asm:102)
Amiga 1.0:/$
It seems like the javac compiler is missing from the root dir
zingo |
There is a work-around for this problem but I dont know how legal it is! It seems that the base java classes were omitted from the disk images. This can be fixed by getting the classes.zip file from an SDK (I used Suns 1.1.8) and unzipping it in the directory from which you run intent_shell. The directories created should then be visible when you run the shell and accessible by the compiler. This DEFINATELY works as I wrote a simple GUI text editor in java and compiled it all from within elate.
I suspect the real (correct) java classes are in the pjavafull.img disk image but all attempts at booting this disk image have failed.
Hope this helps!
PhatBoi.
Rich |
I was also able to get this to work by installing the classes
contained in the classes.zip, however, I only extracted those
classes contained in the sun.tools package. The classes contained
in the java.* packages were already in place and pre-translated
into VP bytecode which presumably will perform better when used
by other classes at runtime.
I gather from the printed documentation that the included
Java development environment is based on 1.1.6. So to be on
the safe side I downloaded the JDK v1.1.6 from Blackdown
(www.blackdown.com). Note that Sun is now distributing 1.3
(1.1.6 is over a year old now).
rleighto |
See the new "Java and the Amiga SDK" subcategory in the "Amiga SDK FAQ" category for more details on this topic and more.
joe |
[Append to This Answer] |