Win a copy of Cloud Native PatternsE this week in the Cloud forum
or Natural Language Processing in the AI/ML 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!