Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (603)
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 1702 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 »

Hello,

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>(SoundManager.java:43)
       at logic.GameModel.<init>(GameModel.java:87)
       at core.Engine.<init>(Engine.java:100)
       at core.GameEngine.<init>(GameEngine.java:38)
       at core.GameEngine.main(GameEngine.java:148)

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x0
Function=[Unknown.]
Library=(N/A)

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(SoundPlayer.java:32)
       at util.sound.SoundManager.<init>(SoundManager.java:50)
       at logic.GameModel.<init>(GameModel.java:87)
       at core.Engine.<init>(Engine.java:100)
       at core.GameEngine.<init>(GameEngine.java:38)
       at core.GameEngine.main(GameEngine.java:148)

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
ll
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.
dll
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:
Heap
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
0)
  the space 2560K,  88% used [0x104f0000, 0x10725ca0, 0x10725e00, 0x10770000)
compacting perm gen  total 4096K, used 2622K [0x14010000, 0x14410000, 0x1801000
0)
  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 ..

Regards,
Kenzo
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.

 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (37 views)
2014-12-15 09:26:44

Mr.CodeIt (31 views)
2014-12-14 19:50:38

BurntPizza (62 views)
2014-12-09 22:41:13

BurntPizza (99 views)
2014-12-08 04:46:31

JscottyBieshaar (60 views)
2014-12-05 12:39:02

SHC (74 views)
2014-12-03 16:27:13

CopyableCougar4 (77 views)
2014-11-29 21:32:03

toopeicgaming1999 (138 views)
2014-11-26 15:22:04

toopeicgaming1999 (127 views)
2014-11-26 15:20:36

toopeicgaming1999 (38 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
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!