Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  Print  
  UnsatisfiedLinkError: no lwjgl in java.library.path  (Read 2196 times)
0 Members and 1 Guest are viewing this topic.
Offline sproingie

JGO Strike Force
***

Posts: 901
Medals: 55



« Reply #30 on: 2012-01-10 17:27:07 »

Excelsior JET makes very zippy exes, but costs mui dinero, and gcj is a toy that's slower than hotspot.  Launch4j may be more what you're looking for.
Offline ra4king

JGO Kernel
*****

Posts: 3160
Medals: 196


I'm the King!


« Reply #31 on: 2012-01-10 18:36:31 »

Launch4j is an amazing tool which all Java programmers SHOULD be using. I also recommend that.

Offline GustavXIII

Jr. Member
**

Posts: 57



« Reply #32 on: 2012-01-11 05:21:26 »

Ive tried Launch4j but I get an error. I have the JRE!

Quote
Compiling resources
C:\Program Files (x86)\Launch4j\bin\windres.exe: icon file `C:\Users\*\Downloads\Balmung Cycle\Picture\01.png' does not contain icon data
Generated resource file...

LANGUAGE 0, 1
2 RCDATA BEGIN "1.5.0\0" END
18 RCDATA BEGIN "1\0" END
25 RCDATA BEGIN "16\0" END
27 RCDATA BEGIN "256\0" END
1 ICON DISCARDABLE "C:\\Users\\*\\Downloads\\Balmung Cycle\\Picture\\01.png"
21 RCDATA BEGIN "http://java.com/download\0" END
8 RCDATA BEGIN ".\0" END
20 RCDATA BEGIN "32\0" END
101 RCDATA BEGIN "An error occurred while starting the application.\0" END
102 RCDATA BEGIN "This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.\0" END
103 RCDATA BEGIN "This application requires a Java Runtime Environment\0" END
104 RCDATA BEGIN "The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.\0" END
15 RCDATA BEGIN "masterDestroyer.Main\0" END
16 RCDATA BEGIN "lib\\lwjgl.jar;lib\\slick.jar;lib\\jinput.jar;lib\\jogg-0.0.7.jar;lib\\jorbis-0.0.15.jar;lib\\NativeFmodEx.jar;lib\\NativeFmodEx-win.jar;lib\\NativeFmod-win64.jar;lib\\libLibLoader.so;lib\\libLibLoader64.so;lib\\libNativeFmodEx.jnilib;lib\\libNativeFmodEx.so;lib\\libNativeFmodEx64.so;natives\\lwjgl.dll;natives\\jinput-dx8.dll;natives\\OpenAL32.dll;natives\\jinput-dx_64.dll;natives\\jinput-raw.dll;natives\\jinput-raw_64.dll;natives\\OpenAL64.dll;natives\\NativeFmodEx.dll;natives\\NativeFmodEx64.dll\0" END
14 RCDATA BEGIN "Master Destroyer.jar\0" END

net.sf.launch4j.ExecException: Exec failed (1): C:\Program Files (x86)\Launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\*\AppData\Local\Temp\launch4j4462530439501924539rc C:\Users\Oliver\AppData\Local\Temp\launch4j7292897449556024572o
Compiling resources
C:\Program Files (x86)\Launch4j\bin\windres.exe: icon file `C:\Users\*\Downloads\Balmung Cycle\Picture\01.png' does not contain icon data
Generated resource file...

LANGUAGE 0, 1
2 RCDATA BEGIN "1.5.0\0" END
18 RCDATA BEGIN "1\0" END
25 RCDATA BEGIN "16\0" END
27 RCDATA BEGIN "256\0" END
1 ICON DISCARDABLE "C:\\Users\\*\\Downloads\\Balmung Cycle\\Picture\\01.png"
21 RCDATA BEGIN "http://java.com/download\0" END
8 RCDATA BEGIN ".\0" END
20 RCDATA BEGIN "32\0" END
101 RCDATA BEGIN "An error occurred while starting the application.\0" END
102 RCDATA BEGIN "This application was configured to use a bundled Java Runtime Environment but the runtime is missing or corrupted.\0" END
103 RCDATA BEGIN "This application requires a Java Runtime Environment\0" END
104 RCDATA BEGIN "The registry refers to a nonexistent Java Runtime Environment installation or the runtime is corrupted.\0" END
15 RCDATA BEGIN "masterDestroyer.Main\0" END
16 RCDATA BEGIN "lib\\lwjgl.jar;lib\\slick.jar;lib\\jinput.jar;lib\\jogg-0.0.7.jar;lib\\jorbis-0.0.15.jar;lib\\NativeFmodEx.jar;lib\\NativeFmodEx-win.jar;lib\\NativeFmod-win64.jar;lib\\libLibLoader.so;lib\\libLibLoader64.so;lib\\libNativeFmodEx.jnilib;lib\\libNativeFmodEx.so;lib\\libNativeFmodEx64.so;natives\\lwjgl.dll;natives\\jinput-dx8.dll;natives\\OpenAL32.dll;natives\\jinput-dx_64.dll;natives\\jinput-raw.dll;natives\\jinput-raw_64.dll;natives\\OpenAL64.dll;natives\\NativeFmodEx.dll;natives\\NativeFmodEx64.dll\0" END
14 RCDATA BEGIN "Master Destroyer.jar\0" END

