Two Laptop Bag
The moose likes Applets and the fly likes Detecting the Microsoft JVM Build Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Detecting the Microsoft JVM Build" Watch "Detecting the Microsoft JVM Build" New topic
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
    
  13

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Detecting the Microsoft JVM Build
 
Similar Threads
Rollback Problem
Unable to read properties file using resouce bundle
System.getProperty(String)
JVM and Certificate
jsp:getProperty