Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Permanent path environment setting...

 
Hongqing Lu
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic