File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Permanent path environment setting..." Watch "Permanent path environment setting..." New topic
Author

Permanent path environment setting...

Hongqing Lu
Greenhorn

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?
Thanks
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

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: http://aspose.com/file-tools
 
subject: Permanent path environment setting...
 
Similar Threads
Need help in compiling servlet
JBOSS Installation in Solaris
Ant 1.7.1 installation
Installation Problem in j2sdkee1.2.1
QUERY INSTALLING XERCES-2.6.2 with JSDK1.4