jQuery in Action, 3rd edition
The moose likes Linux / UNIX and the fly likes About Solaris Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "About Solaris" Watch "About Solaris" New topic

About Solaris

Shakti Palo

Joined: Nov 10, 2005
Posts: 23
Hai everybody !!
Does anybody knows Solaris ? If yes kindly let me know about the environmental settings for executing java.

With Thanks to all
Ed Tse
Ranch Hand

Joined: Sep 18, 2003
Posts: 183
I have had experience running java almost on any platforms(win32, win ia64, aix, linux, solaris sparc or x86, irix, hpux) and they are all the same (except ; vs : on path separation). Is java installed and is in your path? If yes, just do a java -jar runme.jar. If it is not installed, just install it , it's just an executable that will extract itself which you can download from sun's site. If I didn't answer your question, can you be more specific on your question?
[ March 19, 2006: Message edited by: Ed Tse ]

SCJP, Pre-SCJD (URLyBird 1.3.1), Teradata Cert'd Prof
Bob Nedwor
Ranch Hand

Joined: Aug 17, 2005
Posts: 215

I use Solaris 10 (x86 version) on my PC at home. It is fun.

These 2 commands help me with my CLASSPATH:


I have no idea where my JAVA_HOME environment variable is being set. It is not in my .envfile and not in my .profile.

But I know that when I say "java -version", this is what happens:

consman01 /home/consman01>java -version
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
consman01 /home/consman01>

I hope this helps.

Bob N
SCJP - 1.4
SCJD - (B&S) Used 1.5 And It Runs On Solaris10
SCWCD - Thanks to HFSJ!!
B Chen
Ranch Hand

Joined: Dec 27, 2005
Posts: 89
Originally posted by Bob Nedwor:
I have no idea where my JAVA_HOME environment variable is being set. It is not in my .envfile and not in my .profile.

Maybe in /etc/profile ?

SCJD<br />SCJP 1.4
Ed Tse
Ranch Hand

Joined: Sep 18, 2003
Posts: 183
I don't think JAVA_HOME needed to be set in your profile. A default setup usually have /usr/bin pathed and a softlink is created as /usr/bin/java. If you want to install a new java 1.5.0, just go download it and put it in some where and recreate a softlink that points to your new java directory.

Fun factor of Solaris x86 is not much for me, as I don't find a solaris useful personally. If you want to get a feel for the *nix, I would recommend a linux which I use regularly (not for this assignment) Given that, I do have a vmware image for solaris x86 for testing purpose for this assignment.
[ March 20, 2006: Message edited by: Ed Tse ]
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11776

Moved to the Linux/UNIX forum.

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

Java under Solaris and Java under Linux are almost the same. The main difference is that (In My Humble Opinion), the conventional place where the JDKs get installed is a little saner in Linux than in Sun's own OS.

JAVA_HOME is not even used by Java itself - it's just a convention that many Java apps have taken as a locator for the JDK to be used. Tomcat and WebLogic are two such apps.

CLASSPATH of course, is always popular. But in a lot of my stuff it's empty, since I get my class path from other sources.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link: http://aspose.com/file-tools
subject: About Solaris
It's not a secret anymore!