File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Setting path and class path in solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Setting path and class path in solaris" Watch "Setting path and class path in solaris" New topic

Setting path and class path in solaris

Priya Kubher

Joined: Jan 07, 2003
Posts: 10
Hi how do i set the path and classpath in solaris sparc 8.
I have downloaded j2sdk1.4.1_01 to a folder called Java.Please advise
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

Hi Priya,
You need to set the PATH and CLASSPATH environment variables. How you set them depends on what (login) shell you are using. If you are using Bourne (sh), Korn (ksh) or BASH (bash), then you can type the following command:

and replace "<path to java>" with the full path of the directory where the "java" executable is located. Use similar syntax for setting CLASSPATH.
For example, on my SUN [sparc] with Solaris 7, <path to java> is:

Of-course, I don't know how much experience you have with Solaris, so I don't know if the above is sufficient for you (or not).
Hope this helps.
Good Luck,
I agree. Here's the link:
subject: Setting path and class path in solaris
It's not a secret anymore!