| Author |
Detecting the Microsoft JVM Build
|
Ron Baker
Greenhorn
Joined: Oct 12, 2004
Posts: 3
|
|
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
Joined: Jul 08, 2003
Posts: 24057
|
|
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
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: Detecting the Microsoft JVM Build
|
|
|