Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Java SDK 1

Status
Not open for further replies.

KenCunningham

Technical User
Mar 20, 2001
8,475
GB
Good morning. Firstly I apologise if this should be posted in a Java forum, but there seems a multiplicity of them, so I'm sticking to a forum I'm familiar with.

I've just built a test box using Solaris 8 patched with the latest cluster and our suppliers want Java SDK 1.4.2 installed for their testing. Simple enough thought I, and downloaded the install scripts:

j2sdk-1_4_2_13-solaris-sparc.sh and j2sdk-1_4_2_13-solaris-sparcv9.sh

Running these went OK, but the output from a java -version is now:

Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)

I'm now confused as I would have expected something more like:

Solaris VM (build Solaris_JDK_1.2.2_10, native threads, sunwjit)

which is the java -version output from another box, ie specifically mentioning SDK in the output. Can someone with more than my rudimentary knowledge of Java explain what's happening here and point out the error of my ways, please? Many thanks.


I want to be good, is that not enough?
 
Morning Ken,

Just did the same on my Sol8 boxes and am getting;

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) Server VM (build 1.5.0_10-b03, mixed mode)

So, I'm guessing that it is OK. The fact that the developers are not moaning suggests that this is OK.

HTH
Alan
 
Thanks Alan, that's reassuring. Anyone else who wishes to confound our optimism, please feel free!

I want to be good, is that not enough?
 
That looks correct to me. That's how it looks on all my systems.
Code:
$ java -version
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode)
 
Thanks for the confirmation Sam.

I want to be good, is that not enough?
 
We have some boxes with many different versions of java installed on each box. I guess different apps require different versions ?

Any ideas on how to script to check all versions of java installed on every box ?
 
I think maybe you could cd to each directory containing a java and run java -version from within?

I want to be good, is that not enough?
 
That would work but what I'm trying to do is scan around 300 servers using a script.
 
Sorry, dandan, didn't realise 'some' meant 300!!

Additionally, in my origianl would probably need you to do an export PATH=.:$PATH temporarily, so the current directory is searched first.

I want to be good, is that not enough?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top