PDA

View Full Version : Error running the demo after download


unregistered
05-12-2007, 06:14 PM
This is what I get when trying to run the demo as outlined in the README.txt

--------------------------
tux-peter:/usr/local/WorldWind_JavaVersion # ./run-demo.bash worldwinddemo.BasicDemo
Running worldwinddemo.BasicDemo
Java run-time version: 1.5.0_07
NASA World Wind Early Access 2 0.2.0
Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassL oader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.j ava:822)
at java.lang.System.loadLibrary(System.java :992)
at com.sun.gluegen.runtime.NativeLibLoader$ 1.run(NativeLibLoader.java:68)
at java.security.AccessController.doPrivile ged(Native Method)
at com.sun.gluegen.runtime.NativeLibLoader. loadGlueGenRT(NativeLibLoader.java:66)
at com.sun.gluegen.runtime.NativeLibrary.en sureNativeLibLoaded(NativeLibrary.java:3 99)
at com.sun.gluegen.runtime.NativeLibrary.op en(NativeLibrary.java:163)
at com.sun.gluegen.runtime.NativeLibrary.op en(NativeLibrary.java:129)
at com.sun.opengl.impl.x11.DRIHack.begin(DR IHack.java:109)
at com.sun.opengl.impl.x11.X11GLDrawableFac tory.<clinit>(X11GLDrawableFactory.java:96)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at javax.media.opengl.GLDrawableFactory.get Factory(GLDrawableFactory.java:111)
at javax.media.opengl.GLCanvas.chooseGraphi csConfiguration(GLCanvas.java:409)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:117)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:86)
at gov.nasa.worldwind.awt.WorldWindowGLCanv as.<init>(Unknown Source)
at worldwinddemo.BasicDemo$AppFrame.<init>(Unknown Source)
at worldwinddemo.BasicDemo.main(Unknown Source)

--------------------------

Anybody else having the same error-msgs?

James_In_Utah
05-13-2007, 03:52 AM
I had very similar stuff trying to run the F16 simulator with V1.5. It runs under V1.6, and the demo runs for me under Java RTE V1.6. Maybe try that...

Unregistered
05-13-2007, 11:54 AM
try this:

export PATH=$PATH:./
./run-demo.bash worldwinddemo.BasicDemo

Unregistered
05-13-2007, 12:07 PM
sorry, I meant this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
./run-demo.bash worldwinddemo.BasicDemo

Unregistered
05-14-2007, 09:55 AM
sorry, I meant this:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./
./run-demo.bash worldwinddemo.BasicDemo

thanks for this hint! Got it running now with Java run-time version 1.6.0_01 and the exported LD_LIBRARY_PATH

Kaluva
05-14-2007, 10:56 AM
I have the same problem, but setting LD_LIBRARY_PATH doesn't help. Is there maybe a problem with the Java version I am using?

$ java -version
java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode, sharing)

Kaluva
05-16-2007, 02:08 PM
Ok, so I found out what was wrong. Java 1.5 is fine, but gives stupid error messages. The error (as I found out after installing Java 1.6) was that libjogl_awt.so is linked against glibc 2.4 which I don't have.

James_In_Utah
05-17-2007, 03:27 AM
I'm stuck on V1.5 at work and can't upgrade until the LAN Nazi gets instructions to do so. Is there a fix to allow the F16 Demo to run under V1.5? The WWJ demo apps run just fine. The F16 Sim demo doesn't run at all at work.
Thanks,
James

tonymac
03-07-2008, 07:45 AM
March 8 2008.
I got the same initial error on gluegen-rt and solved it as below.

Modify run-demo.bash to insert a java.library.path :
-Djava.library.path=$path:<path to installation root>
For <path to installation root> edit to your needs.
e.g.

#!/bin/bash
# Run a WorldWind Demo
# $Id: run-demo.bash 3705 2007-12-04 17:49:42Z tgaskins $
echo To run worldwind example, enter the following at the command prompt:
echo ./run-demo.bash gov.nasa.worldwind.examples.ApplicationT emplate
echo Running $1
java -Dsun.java2d.noddraw=true -Djava.library.path=$path:~/Desktop/worldwind.release.0.4.1/ -classpath ./src:./classes:./worldwind.jar:./jogl.jar:./gluegen-rt.jar $1