Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

System Properties

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In Sun's java documentation, there's a list of System Properties that (supposedly) are available from the JVM. Some require security certification. I am specifically interested in reading the JVM version. So far, I've been able to access a boatload of 'secure' properties using a signed JAR under IE5.5.
But the one property I'm interested in - java.vm.specification.version - returns null. I suppose this is an example of Microsoft's variance from Sun's standards, but if anyone knows how this can be done, I'd love to see it.
Thanks,

MjM
 
Mike Martinet
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to let everyone know...
The JVM version, on Windows systems anyway, can be found in some zipped classfiles located in %winhome%\java\packages.
You'll have to write an iterator to go through the zipfiles and find the entry "version.txt" and then open the entry and read the first few lines to actually get the version number.
At least, that's the solution I'm going with. If anyone else comes up with something cleaner, I'd love to see it.

MjM
 
Destroy anything that stands in your way. Except this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic