![]() |
|
|||||||
| 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.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
|
Quote:
Code:
javac Test.java |
|
||||
|
Yes, i did,
# javac Test.java everything was OK but them, when i run java Test Or same with Hello progrram.... I got that dam error P.S. sorry, i'm in bad mood, i was searching for dam tzupdate....... (finally found it) |
|
||||
|
Well, what did you set the contents of CLASSPATH to? Are you sure it's set properly?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
|
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:
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
|
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.
|
|
||||
|
Sjeez man, show some initiative, search around in the Java directory, search the internet...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
|||
|
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 12: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 |