Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (649)
Games in Android Showcase (181)
games submitted by our members
Games in WIP (700)
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  
  OpenAL Startup Problem  (Read 1983 times)
0 Members and 1 Guest are viewing this topic.
Offline Guoshima

Junior Devvie

Java games rock! Do they .. ?

« Posted 2004-05-31 08:51:37 »


my game uses OpenAL to play the music and sounds, and this works fine if I run the game from Eclipse. But if I try to run it from DOS prompt windows or via Jar file I get the following error:

org.lwjgl.openal.OpenALException: Could not load openal library.
       at org.lwjgl.openal.BaseAL.nCreate(Native Method)
       at org.lwjgl.openal.BaseAL.create(Unknown Source)
       at org.lwjgl.openal.AL.create(Unknown Source)
       at util.sound.SoundManager.<init>(
       at logic.GameModel.<init>(
       at core.Engine.<init>(
       at core.GameEngine.<init>(
       at core.GameEngine.main(

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0

NOTE: We are unable to locate the function name symbol for the error
     just occurred. Please refer to release documentation for possible
     reason and solutions.

Current Java thread:
       at org.lwjgl.openal.CoreAL.nalGenSources(Native Method)
       at org.lwjgl.openal.CoreAL.alGenSources(Unknown Source)
       at util.sound.SoundPlayer.init(
       at util.sound.SoundManager.<init>(
       at logic.GameModel.<init>(
       at core.Engine.<init>(
       at core.GameEngine.<init>(
       at core.GameEngine.main(

Dynamic libraries:
0x00400000 - 0x00406000         C:\WINDOWS\system32\java.exe
0x77F40000 - 0x77FED000         C:\WINDOWS\System32\ntdll.dll
0x77E40000 - 0x77F30000         C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E3D000         C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000         C:\WINDOWS\system32\RPCRT4.dll
0x77BE0000 - 0x77C33000         C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08136000         C:\Program Files\Java\j2re1.4.2\bin\client\jvm.d
0x77D10000 - 0x77D9C000         C:\WINDOWS\system32\USER32.dll
0x77C40000 - 0x77C80000         C:\WINDOWS\system32\GDI32.dll
0x76AF0000 - 0x76B1D000         C:\WINDOWS\system32\WINMM.dll
0x6BD00000 - 0x6BD0D000         C:\WINDOWS\system32\SYNCOR11.DLL
0x10000000 - 0x10007000         C:\Program Files\Java\j2re1.4.2\bin\hpi.dll
0x00390000 - 0x0039E000         C:\Program Files\Java\j2re1.4.2\bin\verify.dll
0x003A0000 - 0x003B8000         C:\Program Files\Java\j2re1.4.2\bin\java.dll
0x003C0000 - 0x003CD000         C:\Program Files\Java\j2re1.4.2\bin\zip.dll
0x02E60000 - 0x02F6A000         C:\Program Files\Java\j2re1.4.2\bin\awt.dll
0x72F70000 - 0x72F93000         C:\WINDOWS\system32\WINSPOOL.DRV
0x76330000 - 0x7634C000         C:\WINDOWS\system32\IMM32.dll
0x7CCC0000 - 0x7CDE1000         C:\WINDOWS\system32\ole32.dll
0x5B190000 - 0x5B1C4000         C:\WINDOWS\System32\uxtheme.dll
0x02FD0000 - 0x03020000         C:\Program Files\Java\j2re1.4.2\bin\fontmanager.
0x51000000 - 0x51047000         C:\WINDOWS\system32\ddraw.dll
0x73B30000 - 0x73B36000         C:\WINDOWS\system32\DCIMAN32.dll
0x5C000000 - 0x5C0C8000         C:\WINDOWS\system32\D3DIM700.DLL
0x746A0000 - 0x746E4000         C:\WINDOWS\System32\MSCTF.dll
0x07510000 - 0x07554000         C:\Program Files\Java\j2re1.4.2\bin\lwjgl.dll
0x72210000 - 0x72239000         C:\WINDOWS\system32\DINPUT.dll
0x5F160000 - 0x5F226000         C:\WINDOWS\system32\OPENGL32.dll
0x68FE0000 - 0x68FFF000         C:\WINDOWS\system32\GLU32.dll
0x77BD0000 - 0x77BD7000         C:\WINDOWS\system32\VERSION.dll
0x76C50000 - 0x76C72000         C:\WINDOWS\system32\imagehlp.dll
0x6DA30000 - 0x6DAAD000         C:\WINDOWS\system32\DBGHELP.dll
0x76BB0000 - 0x76BBB000         C:\WINDOWS\system32\PSAPI.DLL

Heap at VM Abort:
def new generation   total 576K, used 171K [0x10010000, 0x100b0000, 0x104f0000)

 eden space 512K,  21% used [0x10010000, 0x1002afc8, 0x10090000)
 from space 64K, 100% used [0x10090000, 0x100a0000, 0x100a0000)
 to   space 64K,   0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation   total 2560K, used 2263K [0x104f0000, 0x10770000, 0x1401000
  the space 2560K,  88% used [0x104f0000, 0x10725ca0, 0x10725e00, 0x10770000)
compacting perm gen  total 4096K, used 2622K [0x14010000, 0x14410000, 0x1801000
  the space 4096K,  64% used [0x14010000, 0x1429fac0, 0x1429fc00, 0x14410000)

Local Time = Mon May 31 12:43:36 2004
Elapsed Time = 1
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
# An error report file has been saved as hs_err_pid2800.log.
# Please refer to the file for further information.

My project doesn't use any special jar files, because all the extra jar's for JOGL, LWJGL, OpanAL, .. are all located directly in my Java ext dir's ..

what am I doind wrong here ? Hope someone can help me out, because I would like to make a Webstart version of my game ..

Offline Matzon

JGO Knight

Medals: 19
Projects: 1

I'm gonna wring your pants!

« Reply #1 - Posted 2004-05-31 09:58:02 »

uh, this isn't really a JOAL question, it is a LWJGL issue...
however, you need to have the lwjglaudio.dll in your library path. Either place it in your executing folder - or point to the folder using -Djava.library.path=<path> appended to your java command.

btw, placing stuff in /ext is a bad habit, since it *will* give you issues later on with stale jars/dlls - just use the classpath (-cp) or library path (-Djava.library.path)

Offline Guoshima

Junior Devvie

Java games rock! Do they .. ?

« Reply #2 - Posted 2004-06-01 05:41:00 »

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

KaiHH (144 views)
2016-01-31 23:15:29

sci4me (150 views)
2016-01-23 21:47:05

sci4me (137 views)
2016-01-23 21:46:58

KaiHH (170 views)
2016-01-19 13:26:42

theagentd (256 views)
2016-01-05 17:10:00

ClaasJG (270 views)
2016-01-03 16:58:36

chrisdalke (260 views)
2015-12-28 06:31:21

Guerra2442 (267 views)
2015-12-25 03:42:55

Guerra2442 (267 views)
2015-12-25 03:27:21

theagentd (294 views)
2015-12-21 14:43:24
List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

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 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!