LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-22-2003, 08:13 AM   #1
jolly
Member
 
Registered: Mar 2001
Posts: 63

Rep: Reputation: 15
How to set classpath for java


how do I setup class path for jave. I installed it by using rpm. Java is in /usr/java

Thanks
 
Old 04-22-2003, 08:42 AM   #2
matt combe
LQ Newbie
 
Registered: Apr 2003
Distribution: RedHat 8.0
Posts: 5

Rep: Reputation: 0
if i remember correctly you jusst type into bash:
"export CLASS_PATH=$CLASS_PATH:/usr/java/(its either lib or bin im not sure -- i think bin)

but u wont b able to use the jre until u simlink it to ur browser file eg. /home/.mozilla/plugins
 
Old 04-22-2003, 11:08 AM   #3
dfbreyes
LQ Newbie
 
Registered: Apr 2003
Location: Makati, Philippines
Distribution: RedHat, SuSE, Gentoo
Posts: 25

Rep: Reputation: 15
let's say you downloaded j2sdk1.4.1_01 and placed it in /usr/local

#edit/ add to /root/.bash_profile

export JAVA_HOME=/usr/local/j2sdk1.4.1_01
export PATH=$PATH:${JAVA_HOME}/bin

to check version
java -version
 
Old 04-22-2003, 11:02 PM   #4
homyarb
LQ Newbie
 
Registered: Mar 2003
Location: India
Distribution: RedHat, Mandrake
Posts: 11

Rep: Reputation: 0
You can also set the java classpath at runtime with the -c option of java.
java -c <Path to class/jar/zip files to be included i nthe classpath> <java class name to be run>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set java classpath on Redhat 9? antony_csf Programming 9 11-26-2004 06:48 AM
How to set CLASSPATH of java in Linux? vanhelsing Programming 1 08-23-2004 07:16 AM
I've set the CLASSPATH, but I still get a noClassDefFoundError. (Java) Travis86 Programming 6 02-05-2004 10:09 AM
set classpath in linux(slackware9) for java Manjula.S Linux - Software 1 10-16-2003 03:10 AM
set up path,classpath in linux(slaware9) for java Manjula.S Linux - Software 5 10-07-2003 12:38 AM


All times are GMT -5. The time now is 12:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration