This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "About Solaris" Watch "About Solaris" New topic
Author

About Solaris

Shakti Palo
Greenhorn

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
Shakti
sp.palo@gmail.com
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
hangman
Ranch Hand

Joined: Aug 17, 2005
Posts: 215

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

These 2 commands help me with my CLASSPATH:

CLASSPATH=/bobs_javas/myproj/
export 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


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: 11280
    
  59

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: 15662
    
  15

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About Solaris
 
Similar Threads
Apache plugin authentication
Certification
Trusted Solaris?
SUN Microsystem's gone MAD!
Posting Solaris OS