Click to See Complete Forum and Search --> : classpath
EscapeCharacter
02-13-2001, 09:39 AM
im trying to install(run) forte for java and im getting errors saying that
"Exception in thread "main" java.lang.NoClassDefFoundError: forte_ce_2/class"
ive set my CLASSPATH to just about everything i could think of and i still get this error its really starting to bug. so what is my CLASSPATH suppose to be?
p.s. yes i did log out after making the changes to classpath.
frustratedlinuxnewbie
02-13-2001, 11:37 AM
I'm not sure about this, but you could try java -classpath . yourClass
or, you could add . to your CLASSPATH environment variable.
[ 13 February 2001: Message edited by: frustratedlinuxnewbie ]
EscapeCharacter
02-13-2001, 11:44 AM
i have added the classpath to my env but still nothing the thing is im not really sure what the path has to be is it a file or a directory? and if its a file what file
frustratedlinuxnewbie
02-13-2001, 11:51 AM
Had you tried using "." ? As far as I know, "." would mean the current directory, or, if your class is located somewhere else, like ~/projects/java, then your classpath would be ~/projects/java. I'm not sure about this though, but you could try it at least. I hope this helps.
frustratedlinuxnewbie
02-13-2001, 11:53 AM
Oh, and java code must be compiled first using javac, unlike our bash and perl scripts. Java should be ran on a .class file, not on a .java file.
[ 13 February 2001: Message edited by: frustratedlinuxnewbie ]
EscapeCharacter
02-13-2001, 12:40 PM
well i figured out what was wrong i was suppose to leave off the .class
so "java -cp /home/escape forte_ce2" works