games
Senior Newbie 
|
 |
«
Posted
2005-10-26 19:55:42 » |
|
This error has prevented me from making anything that contains OpenGL for months: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| java.lang.ExceptionInInitializerError at net.java.games.jogl.DefaultGLCapabilitiesChooser.<clinit>(Defaul pabilitiesChooser.java:83) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableF y.java:136) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableF y.java:118) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableF y.java:85) at JOGLTest.init(JOGLTest.java:37) at sun.applet.AppletPanel.run(AppletPanel.java:374) at java.lang.Thread.run(Thread.java:595) Caused by: java.security.AccessControlException: access denied (java.util.P tyPermission jogl.verbose read) at java.security.AccessControlContext.checkPermission(AccessControl xt.java:264) at java.security.AccessController.checkPermission(AccessController. 427) at java.lang.SecurityManager.checkPermission(SecurityManager.java:5 at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.ja 85) at java.lang.System.getProperty(System.java:627) at net.java.games.jogl.impl.Debug$2.run(Debug.java:73) at java.security.AccessController.doPrivileged(Native Method) at net.java.games.jogl.impl.Debug.isPropertyDefined(Debug.java:71) at net.java.games.jogl.impl.Debug.<clinit>(Debug.java:53) ... 7 more |
I want an OpenGL applet but it keeps getting this error. How can I use ClassLoader to fix the permissions? The reason for an applet instead for webstart because I want to make online games for websites. Another reason I want an applet because I want my web pages interactive by putting multiple applets in one page. If possible, do not let the game display a security notice because is scary for most users because they think the security notice is similar to the dangerous ActiveX notices. [size=20pt]Thank you [/size][size=30pt]VERY [/size] [size=20pt]much.[/size]
|
|
|
|
Riven
|
 |
«
Reply #1 - Posted
2005-10-26 22:00:03 » |
|
You can't do this without scary dialogs.
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
games
Senior Newbie 
|
 |
«
Reply #2 - Posted
2005-10-26 23:34:05 » |
|
You can't do this without scary dialogs.
Thank you very much, Riven, for you reply! [size=12pt]but still, How do I make the game with scary dialogs? How do I fix the errors?[/size]Thank you very much!
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Ken Russell
|
 |
«
Reply #3 - Posted
2005-10-27 06:47:34 » |
|
I haven't built any applets using JOGL but my understanding is that you need to both sign your applet (causing a security warning, etc. notice) as well as copy the JOGL jar file and native library into the user's JRE. This is why we recommend deploying JOGL applications via Java Web Start. Is there a compelling reason you can't use JWS but have to have an applet?
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #4 - Posted
2005-10-27 21:34:17 » |
|
Thanks for your reply.
There is a reason because making a game in Java instead of C or C++ because it works in the browser, but software rendering is too slow at a high resolution. Flash and Shockwave are too slow to make online games.
Another reason is that people will get scared because JWS is similar to downloading freeware because it can contain viruses, spyware, adware, Trojan horses, bloatware, mess up the computer, and make the computer slower. When students are playing JWS games at school, teachers *MIGHT* think the JWS games contain viruses because it's not played in a browser, so they will block my game site, in which I doubt, because students might be blocked from installing Java 5.0, because most schools have Windows Netscape with IE 6.0 (and Microsoft Java Virual Machine, I guess), but if the Java version is outdated, unless they told the teachers, in which I doubt, because most Java applets still work on older versions, so teachers think there's no reason for installing a newer version that's slower at loading the applets because of the stupid Java Logo, that sometimes crashes IE and Firefox on Windows, especially if there is a missing a class or jar file, or sometimes clicking on it, that displays before it fully loads. I know how to turn off the logo by inserting some params, but it's the other applets. I think some administrators school computers that are good at computers that knows many things other than Microsoft Windows are smart enough to install Java 5.0, and the administrator of some school computers are not in the same school every day, if the computer teachers don't even these have permissions, but I doubt computer teachers don't have these permissions.
[size=12pt]but still, how do I sign my applet to fix the errors? I tried to read the instructions on how to sign it but it didn't work.[/size]
Thank you very much.
|
|
|
|
Riven
|
 |
