954,193 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

problem with java in fedora4

hi!! i'm new to java and need some help! i installed j2sdk on fedora4.it installed successfully.i could also compile & run 2 programs successfully. but after i restarted the computer and tried compiling using javac it gave me an error...
javac:symbol lookup error:/usr/lib/libjc.so.6:undefined symbol : ztvn4java3awtgeo118

i tried it so many times and also reinstalled it,but it gives me the same message.somebody please tell me what is the problem

laddu
Newbie Poster
9 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

You're in the wrong forum. Try posting in the Tech Talk/Unix and Linux forum for problems with Linux. This forum is about problems related to developing software with Java.

Dukane
Posting Whiz in Training
295 posts since Oct 2006
Reputation Points: 45
Solved Threads: 29
 

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
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

how to set the $PATH..i have no idea,plz help!

laddu
Newbie Poster
9 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

read some Unix tutorials.
This has nothing to do with Java per se, but core operating system knowledge.

jwenting
duckman
Team Colleague
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
Team Colleague
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
 

i'm sorry for posting in the wrong forum

And thanx to all your help,my java is running now.I had to set $PATH & $JAVAHOME /etc/profile.Thanx a lot

laddu
Newbie Poster
9 posts since Nov 2006
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: