Hi,
I am running Linux with a 2.6.25 kernel on a G3 PPC powerbook (yes, I know - cutting edge :-) ). I have OpenJDK 6 installed and I have tried OpenJDK 7. I can compile and run a simple class from the command line using either JDK.
I have tried to use DrJava versions drjava-stable-20080106-0744 and drjava-20080415-1537-r4441 to do the same thing, but I consistently get the error:
File: (no associated file) [line: (no source location)]
Error: java.lang.NoClassDefFoundError: com/sun/tools/javac/util/DefaultFileManager
Using OpenJDK 6 and selecting its tools.jar, the DrJava GUI identifies the Compiler as JDK 6.0, so it seems to know about it. The system has both its JRE and JDK set to the OpenJDK 6 version and that's what's running the DrJava jar.
Any clues?
Thanks,
MC
Logged In: YES
user_id=430590
Originator: NO
DrJava uses a programmatic interface (rather than the command line) to invoke javac and retrieve the list of errors generated by an invocation of javac. Each compiler has a different programmatic interface. We have never tried using OpenJDK, but I suspect that the javac compiler in this JDK does not support the same programmatic interface as the Sun javac compiler. I presume you are running OpenJDK because Sun does not support Java on the PPC platform. If there is an OpenJDK for the Intel platform, I will take a look at producing a compiler adapter for the OpenJDK. The issue is not the native instruction set but the form of the source level code (and hence the bytecode) for javac. We do not have any PPC machines in our lab.
Logged In: YES
user_id=1277767
Originator: YES
Thanks Robert. You are correct, I am indeed using OpenJDK on the G3 because Sun does not support the PPC architecture.
There is an Intel version of OpenJDK in both 32 and 64 bit I think.
I'll keep my fingers crossed that you are able to produce a compiler adapter that works with OpenJDK.
--
MC
There is a solution. First go to java.sun.com and go to the Downloads area. Get the RPM (.rpm.bin file) for the JDK. You will then need to become root. Give the .bin execute permissions. Then execute it to install it.
After that, go here and do a find on "--configure"; this will put you in the middle of instructions for making the Sun JDK your active java version.
http://www.my-guides.net/en/content/view/103/26/
Finally, locate the tools.jar file in the sun SDK (do an update db first) and Voila! All works.
JMM
Thanks for the tip JMM. I have taken a look at the downloads area at java.sun.com and I can't seem to see a download there for the PPC architecture. Would you have a direct link to a page that does please?
Thanks
--
MC