«
Reply #5 - Posted
2005-10-27 21:45:13 » |
|
You are among the first that try this. I don't know if anybody managed to do it, without putting DLLs in the JRE-dir from inside the applet (which is evil, and true horror).
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
games
Senior Newbie 
|
 |
«
Reply #6 - Posted
2005-10-27 21:45:52 » |
|
Thank you for your reply.
I know they would downloaded the newer version, and has been downloaded, because most people that play on any game site downloaded the latest versions Flash player and Shockwave player. Most people play game at home, because almost ALL SCHOOLS BLOCK game sites anyway.
|
|
|
|
tom
|
 |
«
Reply #7 - Posted
2005-10-27 22:41:39 » |
|
I'd stick with software rendering and java 1.1 if I were you.
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #8 - Posted
2005-10-28 01:01:27 » |
|
In fact, I did not make ANY game by myself. I'd stick with software rendering and java 1.1 if I were you.
Java 1.1 is NOT recommended because I can just use <object> tag for IE to check the version and download the newer version so it would show an ActiveX notice to install a newer version of Java similar to Flash and Shockwave installations. e.g. 1 2 3 4 5 6 7
| <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_5_0-windows-i586.cab#Version=1,5,0,0" width="640" height="480"> <param name="code" value="..." /> <param name="codebase" value="..." /> <param name="archive" value="..." /> ... |
Therefore, it is similar to the Flash player and Shockwave player installation. I noticed that people installed Java 5.0 from this method just as easy as the Flash player installation. Thus, how do I sign a Java applet?
|
|
|
|
princec
|
 |
«
Reply #9 - Posted
2005-10-28 08:59:25 » |
|
You can use jarsigner.exe (which comes with the JDK). Unless you actually pay for a real certificate, you will have to generate one yourself, which is effectively "untrusted" and the user will be asked to trust you. Cas 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
games
Senior Newbie 
|
 |
«
Reply #10 - Posted
2005-10-28 22:19:10 » |
|
I created a Java certificate but using keytool and jarsigner but it still doesn't have the permission.
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #11 - Posted
2005-10-28 23:36:54 » |
|
After months of struggling to make my own Java games out of JOGL, I've been given up, wasting time, and debugging my source codes. I've been frustrated and guilty that I didn't make any of my own Java games. Will software rendering make the game's FPS reasonable at a 512x512? Can you show me how sign my JOGL applet correctly? Are there any example source codes?
|
|
|
|
Riven
|
 |
«
Reply #12 - Posted
2005-10-29 00:24:34 » |
|
Maybe you should try to start with a WebStart version. Not because you want to use WebStart, but because it has similair signing techniques and with WebStart it's been proven to work, so lots of people can help you. When you have the WebStart version running, with help of us, you can try to make the next step yourself, which should be much less complex by then.
HTH
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
games
Senior Newbie 
|
 |
«
Reply #13 - Posted
2005-10-29 02:16:43 » |
|
I tried to start with a webstart version but it always got an error that says "unable to launch the specified application". How do I make my jnlp file? Thank you very much.
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #14 - Posted
2005-10-29 15:36:57 » |
|
[size=12pt]The jnlp file is invalid. How do I make it valid?[/size]
|
|
|
|
Riven
|
 |
«
Reply #15 - Posted
2005-10-29 17:34:42 » |
|
We can't correct mistakes we don't see.
"My car is broken, how to fix it?"
So we need more information, like... what is your current JNLP file?
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
games
Senior Newbie 
|
 |
