Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (109)
games submitted by our members
Games in WIP (537)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2 3 4
  ignore  |  Print  
  JOGL Applet Security  (Read 19378 times)
0 Members and 1 Guest are viewing this topic.
Offline games

Senior Newbie





« Posted 2005-10-26 21: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]
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 757
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2005-10-27 00: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
Offline games

Senior Newbie





« Reply #2 - Posted 2005-10-27 01:34:05 »

You can't do this without scary dialogs.
Thank you  very much, Riven, for you reply! Smiley

[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!
Legends of Yore - The Casual Retro Roguelike
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #3 - Posted 2005-10-27 08: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?
Offline games

Senior Newbie





« Reply #4 - Posted 2005-10-27 23: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.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 757
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #5 - Posted 2005-10-27 23: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
Offline games

Senior Newbie





« Reply #6 - Posted 2005-10-27 23: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.
Offline tom
« Reply #7 - Posted 2005-10-28 00:41:39 »

I'd stick with software rendering and java 1.1 if I were you.

Offline games

Senior Newbie





« Reply #8 - Posted 2005-10-28 03: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?
Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #9 - Posted 2005-10-28 10: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 Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline games

Senior Newbie





« Reply #10 - Posted 2005-10-29 00:19:10 »

I created a Java certificate but using keytool and jarsigner but it still doesn't have the permission.
Offline games

Senior Newbie





« Reply #11 - Posted 2005-10-29 01: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?
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 757
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #12 - Posted 2005-10-29 02: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
Offline games

Senior Newbie





« Reply #13 - Posted 2005-10-29 04: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.
Offline games

Senior Newbie





« Reply #14 - Posted 2005-10-29 17:36:57 »

[size=12pt]The jnlp file is invalid. How do I make it valid?[/size]
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 757
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #15 - Posted 2005-10-29 19: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
Offline games

Senior Newbie





« Reply #16 - Posted 2005-10-29 19: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

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 757
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #17 - Posted 2005-10-29 19: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
Offline games

Senior Newbie





« Reply #18 - Posted 2005-10-29 20: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>
Offline games

Senior Newbie





« Reply #19 - Posted 2005-10-30 02:22:57 »

[size=20pt]How do I make it valid???[/size]

Thank you very much.
Offline games

Senior Newbie





« Reply #20 - Posted 2005-10-30 22:09:16 »

I modified the jnlp files many times and still it's not valid.
Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #21 - Posted 2005-10-31 10: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 Smiley

Offline games

Senior Newbie





« Reply #22 - Posted 2005-11-01 00:09:44 »

Could you please give me a working JOGL demo?
Thank you very much.
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #23 - Posted 2005-11-01 02:50:10 »

All of the JOGL demos on https://jogl-demos.dev.java.net/ use Java Web Start. Save any of the JNLP files to disk and take a look at it.
Offline games

Senior Newbie





« Reply #24 - Posted 2005-11-01 03:35:27 »

The jogl demos works at that site. However, I used the demos at http://www.java-gaming.org/forums/index.php?topic=1474.0 and it's not working because it only works on older versions of jogl. Could you give a working demo?
Thank you very much.
Offline games

Senior Newbie





« Reply #25 - Posted 2005-11-01 21:41:03 »

How do I find ANY working source code of JOGL? Where would I find it?
Thank you very much.
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #26 - Posted 2005-11-02 01:25:16 »

Please post in normal size text.  The large font is simply annoying and isn't going to help you get answers.

Offline Ken Russell

JGO Coder




Java games rock!


« Reply #27 - Posted 2005-11-02 01:47:02 »

1  
cvs -d :pserver:guest@cvs.dev.java.net:/cvs co jogl jogl-demos

Offline games

Senior Newbie





« Reply #28 - Posted 2005-11-02 21: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)
Offline games

Senior Newbie





« Reply #29 - Posted 2005-11-03 01:05:26 »

How do I fix this?
Pages: [1] 2 3 4
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CogWheelz (17 views)
2014-08-01 22:53:16

CogWheelz (15 views)
2014-08-01 22:51:43

CopyableCougar4 (18 views)
2014-08-01 19:37:19

CogWheelz (19 views)
2014-07-30 21:08:39

Riven (27 views)
2014-07-29 18:09:19

Riven (16 views)
2014-07-29 18:08:52

Dwinin (14 views)
2014-07-29 10:59:34

E.R. Fleming (42 views)
2014-07-29 03:07:13

E.R. Fleming (13 views)
2014-07-29 03:06:25

pw (44 views)
2014-07-24 01:59:36
Resources for WIP games
by CogWheelz
2014-08-01 18:20:17

Resources for WIP games
by CogWheelz
2014-08-01 18:19:50

List of Learning Resources
by SilverTiger
2014-07-31 18:29:50

List of Learning Resources
by SilverTiger
2014-07-31 18:26:06

List of Learning Resources
by SilverTiger
2014-07-31 13:54:12

HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!