Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (541)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-11-18 20:48:34
It 's related to having the jogl in the extension directory : as the certificates of the native libs are validated against the ones the jogl.jar, your
jogl.jar has got differents certificates than mine (which is normal : I've self signed mine for the demo).

Once the applet is integrated in JOGL, with proper certificates, this issue should be resolved as the natives will also have the certs from sun. 

Lilian

Thanks you very much, I deleted the jogl.jar extension and it worked! Your Java applet is much better! In my opinion, Java is much better to make games than in Shockwave 3D.
2  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-11-09 21:18:28
Thank you very much, but I got an error on my windows xp:
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  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
Java Plug-in 1.5.0_04
Using JRE version 1.5.0_04 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\xxx
java.net.ConnectException: Connection refused: connect
   at java.net.PlainSocketImpl.socketConnect(Native Method)
   at java.net.PlainSocketImpl.doConnect(Unknown Source)
   at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
   at java.net.PlainSocketImpl.connect(Unknown Source)
   at java.net.Socket.connect(Unknown Source)
   at sun.net.NetworkClient.doConnect(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.openServer(Unknown Source)
   at sun.net.www.http.HttpClient.<init>(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.http.HttpClient.New(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
   at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.getJSFileFromURL(Unknown Source)
   at com.sun.deploy.net.proxy.AbstractAutoProxyHandler.init(Unknown Source)
   at com.sun.deploy.net.proxy.DynamicProxyManager.reset(Unknown Source)
   at com.sun.deploy.net.proxy.DeployProxySelector.reset(Unknown Source)
   at sun.plugin.AppletViewer.initEnvironment(Unknown Source)
   at sun.plugin.AppletViewer.initEnvironment(Unknown Source)

stop
destroy
Exception in thread "AWT-EventQueue-6" java.lang.UnsatisfiedLinkError: JAWT_GetAWT0
   at net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT0(Native Method)
   at net.java.games.jogl.impl.JAWTFactory.JAWT_GetAWT(JAWTFactory.java:37)
   at net.java.games.jogl.impl.windows.WindowsGLContext.getJAWT(WindowsGLContext.java:282)
   at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.lockSurface(WindowsOnscreenGLContext.java:167)
   at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:126)
   at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:248)
   at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.invokeGL(WindowsOnscreenGLContext.java:76)
   at net.java.games.jogl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:236)
   at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:133)
   at java.awt.Component.setBounds(Unknown Source)
   at java.awt.BorderLayout.layoutContainer(Unknown Source)
   at java.awt.Container.layout(Unknown Source)
   at java.awt.Container.doLayout(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validate(Unknown Source)
   at untrusted.JOGLApplet.init(JOGLApplet.java:24)
   at net.java.games.jogl.applets.JOGLAppletLauncher.joglStart(JOGLAppletLauncher.java:178)
   at net.java.games.jogl.applets.JOGLAppletLauncher$3.run(JOGLAppletLauncher.java:284)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)
3  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-11-08 17:57:44
Thank you very much, however, the applets does not work on my Windows XP.
4  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-11-03 00:05:26
How do I fix this?
5  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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)
6  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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.
7  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-11-01 02: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.
8  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-10-31 23:09:44
Could you please give me a working JOGL demo?
Thank you very much.
9  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-10-30 21:09:16
I modified the jnlp files many times and still it's not valid.
10  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-10-30 00:22:57
[size=20pt]How do I make it valid???[/size]

Thank you very much.
11  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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>
12  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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

