JOGL Web Start demos not working on Mac (Snow Leopard)

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

JOGL Web Start demos not working on Mac (Snow Leopard)

Mark Callanan
Hi,

Just been trying to run the Java Web Start demos on http://jogamp.org/jogl-demos/www/ but I get the following exception:

java.lang.UnsatisfiedLinkError: com.jogamp.common.jvm.JVMUtil.initialize(Ljava/nio/ByteBuffer;)Z
        at com.jogamp.common.jvm.JVMUtil.initialize(Native Method)
        at com.jogamp.common.jvm.JVMUtil.<clinit>(JVMUtil.java:59)
        at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:1141)
        at demos.gears.Gears.<clinit>(Gears.java:24)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.javaws.Launcher.executeApplication(Launcher.java:1812)
        at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1750)
        at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1532)
        at com.sun.javaws.Launcher.run(Launcher.java:135)
        at java.lang.Thread.run(Thread.java:637)

Other info screen

<?xml version="1.0" encoding="utf-8"?>
<jnlp codebase="http://jogamp.org/deployment/webstart/jogl-demos"
      href="Gears.jnlp">
  <information>
    <title>JOGL Gears Demo</title>
    <vendor>JogAmp Community</vendor>
    <homepage href="http://jogamp.org/jogl-demos/"/>
    <description>Gears Demo</description>
    <description kind="short">Brian Paul's Gears demo ported to Java and JOGL.</description>
    <offline-allowed/>
  </information>
  <update check="background" policy="always"/>

    <resources>
      <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
      <property name="sun.java2d.noddraw" value="true"/>
      <jar href="jogl-demos.jar" main="true"/>
      <jar href="jogl-demos-util.jar" />
      <extension name="newt-all-awt" href="http://jogamp.org/deployment/webstart/newt-all-awt.jnlp" />
    </resources>

  <application-desc main-class="demos.gears.Gears">
   <argument>NotFirstUIActionOnProcess</argument> 
  </application-desc>
</jnlp>
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Web Start demos not working on Mac (Snow Leopard)

Wade Walker
Administrator
Strange -- I just ran the Gears demo on a MacBook Air (Snow Leopard), and it works fine (though some of the others have problems). Are you running it directly from the JogAmp web site, or did you download it to run on your own web site? The UnsatisfiedLinkError usually means a JOGL native library is missing or its version is mismatched with the JAR file.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Web Start demos not working on Mac (Snow Leopard)

Mark Callanan
Wade Walker wrote
Are you running it directly from the JogAmp web site, or did you download it to run on your own web site?
Directly from the JogAmp site, on the page I linked to.
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Web Start demos not working on Mac (Snow Leopard)

Mark Callanan
Ah not to worry; I had some stray local versions of the libraries linked through my environment. Cleared those out and it runs fine.

Thanks for your speedy response though
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Web Start demos not working on Mac (Snow Leopard)

gouessej
Administrator
Avoid putting JARs directly in the JVM. Maybe you did this, it is only a supposition.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL Web Start demos not working on Mac (Snow Leopard)

Wade Walker
Administrator
There's also the Web Start cache, which you can clear with "javaws -Xclearcache". Some other users have seen a problem with this (see https://jogamp.org/bugzilla/show_bug.cgi?id=470).