Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Classpath

 
Dirk Trompetter
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
how can i set the java classpath on linux?
thanks,
dirk
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's right here in the tooldocs...

Basically, all you have to do is :


-Nate
[This message has been edited by Nathan Pruett (edited October 15, 2001).]
 
kim jungil
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dirk Trompetter:
Hi,
how can i set the java classpath on linux?
thanks,
dirk

under linux, if you install jdk under /usr/jdk1.3, then export /usr/jdk1.3 to system variable PATH to enable java, javac to run.
For classpath, export those package your are going to use to system variable CLASSPATH will be enough.
In most of the case, it is good to include . and .. in the CLASSPATH, this is to notice the JRE to find in the current directory and its parent directory.
 
Kem Bro
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what shell you run, but I set my CLASSPATH
variable in the .bashrc in my home directory. Handy also to
set JAVA_HOME here. Take a look, there should be other
examples in there aswell.
Cheers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic