Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
  #1  
Old October 21st, 2002, 12:31 PM
Bikes Bikes is offline
Techie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Posts: 13 Bikes User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to Bikes
Red face path

I downloaded the JDK and I cant get my java and javac to work. It keeps telling me 'command not found' even when I am in the bin directory. I am running RH Linux and tried setting the CLASSPATH in the sh shell by typing

CLASSPATH=the java home

export CLASSPATH


actually, my main problem is getting the variables to stick. It dissapears whenever I restart

Reply With Quote
  #2  
Old October 21st, 2002, 12:39 PM
realnowhereman realnowhereman is offline
Not there when you need me
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2001
Location: Berlin, Germany
Posts: 1,438 realnowhereman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 46 sec
Reputation Power: 8
Re: path

Quote:
Originally posted by Bikes
It keeps telling me 'command not found' even when I am in the bin directory.

"Execute file 'javac' which is located in the current directory":
Code:
./javac

Quote:
I am running RH Linux and tried setting the CLASSPATH in the sh shell by typing

CLASSPATH=the java home

export CLASSPATH

Shorter:
Code:
export CLASSPATH=foo
(With the correct value of foo, of course.)
Quote:
actually, my main problem is getting the variables to stick. It dissapears whenever I restart

Put the export line(s) into /etc/profile.local (or, if your /etc/profile does not source profile.local, directly into /etc/profile) if you want the variables to be available for all users or into ~/.profile if you only want them for your account.

HTH

Reply With Quote
  #3  
Old October 21st, 2002, 12:45 PM
karmic2's Avatar
karmic2 karmic2 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Posts: 6 karmic2 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You can also add JAVA HOME/bin to your PATH, like that you can run javac or any other of the java executables from anywhere. Use:

PATH=$PATH:java home/bin
export PATH

from which file you end up using as suggested
by realnowhereman

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > path


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway