Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (688)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Linux Error  (Read 1768 times)
0 Members and 1 Guest are viewing this topic.
Offline dotandcross

Senior Newbie

I'm a Java Bean

« Posted 2003-07-23 11:30:17 »

Redhat 9

export PATH=$PATH:/usr/java/j2sdk1.4.2/bin:/usr/java/j2sdk1.4.2/jre/lib/ext
export CLASSPATH=.:/usr/java/j2sdk1.4.2/jre/lib/ext/jogl.jar

[root@localhost test]# java Gears
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jogl in java.library.path
       at java.lang.ClassLoader.loadLibrary(
       at java.lang.Runtime.loadLibrary0(
       at java.lang.System.loadLibrary(
       at Method)
       at Gears.main(
Offline Mojomonkey

Senior Devvie

ooh ooh eee eeee

« Reply #1 - Posted 2003-07-23 11:37:55 »

You need to point java to the

java -Djava.library.path=/location/of/ Gears.

EDIT: It's actually not my bad.

Don't send a man to do a monkey's work.
Offline sugarshark

Junior Devvie

Sugar to the sharks.

« Reply #2 - Posted 2003-07-23 11:53:48 »


some Linux tipps:

  • No need to include the ext directory in $PATH or $CLASSPATH.
  • your native library must be called
  • the directory where lies needs to be listed in java.library.path
You can also set the environment  variable LD_LIBRARY_PATH to include the directory where your shared library is located. The dynamic linker will look for this variable and include the shared libs found there.

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline dotandcross

Senior Newbie

I'm a Java Bean

« Reply #3 - Posted 2003-07-23 13:52:19 »

Thanks guys, finally I could run in linux! Is a good graphics card really needed for jogl to work in Linux properly??

I tried porting my application over to linux but faced the following error which was non-existence in windows xp

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4CD5C437

Current Java thread:
     at Method)
     - locked <0x44487ad8> (a
     - locked <0x44487ad8> (a
     at java.awt.Component.setBounds(
     at java.awt.BorderLayout.layoutContainer(
     - locked <0x448f2d00> (a java.awt.Component$AWTTreeLock)
     at java.awt.Container.layout(
     at java.awt.Container.doLayout(
     at java.awt.Container.validateTree(
     at java.awt.Container.validate(
     - locked <0x448f2d00> (a java.awt.Component$AWTTreeLock)
     at java.awt.Window.pack(
     at cube.<init>(
     at cube.main(

I used a GLCanvas, placing it in a JFrame

final Container c = getContentPane();
c.setLayout(new BorderLayout());

glc = GLDrawableFactory.getFactory().createGLCanvas(cap);

// Add the Component into the window
c.add( "Center", glc );
pack(); show();
Offline AndersDahlberg

Junior Devvie

« Reply #4 - Posted 2003-07-23 13:58:06 »

I believe this is because a problem with mixing heavyweight components (GLCanvas) and lightweight (JFrame).

It should Wink work if you change to either using a Frame with GLCanvas or using GLJCanvas (?name?) with a JFrame.

Probably something like

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Dwinin (75 views)
2015-11-07 13:29:08

Rems19 (81 views)
2015-10-31 01:36:56

Rems19 (81 views)
2015-10-31 01:32:37

williamwoles (107 views)
2015-10-23 10:42:59

williamwoles (93 views)
2015-10-23 10:42:45

Jervac_ (112 views)
2015-10-18 23:29:12

DarkCart (137 views)
2015-10-16 00:58:11

KaiHH (118 views)
2015-10-11 14:10:14

KaiHH (159 views)
2015-10-11 13:26:18

BurntPizza (173 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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‑
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!