well, you're not using the official JDK there.
Check your $PATH and $JAVA_HOME environment settings and make sure they point to your JDK installation.
As it is you're pointing to gcj which is to put it bluntly a disaster, I'm surprised you got anything to compile and/or run under it at all.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
read some Unix tutorials.
This has nothing to do with Java per se, but core operating system knowledge.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
how to set the $PATH..i have no idea,plz help!
To view what's currently in your PATH or JAVA_HOME variable:
# echo $PATH
# echo $JAVA_HOME
You'll see a list of paths seperated by colons. If the path where you installed Java is not in either of these, you should probably add them like so (add them to both, just to be safe):
# PATH=$PATH:/path/to/add
# JAVA_HOME=/where/java/is/installed
Of course, these paths are only temporary. To permenantly add them, you'll need to edit your .bash_profile or some other startup script that your distro uses. Again, refer to documentation for exact instructions.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339