I ran export CLASSPATH=/home/deltrem/jscheme/jscheme.jar
, but now kawa, which was working, doesn't work any longer. Is there a way to revert the CLASSPATH?
You have 3 solutions: add this class in the path of your other compiled classes (respecting the package naming of your directories) add the root directory of this class in your classpath (in your case "C:\java\project\") add this single class into a jar and add this jar to the classpath.
The default class path is the current directory. Setting the CLASSPATH variable or using the -classpath command-line option overrides that default, so if you want to include the current directory in the search path, you must include "." in the new settings. Classpath entries that are neither directories nor archives (.
To check our CLASSPATH on Windows we can open a command prompt and type echo %CLASSPATH%. To check it on a Mac you need to open a terminal and type echo $CLASSPATH.
I found it!
set CLASSPATH=
http://download.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html
if you are using it from terminal you can close that terminal window and open a new one. or
export CLASSPATH=
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With