• Post Reply Bookmark Topic Watch Topic
  • New Topic

setting classpath and path and java_home in unix environment?  RSS feed

 
Ganeshkumar cheekati
Ranch Hand
Posts: 362
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can anyone tell me how to set classpath,path and java_home in environment variables in unix o/s?

Thanks in advance
 
Campbell Ritchie
Marshal
Posts: 56584
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but you probably only need to set the PATH, and should leave the other two alone. It might be similar to Linux, as in this FAQ. Or you can Google for set PATH environment variable Unix, and you find this, which might be useful. The "Common Problems" page is headed "unix" but talks about Solaris and Linux. You can look in the installation instructions, too.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which Unix? Are you using Linux, or some other Unix-like operating system (Solaris, HP-UX, AIX, BSD, ...). Each of these have different preferred ways of setting environment variables permanently.

On recent versions of Ubuntu, you can edit the file /etc/environment (and then reboot).
 
Campbell Ritchie
Marshal
Posts: 56584
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I always wondered where the default PATH lives. Thank you, Jesper.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!