From: <Su...@ao...> - 2001-03-10 10:10:03
|
I'm having trouble with security and I have no idea why... I installed Java 2 SDK Standard Edition v1.3, and it created 2 seperate directories for the java run time environment, one of them is for the SDK and the other is for the Java 1.3 plugin. I changed the java.policy file. I installed GL4Java for IE/MS-JVM (no problems there), and installed it for the Java 1.3 plugin and for the SDK. Everything seemed ok to me at that point. I can compile GL4Java demo/example programs with javac with no errors, as well as my own tests. I can run in MS-JVM on your website and locally, no problem. I can run using the Java 1.3 plugin, and it works on your website... **here is the actual problem** But, the problem is, I can not run any applets locally (the demos or my own stuff), only the ones on your website!!! It comes back with an security error. Here is the console output (with a number of unnecesary things deleted)... Java(TM) Plug-in: Version 1.3.0_02 Using JRE version 1.3.0_02 Java HotSpot(TM) Client VM Proxy Configuration: no proxy java.lang.ExceptionInInitializerError: java.security.AccessControlException: access denied (java.lang.RuntimePermission loadLibrary.GL4JavaJauGljJNI13) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkLink(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at gl4java.GLContext.loadNativeLibraries(GLContext.java:711) at gl4java.awt.GLCanvas.<clinit>(GLCanvas.java:177) at MainApp.init(MainApp.java:139) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) So I have no idea what is going wrong. If you can let me know what it might be. The reason I am trying to get the plugin to work, is because I want to test out JAXP 1.1 (Java XML). I am want to port a 3d engine I developed in C++, the engine uses a file format similar to XML, and I am not sure how to install JAXP into MS-JVM (there is no instructions, I'm not sure if its even installable on it), or get GL4Java working with the Java 1.3 plugin, but looking at the amount of work that is required to install GL4Java on the Java 1.3 plugin I dont think I would like to put that on the browser clients. The only other route I have which is probably a little more rigorous is to port my parsing code over the Java, but that seems a bit hard to me considering I am just getting back into java after a couple of years of not using it. (Your project has sparked my interest back into it :)) |