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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-12-2005, 06:53 PM   #1
dns21
Member
 
Registered: Feb 2004
Location: AZ
Distribution: Slackware, Ubuntu, CentOS, Debian
Posts: 139

Rep: Reputation: 15
can't find java or javac with which command in slack 10.1 but j2re is installed


Is there something simple that I am missing here? I am trying to install Limewire and need to use "java -jar LimeWire.jar" because of their sloppy ways with the new version. Using sh also reports that it cannot find "java". I can't download j2re from sun's website because it redirects me because it shows that i have java installed. Any help would be appreciated.
 
Old 02-12-2005, 07:51 PM   #2
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
Your problem can be caused by a number of things, and there's also more than one way to solve it, I guess.

(1) Try setting environment variable:

export JAVA_HOME <install dir of JRE>
export PATH $JAVA_HOME:$PATH

OR

(2) Create a softlink in a place included in your path.

Important: Run your command as user, not root. Root has a much shorter PATH, usually, than any other user, and can not normally do much with Java.

gargamel
 
Old 02-12-2005, 07:51 PM   #3
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, OpenSuSE
Posts: 1,839

Rep: Reputation: 242Reputation: 242Reputation: 242
Your problem can be caused by a number of things, and there's also more than one way to solve it, I guess.

(1) Try setting environment variable:

export JAVA_HOME <install dir of JRE>
export PATH $JAVA_HOME:$PATH

OR

(2) Create a softlink in a place included in your path.

ln -s <JRE install path>/bin/java java

Important: Run your command as user, not root. Root has a much shorter PATH, usually, than any other user, and can not normally do much with Java.

gargamel
 
  


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
eclipse is not noticing that I have j2re already installed. blufire Linux - Software 1 07-18-2005 06:54 PM
Firefox 0.8 and J2RE 1.4.2_03(Java) Comreak Linux - Software 31 12-09-2004 02:38 AM
Successfully installed blackdown-jdk14; no java/javac coindood *BSD 1 09-27-2004 05:40 PM
java j2re . bin nOOb1kanobee Linux - Newbie 27 02-09-2004 05:46 AM
Where can I get j2re (java) for RH 9.0? TippyToes Linux - General 5 06-17-2003 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:47 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