net.sf.launch4j.ExecException: Exec failed (1): C:\Program Files (x86)\Launch4j\bin\windres.exe --preprocessor=type -J rc -O coff -F pe-i386 C:\Users\*\AppData\Local\Temp\launch4j4462530439501924539rc C:\Users\Oliver\AppData\Local\Temp\launch4j7292897449556024572o


And I dont know why I get the error with FModEx then I use my .bat.
Games published by our own members! Go get 'em!
Offline niq

JGO n00b
*

Posts: 6



« Reply #33 on: 2012-01-11 15:41:20 »

Hi gouessej and you other folks Smiley

Thanks for advises and encouragement Smiley
I'll be looking at Launch4J soon .. Now I first have to make something worth deploying Wink
The Tetris game was from Spiegel's tutorial on one of the Slick pages, and not my own creation ..
Now I have Slick, I don't even know which game to start coding Undecided
Maybe I should be playing a little with new graphic commands and see if I get any good ideas ..

Thanks again and regards
Offline GustavXIII

Jr. Member
**

Posts: 57



« Reply #34 on: 2012-01-14 08:27:42 »

I cant fix FMod.
What are you guys using to play Music and Sounds and did it work with .jar?
Offline niq

JGO n00b
*

Posts: 6



« Reply #35 on: 2012-01-16 14:24:38 »

Hi GustavXIII

I don't know about FMod, and have only a little experience with sounds in Java until now.
I use Slick to play music and sounds in my game .. seems to work fine - also in Jars (with the remark that all files in my project is in the src directory).
It's just a slow starter (3 seconds for a 3MB ogg music file).

I hope you can use this information :-)

Regards
Offline Cero

JGO Neuromancer
****

Posts: 1050
Medals: 18



« Reply #36 on: 2012-01-16 14:40:10 »

FMod works fine, just do it right Grin

Slick uses LWJGL which uses OpenAL - you can use that too

Offline GustavXIII

Jr. Member
**

Posts: 57



« Reply #37 on: 2012-01-17 05:56:13 »

FMod works fine, just do it right Grin

Slick uses LWJGL which uses OpenAL - you can use that too

Then tell me how. I put every .jar and .dll in the directory??
And Init.loadLibraries does not work.

I will try using Slick to play music thanks.

EDIT: OK it work with Slick I dont need FMod xD"
Offline ctomni231

JGO n00b
*

Posts: 4
Medals: 1



« Reply #38 on: 2012-01-17 19:37:31 »

Hey Gustav and other members who are having this problem.

I've been using Slick for a while and have been using it to package .jars. The error is caused when the natives are not in the same directory as the .jar. If you bundled them with the .jar, this error will keep appearing.

There are a lot of natives bundled with Slick. The fastest way is to find the natives that are for your specific OS and put your .jar in a separate folder along with the natives. A quick example for Windows...

<New Folder Contents: blah.jar, lwj*l.dll, OpenA*32.dll, jinput*raw.dll, jinput*dx8.dll>

I just piled all the natives into a folder called native.

native/natives-win32 (Windows Natives)
native/natives-linux (Linux natives)
native/natives-mac (Mac natives)


Then I put that folder in the same folder as the .jar

blah.jar, native(DIR) [contains the natives]

Then put this line when running Java...

java -Djava.library.path=native\natives-win32;lib\native\natives-linux;lib\natives\natives-mac -jar blah.jar

Of course, you can always use the bundling programs suggested if you wanted to package it as a single .jar. But hopefully this helps.

Pages: 1 [2]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.134 seconds with 20 queries.