LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-01-2003, 05:07 AM   #1
jolly
Member
 
Registered: Mar 2001
Posts: 63

Rep: Reputation: 15
How to set classpath for jdk


I have installed the jdk-1.2 rpm java is in /usr/java
How do I setup the classpath for java and test if jdk is installed.

Thanks
 
Old 05-01-2003, 05:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php
 
Old 05-01-2003, 05:31 AM   #3
membrax
Member
 
Registered: Nov 2002
Location: 50'48''N - 4'21''E
Distribution: SuSE7.1 - SuSE8.1 - SuSE8.2 - RH6.2 - RH7.1 - RH7.3 - RH8.0 - RH9.0 - Fedora Core 1
Posts: 281

Rep: Reputation: 30
in console type :
$ which java

if you get this :
/usr/bin/java

then it's nicely installed
 
Old 05-01-2003, 05:56 AM   #4
jolly
Member
 
Registered: Mar 2001
Posts: 63

Original Poster
Rep: Reputation: 15
Which java is not working
 
Old 05-01-2003, 05:58 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php


please do not reply to this thread, use the other one, thanks
 
Old 05-01-2003, 08:48 AM   #6
Ju Deddo Koinu
Member
 
Registered: Apr 2003
Location: Austin, TX
Distribution: RedHat 9 w/ KDE
Posts: 86

Rep: Reputation: 15
code:
-----
[root@cs6625135-156 etc]# which java
/usr/java/j2re1.4.1_02/bin/java
-----

It lets me execute the command.... But my java isn't working according to other programs (which I am working on getting installed.... Java still claims it can't find itself or something insane - heh)
 
  


Reply



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 CLASSPATH mohama Programming 8 12-17-2005 03:17 AM
how to set java classpath on Redhat 9? antony_csf Programming 9 11-26-2004 05:48 AM
How to set CLASSPATH of java in Linux? vanhelsing Programming 1 08-23-2004 06:16 AM
How to set classpath for jdk jolly Linux - Software 4 05-01-2003 08:24 AM
How to set classpath for java jolly Linux - Software 3 04-22-2003 10:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 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
Open Source Consulting | Domain Registration