Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 2532 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 (79 views)
2018-06-10 19:43:48

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

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

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

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

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

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

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

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

Solater (177 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!