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]
# 1

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 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2

In case I didn't specify my problem clearly enough, here is the problem again:

I've created my java program using JDK1.3. Now I've added some of the MSJDK classes into my program. I want to know how I could make JVIEW to use JDK1.3 rather than its default jdk1.1.* version or JAVA to use the com/ms/wfc/ui/* package.

How can I do that?

Thanks.

ssst at 2007-7-1 21:46:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
>How can I do that?No idea.If it was me, I wouldn't try. Since MS no longer does java the viability of that solution would seem very risky.
jschell at 2007-7-1 21:46:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
Dear ssst,I have exactly the same problem when trying JFrame. If I change to Frame is OK.Could you get the solution?Thank you in advance.
incomati at 2007-7-1 21:46:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5
thank you
moathe2007@yahoo.com at 2007-7-1 21:46:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 6

> 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

moathe2007@yahoo.com at 2007-7-1 21:46:41 > top of Java-index,Java HotSpot Virtual Machine,Specifications...