«
Reply #16 - Posted
2005-10-29 17:46:09 » |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| <?xml version="1.0" encoding="utf-8"?> <jnlp spec="1.0" codebase="http://localhost/" > <information> <title>JOGLTest</title> <vendor>Dogs</vendor> <homepage href="http://localhost/"/> <description>JOGL test</description> <description kind="short">JOGL test</description> <shortcut online="true"> <menu submenu="Games"/> </shortcut> <offline-allowed/> </information>
<resources> <j2se version="1.5+" initial-heap-size="128m" max-heap-size="256m"/> <jar href="JOGLTest.jar" main="true"/> <extension name="jogl" href="jogl.jnlp" /> </resources>
<security> <all-permissions/> </security>
<application-desc main-class="JOGLTest"/> </jnlp> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.UnsatisfiedLinkError: no jogl in java.library.path at java.lang.ClassLoader.loadLibrary(Unknown Source) at java.lang.Runtime.loadLibrary0(Unknown Source) at java.lang.System.loadLibrary(Unknown Source) at net.java.games.jogl.impl.NativeLibLoader$1.run(NativeLibLoader.java:72) at java.security.AccessController.doPrivileged(Native Method) at net.java.games.jogl.impl.NativeLibLoader.load(NativeLibLoader.java:58) at net.java.games.jogl.impl.GLContext.<clinit>(GLContext.java:52) at net.java.games.jogl.impl.windows.WindowsGLContextFactory.createGLContext(WindowsGLContextFactory.java:147) at net.java.games.jogl.GLCanvas.<init>(GLCanvas.java:72) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:150) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:118) at net.java.games.jogl.GLDrawableFactory.createGLCanvas(GLDrawableFactory.java:85) at JOGLTest.main(JOGLTest.java:23) ... 11 more |
|
|
|
|
Riven
|
 |
«
Reply #17 - Posted
2005-10-29 17:51:48 » |
|
You reference: 1
| <extension name="jogl" href="jogl.jnlp" /> |
And the exception says it can't find the JOGL-libraries... so........ what do you think we also need to see?
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
games
Senior Newbie 
|
 |
«
Reply #18 - Posted
2005-10-29 18:22:25 » |
|
jogl.jnlp 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <?xml version="1.0" encoding="utf-8"?> <jnlp codebase="https://jogl.dev.java.net/webstart/" href="jogl.jnlp"> <information> <title>JOGL</title> <vendor>Sun Microsystems, Inc.</vendor> <homepage href="http://jogl.dev.java.net/"/> <description>JOGL</description> <description kind="short">Java programming language binding for the OpenGL 3D graphics API.</description> <offline-allowed/> </information> <security> <all-permissions/> </security>
<resources> <jar href="jogl.jar" /> </resources> <resources os="Windows"> <nativelib href = "jogl-natives-win32.jar" /> </resources> <resources os="SunOS" arch="sparc"> <nativelib href = "jogl-natives-solsparc.jar" /> </resources> <resources os="SunOS" arch="x86"> <nativelib href = "jogl-natives-solx86.jar" /> </resources> <resources os="Linux"> <nativelib href = "jogl-natives-linux.jar" /> </resources> <resources os="Mac OS X"> <nativelib href = "jogl-natives-macosx.jar" /> </resources>
<component-desc /> </jnlp> |
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #19 - Posted
2005-10-30 00:22:57 » |
|
[size=20pt]How do I make it valid???[/size]
Thank you very much.
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #20 - Posted
2005-10-30 21:09:16 » |
|
I modified the jnlp files many times and still it's not valid.
|
|
|
|
princec
|
 |
«
Reply #21 - Posted
2005-10-31 09:21:25 » |
|
Both your JNLP files are valid XML. The problem is where you have put them. Have you put them in your document root of your local host web server? Cas 
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #22 - Posted
2005-10-31 23:09:44 » |
|
Could you please give me a working JOGL demo? Thank you very much.
|
|
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #25 - Posted
2005-11-01 20:41:03 » |
|
How do I find ANY working source code of JOGL? Where would I find it? Thank you very much.
|
|
|
|
swpalmer
|
 |
«
Reply #26 - Posted
2005-11-02 00:25:16 » |
|
Please post in normal size text. The large font is simply annoying and isn't going to help you get answers.
|
|
|
|
Ken Russell
|
 |
«
Reply #27 - Posted
2005-11-02 00:47:02 » |
|
1
| cvs -d :pserver:guest@cvs.dev.java.net:/cvs co jogl jogl-demos |
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #28 - Posted
2005-11-02 20:57:23 » |
|
Thank you very much. But I got this error and unable to launch it: 1 2 3 4 5 6
| java.lang.Exception at com.sun.javaws.Launcher.continueLaunch(Unknown Source) at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source) at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) |
|
|
|
|
games
Senior Newbie 
|
 |
«
Reply #29 - Posted
2005-11-03 00:05:26 » |
|
How do I fix this?
|
|
|
|
|