13  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-10-29 15:36:57
[size=12pt]The jnlp file is invalid. How do I make it valid?[/size]
14  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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.
15  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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?
16  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-10-28 22:19:10
I created a Java certificate but using keytool and jarsigner but it still doesn't have the permission.
17  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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?
18  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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.
19  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 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.
20  Java Game APIs & Engines / JOGL Development / Re: JOGL Applet Security on: 2005-10-26 23: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!
21  Java Game APIs & Engines / JOGL Development / JOGL Applet Security on: 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]
22  Java Game APIs & Engines / JOGL Development / jogl beginner question on: 2005-08-23 17:12:07
I want an example of a jogl applet. Applets are slow for jogl so is there an example for webstart jogl applet. I don't know how to use jogl for webstart. I can't use jogl in anything. Is there an example of a jogl applet? I want an applet because it can be on a web page but applets are slow. If applets are not significantly than webstart then I want a jogl applet example. I hate webstart because it can't be on a webpage. I am a beginner in jogl and I can't compile any of the example jogl applets and don't how do write anything that contains jogl. I want an example of a jogl applet. I didn't make any jogl applets or applications. They don't compile correctly. I am a beginner in opengl. I want applets because I want it to be on a webpage. I just want a working jogl example so I can build on it to make a game because the hardest thing is to put jogl on an applet. I didn't make anything that's related to opengl. I am a beginner in jogl so I just need a completely working example that I only have to do is to compile it. I don't have any working jogl example source code applets if applets are not significantly slower than webstarts, but webstarts can't be on a webpage. You have to give me an example because other examples don't compile correctly.
23  Game Development / Performance Tuning / fastest method to make a parallax side-scrolling game using tiles on: 2005-08-15 22:13:39
Hi, I just started making a Java 1.5 applet parallax side-scrolling adventure game using tiles. The game is going to be similar to Donkey Kong Country, Sonic the Hedgehog, and Super Mario World. However, I do not want to use any third-party game engines because of customization and speed issues. Third-party game engines are bloaty, unprofessional, and they are for novices. I want the fastest methods for making a game like that. I am using MemoryImageSource, but calling the drawImage(image, 0, 0, null) method on every frame is very slow. image.flush() is also slow, but not as slow as drawImage. The only thing that slows down the game is the drawImage method. How can I make the game run at 60 fps? I don't know how to scroll it smoothly. How can I add sprites? Are there any faster methods for making games like this for Java 1.5 applets? The game is 512x512 pixels using 16x16 pixel tiles. Are there any faster methods to make this kind of game instead of memoryimagesource? If memoryimagesource is the fastest, how can I make it faster?

Here's the code I'm using:

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  
// the two-dimensional array of tiles

public byte tile[][];

static final int tilesX = 32;

static final int tilesY = 32;

static final int tileWidth = 16;

static final int tileHeight = 16;

static final int screenWidth = tileWidth * tilesX;

static final int screenHeight = tileHeight * tilesY;

protected int videoBuffer[] = new int[screenWidth * screenHeight];

private Image img;

img = createImage(new MemoryImageSource(screenWidth, screenHeight, videoBuffer, 0, screenWidth));

while (true)
{
   // modify the image

   img.flush();
   
   appletGraphics.drawImage(img, 0, 0, null);
}
24  Game Development / Newbie & Debugging Questions / Re: side-scrolling game on: 2005-08-15 17:03:09
I hate high-level game engines. I want something that is low-level that can make very fast Java 1.5 applet games so I can have more control of the game.
25  Game Development / Newbie & Debugging Questions / side-scrolling game on: 2005-08-08 21:24:49
Hi, I am very embarrassed for asking this question and I am very new to Java and I am trying to make an online 2D side-scrolling applet game similar to Super Mario Bros. using tiles and MemoryImageSource. The tile map is a two-dimensional array. Generating the map is easy. Scrolling is slow. I don't which way is the fastest way of scrolling the map and don't know if a two-dimensional array using tiles is the best way to make a game like that. I don't know how to make it as fast as the illegal Java NES emulator called NESCafe (http://www.davieboy.net/nescafe/). I looked at the source code of NESCafe and it uses MemoryImageSource because it's the fastest way and I don't understand most of it. NESCafe can play Super Mario Bros. very fast at 30 fps. How do I start?
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

Mr.CodeIt (24 views)
2014-12-23 03:34:11

rwatson462 (55 views)
2014-12-15 09:26:44

Mr.CodeIt (45 views)
2014-12-14 19:50:38

BurntPizza (88 views)
2014-12-09 22:41:13

BurntPizza (111 views)
2014-12-08 04:46:31

JscottyBieshaar (81 views)
2014-12-05 12:39:02

SHC (91 views)
2014-12-03 16:27:13

CopyableCougar4 (98 views)
2014-11-29 21:32:03

toopeicgaming1999 (157 views)
2014-11-26 15:22:04

toopeicgaming1999 (155 views)
2014-11-26 15:20:36
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

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

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
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!