Microsoft JDK4.0
Hi. I'm new to programming in MS Java. Please help!
When I tried to run the Java program (which uses a few of the WFC classes) using Jview, it outputs an error:
"
warning: running 1.2 version of SwingUtilities
java.lang.UnsatisfiedLinkError: java/security/AccessController.doPrivileged Pos
sible causes: If you are trying to use J/Direct (@dll.import), check your compil
er version (for JVC, requires 4336 or greater.) If you are trying to use RNI, th
ere are new requirements: see documentation.
at java/security/AccessController.doPrivileged
at sun/awt/AppContext.<clinit>
at sun/awt/AppContext.getAppContext
at javax/swing/SwingUtilities.appContextGet
at javax/swing/UIManager.getLAFState
at javax/swing/UIManager.maybeInitialize
at javax/swing/UIManager.getUI
at javax/swing/JPanel.updateUI
at javax/swing/JPanel.<init>
at javax/swing/JPanel.<init>
at javax/swing/JRootPane.createGlassPane
at javax/swing/JRootPane.<init>
at javax/swing/JFrame.createRootPane
at javax/swing/JFrame.frameInit
at javax/swing/JFrame.<init>
at ImageBrowserMain.<init>
at ImageBrowserMain.main
"
am I supposed to add some dll to the path? If so, what?
and when I tried to use java, the program outputs the error that it couldn't find the microsoft package (which is not unusual, since I didn't specify the classpath to that). Where exactly is the microsoft java classes anyway? Is there a way that I can run the program using Java?
Thanks.
[1643 byte] By [
ssst] at [2007-9-26 9:58:48]

Hi. I've tried prepending the paths to the rt.jar, i18n.jar, jaws.jar, sunrssasign.jar, dt.jar and tools.jar when I run jview as follows:
jview /cp:p c:\jdk1.3.0_02\jre\lib\rt.jar;c:\jdk1.3.0_02\jre\lib\i18n.jar;c:\jdk1.3.0_02\jre\lib\jaws.jar;c:\jdk1.3.0_02\jre\lib\sunrsasign.jar;c:\jdk1.3.0_02\lib\dt.jar;c:\jdk1.3.0_02\lib\tools.jar /p /v /vst java MyClass
But it still reports it couldn't locate java/lang/String class. Wouldn't that class be in the rt.jar? Should I edit the registry? or should I replace the class files in the java directories that is currently listed in the registry?
Anyone who's using MS JVM should be familiar with this, can someone just help?
A Really Desperate Person
ssst at 2007-7-1 21:46:41 >

> Hi. I've tried prepending the paths to the rt.jar,
> i18n.jar, jaws.jar, sunrssasign.jar, dt.jar and
> tools.jar when I run jview as follows:
>
> jview /cp:p
> c:\jdk1.3.0_02\jre\lib\rt.jar;c:\jdk1.3.0_02\jre\lib\i
> 18n.jar;c:\jdk1.3.0_02\jre\lib\jaws.jar;c:\jdk1.3.0_02
> \jre\lib\sunrsasign.jar;c:\jdk1.3.0_02\lib\dt.jar;c:\j
> dk1.3.0_02\lib\tools.jar /p /v /vst java MyClass
>
> But it still reports it couldn't locate
> java/lang/String class. Wouldn't that class be in
> the rt.jar? Should I edit the registry? or should I
> replace the class files in the java directories that
> is currently listed in the registry?
>
> Anyone who's using MS JVM should be familiar with
> this, can someone just help?
>
> A Really Desperate Person