Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (578)
games submitted by our members
Games in WIP (498)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 [2]
  ignore  |  Print  
  UnsatisfiedLinkError: no lwjgl in java.library.path  (Read 8432 times)
0 Members and 1 Guest are viewing this topic.
Offline sproingie
« Reply #30 - Posted 2012-01-10 23: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


Medals: 322
Projects: 2
Exp: 4 years


I'm the King!


« Reply #31 - Posted 2012-01-11 00:36:31 »

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

Offline GustavXIII

Junior Member


Projects: 1



« Reply #32 - Posted 2012-01-11 11: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! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline niq

Junior Newbie





« Reply #33 - Posted 2012-01-11 21: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

Junior Member


Projects: 1



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

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

Junior Newbie





« Reply #35 - Posted 2012-01-16 20: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
« Reply #36 - Posted 2012-01-16 20:40:10 »

FMod works fine, just do it right Grin

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

Offline GustavXIII

Junior Member


Projects: 1



« Reply #37 - Posted 2012-01-17 11: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 Ninja


Medals: 71
Projects: 1
Exp: 7 years


Not a glitch. Just have a lil' pixelexia...


« Reply #38 - Posted 2012-01-18 01: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]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (27 views)
2014-04-15 18:08:23

BurntPizza (23 views)
2014-04-15 03:46:01

UprightPath (38 views)
2014-04-14 17:39:50

UprightPath (20 views)
2014-04-14 17:35:47

Porlus (36 views)
2014-04-14 15:48:38

tom_mai78101 (61 views)
2014-04-10 04:04:31

BurntPizza (119 views)
2014-04-08 23:06:04

tom_mai78101 (219 views)
2014-04-05 13:34:39

trollwarrior1 (186 views)
2014-04-04 12:06:45

CJLetsGame (193 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
java-gaming.org 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‑gaming.org
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!