|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
||||
A quick google search seems to indicate that the CLASSPATH environment variable is unset or set improperly.
Java lives in /usr/local/jdk-<version> or /usr/local/diablo-jdk-<version>, depending on which version you installed. |
|
|||
Quote:
Code:
javac Test.java |
|
||||
Quote:
I use csh, so i tried: setenv CLASSPATH /usr/local/jdk1.5.0 setenv CLASSPATH /usr/local/jdk1.5.0/bin setenv CLASSPATH "/usr/local/jdk1.5.0/bin;/usr/local/jdk1.5.0/jre......." and some more.... Now i'm compiling jdk1.6 maybe that will work |
|
||||
From http://java.sun.com/j2se/1.3/docs/to...classpath.html
Quote:
|
|
|||
Your CLASSPATH should be set to the full path of the jar files containing the necessary classes, or the directory the .class files are in.
|
|
|||
Well do you know what class you need and where it's located on your system?
Adam |
|
||||
sorry for my noobish noobishness, i found what the hell was wrong... for most part it was program.....
lol everything worked using java -classpath . hello But interesting thing is that example form books CD doesn't compile with javac...... (i might know why) Wonder if complex programs will work..... Last edited by graudeejs; 9th July 2008 at 06:53 PM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Java and AI-programming | idefix | Programming | 4 | 7th February 2009 01:41 PM |
FreeBSD 7 and Java? | Atazoth | FreeBSD General | 3 | 10th September 2008 10:38 PM |
java compiler | bsdnewbie999 | OpenBSD Packages and Ports | 8 | 9th August 2008 12:18 PM |
Java JDK | Oko | OpenBSD Packages and Ports | 10 | 13th July 2008 07:39 PM |
Odd Java Issue | DrJ | FreeBSD Ports and Packages | 0 | 12th May 2008 12:35 AM |