Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reset classpath

Tags:

java

linux

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?

like image 263
Delirium tremens Avatar asked Dec 17 '10 15:12

Delirium tremens


People also ask

How do I fix a classpath problem?

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.

What is the default 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 (.

How do I know if my classpath is set correctly?

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.


2 Answers

I found it!

set CLASSPATH=

http://download.oracle.com/javase/1.3/docs/tooldocs/win32/classpath.html

like image 56
Delirium tremens Avatar answered Sep 30 '22 13:09

Delirium tremens


if you are using it from terminal you can close that terminal window and open a new one. or

export CLASSPATH=
like image 36
James Bone Avatar answered Sep 30 '22 13:09

James Bone