Do I or Don't I have Java installed
I can't figure if I have a java compiler installed or not. Imagine that!
Hopefully this output will help someone help me: pat@linux pat]$ whereis javac javac: /usr/bin/javac [pat@linux pat]$ whereis java java: /usr/bin/java /usr/share/java [pat@linux pat]$ java HelloWorldApp.class Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldApp.class at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.4.0.0) at _Jv_ThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.4.0.0) at _Jv_RunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.4.0.0) at __libc_start_main (/lib/i686/libc-2.3.2.so) As always, thanks! |
Is there something like a JAVALIB environment variable you're missing or something maybe? I don't know too much about java, but that's where I'd look first. Sorry :)
|
you did:
Code:
java HelloWorldApp.class Code:
java HelloWorldApp |
Thank you! That did it. I should be a Java master by next week :study:
|
All times are GMT -5. The time now is 03:28 AM. |