Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

How to determe JRE build using Java?

Thread view: 
Mickey Segal - 25 Jan 2006 16:44 GMT
Is there a way to determine the Java build from within Java?

I can do so from the Windows command line using:
java -version
For the latest Sun JRE build I get:
build 1.6.0-rc-b68

However, using "java.version" inside a Java program all I get it:
1.6.0-rc

Is there some way to get the full information from inside Java?
Chris Uppal - 25 Jan 2006 17:21 GMT
> Is there a way to determine the Java build from within Java?

I don't know how universal it is, but on my 1.5.0.x machines the standard
system property "java.vm.version" is the same as that printed by:
   java -fullversion

   -- chris
Mickey Segal - 25 Jan 2006 17:27 GMT
> I don't know how universal it is, but on my 1.5.0.x machines the standard
> system property "java.vm.version" is the same as that printed by:
>    java -fullversion

Thanks.  That works.  It was not on the list I have of System properties,
but all I need is for it to work on my computers.
Chris Uppal - 25 Jan 2006 17:59 GMT
>  It was not on the list I have of System properties,

You can find an updated list at:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()

(if the URL doesn't break...)  Not that the documentation /says/ very much, but
it is there ;-)

   -- chris
Roedy Green - 25 Jan 2006 20:14 GMT
On Wed, 25 Jan 2006 18:00:58 -0000, "Chris Uppal"
<chris.uppal@metagnostic.REMOVE-THIS.org> wrote, quoted or indirectly
quoted someone who said :

>>  It was not on the list I have of System properties,
>
>You can find an updated list at:
>
>http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#getProperties()

see http://mindprod.com/jgloss/properties.html
for an extended list of properties.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Mickey Segal - 25 Jan 2006 20:56 GMT
> see http://mindprod.com/jgloss/properties.html
> for an extended list of properties.

I should have looked there to start with.  Thanks.  BTW, several of the
applets on that page fail with 1.6.0-rc-b68.
Roedy Green - 26 Jan 2006 00:53 GMT
On Wed, 25 Jan 2006 15:56:39 -0500, "Mickey Segal"
<not_monitored@example.com> wrote, quoted or indirectly quoted someone
who said :

>Thanks.  BTW, several of the
>applets on that page fail with 1.6.0-rc-b68.
oh dear. What does the console say.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Mickey Segal - 26 Jan 2006 01:37 GMT
> oh dear. What does the console say.

The messages seem to focus on problems finding files.  I emailed the full
output to your feedback email address.
Roedy Green - 26 Jan 2006 05:04 GMT
On Wed, 25 Jan 2006 20:37:27 -0500, "Mickey Segal"
<not_monitored@example.com> wrote, quoted or indirectly quoted someone
who said :

>The messages seem to focus on problems finding files.  I emailed the full
>output to your feedback email address.

What appears to be happening is URL.getConnection is failing to find a
file and return with null without raising an IOException.  I am in the
process of posting a version that checks for that and raises the
exception.  However that does not explain why you can't see the files.
From the log you sent, you can see some, but not others.  I checked
with ftp. They are there. I can see them from here. I gather something
interferes between you and mindprod.com

It would be interesting to see if this has to do with your connection
or with JRE 1.6.

Has any one else noticed the JDisplay colourised
java/bat/html/sql/ini... listings failing with null pointer exceptions
at mindprod.com?

Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Roedy Green - 25 Jan 2006 20:11 GMT
On Wed, 25 Jan 2006 11:44:16 -0500, "Mickey Segal"
<not_monitored@example.com> wrote, quoted or indirectly quoted someone
who said :

>I can do so from the Windows command line using:
>java -version
[quoted text clipped - 5 lines]
>
>Is there some way to get the full information from inside Java?

I think you want the property java.vm.version.

see http://mindprod.com/applets/wassup.html

to browse what's available.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.