• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Setting path and class path in solaris

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1143
1
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
Avi.
 
reply
    Bookmark Topic Watch Topic
  • New Topic