• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Detecting the Microsoft JVM Build

 
Ron Baker
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing an applet that will detect the Microsoft JVM Build. i have the following code (simplified):



but i get:
test.java:6: package com.ms.util does not exist
build=com.ms.util.SystemVersionManager.getVMVersion().getProperty
^
1 error


i am using the j2sdk 1.4.2.

what am i missing?!

Any help would be greatly appreciated.
[ August 03, 2005: Message edited by: Ron Baker ]
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you're using a class that only exists in the Microsoft VM, you need to first realize that the applet will fail to start on a non-Microsoft VM. If you're OK with that, then what you need to do is to add the JAR or zip file containing those Microsoft classes to your classpath when you compile this code; i.e.,

javac -cp .;c:\wherever\whatever.zip test.java
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic