This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Linux / UNIX and the fly likes Permanent path environment setting... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Permanent path environment setting..." Watch "Permanent path environment setting..." New topic

Permanent path environment setting...

Hongqing Lu

Joined: Jan 14, 2004
Posts: 13
I want to run javac command in linux in any directory.
I think PATH environment variant should be there just like windows.
How to set this environment?
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24193

in your ~/.bash_profile file, have a line like
export PATH=/usr/java/j2sdk1.4.2/bin:$PATH
[edited to add the 'bin' directory which is where javac is to be found]
[ February 18, 2004: Message edited by: George Brown ]

[Jess in Action][AskingGoodQuestions]
I agree. Here's the link:
subject: Permanent path environment setting...
It's not a secret anymore!