Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (767)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (854)
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 2583 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  

EgonOlsen (1241 views)
2018-06-10 19:43:48

EgonOlsen (1110 views)
2018-06-10 19:43:44

EgonOlsen (850 views)
2018-06-10 19:43:20

DesertCoockie (1260 views)
2018-05-13 18:23:11

nelsongames (1101 views)
2018-04-24 18:15:36

nelsongames (1330 views)
2018-04-24 18:14:32

ivj94 (2071 views)
2018-03-24 14:47:39

ivj94 (1224 views)
2018-03-24 14:46:31

ivj94 (2156 views)
2018-03-24 14:43:53

Solater (788 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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!