Re: [sdljava-users] maybe an solution to the "ordinal 50" error in the jpeg.dll
Status: Beta
Brought to you by:
ivan_ganza
|
From: Ivan Z. G. <iva...@ya...> - 2005-08-16 19:44:48
|
I'll be creating a faq soon. Will make sure to have this in it.
-Ivan//
/
Markus Seebauer wrote:
>Hi List!
>
>I had the same problem "The ordinal 50 could not be found in jpeg.dll".
>
>The problem was, when starting my app from eclipse, i got the
>ordinal-50-error above, but when starting from commandline everything was
>ok.
>
>the problem was, that eclipse at startup loaded another jpeg.dll from the
>jdk directory per default. this jpeg.dll has nothing in common with the one
>from SDL but its name. nevertheless, when running my app from eclipse, the
>system reckognizes, that there is a jpeg.dll loaded yet and tries to find
>the function with ordinal 50, but cannot find it, because in the loaded
>jpeg.dll form the jdk directory there are less than 50 functions.
>
>i solved the problem by explicitly loading my SDl-related jpeg.dll in my
>application by calling
>
>System.load(new File(".").getCanonicalPath() + "/dlls/jpeg.dll");
>
>(the argument has to be the absolute path to the dll in question.)
>
>this way, my app also works when started from eclipse!
>
>maybe that works..
>
>have fun
>max
>
>
>
>
>>--__--__--
>>
>>Message: 1
>>Date: Sat, 13 Aug 2005 16:31:11 +0200
>>From: Patric <pa...@ma...>
>>To: sdl...@li...
>>Subject: [sdljava-users] Re: Problems with SDLJava_Image.dll and jpeg.dll
>>Reply-To: sdl...@li...
>>
>>Hello List,
>>
>>I have the same problem using JDK 1.4.2 and the newest SDLJava/SDL
>>libraries
>>
>>Interestingly, displaying an image with SDL/SDL_image works perfectly if
>>I use C++ and using the same SDL.dll/SDL_Image.dll without an additional
>>wrapper.
>>
>>So I think that the problem is located at SDLJava_image.dll.
>>
>>BTW: I had a look on my jpeg.dll, ordinal 50 (jpeg_finish_decompress)
>>does exist. Very strange.
>>
>>Maybe UPX (why did you use a beta version of UPX?) causes the problem
>>(Ok, I decompressed the dlls, it didn't work either).
>>
>>Did somebody solve our problem already?
>>
>>I think all problems will be gone if I compile SDL/SDLJava for myself
>>(but I had some problems compiling SDL with MinGW in the past...)
>>
>>Patric
>>
>>
>>
>>
>>
>>>This is strange. I"m assuming this is with the binary release? I did
>>> test the binary release on a windows machine and this part was working
>>> well. I wonder if it is the version of the jpeg.dll or something along
>>> those lines.
>>>
>>> Try to download:
>>>
>>>
>>>
>>>
>>http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.4-win32.zip
>>
>>
>>>
>>> and use the image dlls from this. I"m not sure if that is what you are
>>> currently using? I tested it against the image handling libraries
>>> provided in that download.
>>>
>>> Let me know how it goes...
>>>
>>> -Ivan/
>>>
>>> luis.montes@co... wrote:
>>>
>>> >Same here with PNG"s too.
>>> >I don"t think your jpeg.dll is corrupted.
>>> >
>>> >
>>> >
>>> >
>>> >
>>> >>From: "David Felkel" <fe...@in...>
>>> >>Date: 2005/05/16 Mon AM 07:34:47 EDT
>>> >>To: <sdljava-users@li...>
>>> >>Subject: [sdljava-users] Problems with SDLJava_Image.dll and jpeg.dll
>>> >>
>>> >>Hi!
>>> >>I recently installed SDLJava on a Win32-Systerm and everything seemed
>>>
>>>
>>ok, until I tried
>>
>>
>>>to load an image with SDLImage..load(".../test.bmp"). I get the
>>>
>>>
>>following error messages:
>>
>>
>>> >>
>>> >>1. The ordinal 50 could not be found in jpeg.dll (in a MessageBox)
>>> >>2. Native code library failed to load.
>>> >> java.lang.UnsatisfiedLinkError:
>>>
>>>
>>C:\WINNT\system32\SDLJava_image.dll: The operating
>>
>>
>>>system cannot run %1
>>> >> (on the console)
>>> >>
>>> >>It seems that somehow my jpeg.dll is corrupted. I already tried to
>>>
>>>
>>use the dlls that come
>>
>>
>>>with SDL_Image 1.2.4 instead of 1.2.3 but it still does not work. Maybe
>>>
>>>
>>someone can expain
>>
>>
>>>me how to fix that error, or send me a working SDLJava_Image.dll and
>>>
>>>
>>jpeg.dll.
>>
>>
>>> >>
>>> >>Thanks in advance,
>>> >>D. Felkel
>>> >>
>>> >>
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> >-------------------------------------------------------
>>> >This SF.Net email is sponsored by Oracle Space Sweepstakes
>>> >Want to be the first software developer in space?
>>> >Enter now for the Oracle Space Sweepstakes!
>>> >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
>>> >_______________________________________________
>>> >sdljava-users mailing list
>>> >sdljava-users@li...
>>> >https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>> >
>>> >
>>>
>>>
>>
>>
>>--__--__--
>>
>>Message: 2
>>Date: Sat, 13 Aug 2005 19:05:02 +0200
>>From: Patric <pa...@ma...>
>>To: sdl...@li...
>>Subject: [sdljava-users] Re: Problems with SDLJava_Image.dll and jpeg.dll
>>Reply-To: sdl...@li...
>>
>>Hi list,
>>
>>I finally figured out the problem:
>>It is a dll collision with the jpeg.dll from SDL and the one at the
>>JRE/bin folder.
>>
>>My solution was renaming the SDL jpeg.dll and patching the SDL_Image.dll
>>import table that it points to the new name.
>>
>>Maybe we should consider contact the SDL_Image team that they think
>>about renaming of the jpeg library.
>>
>>Best regards
>>Patric
>>
>>
>>
>>Patric schrieb:
>>
>>
>>>Hello List,
>>>
>>>I have the same problem using JDK 1.4.2 and the newest SDLJava/SDL
>>>libraries
>>>
>>>Interestingly, displaying an image with SDL/SDL_image works perfectly if
>>>I use C++ and using the same SDL.dll/SDL_Image.dll without an additional
>>>wrapper.
>>>
>>>So I think that the problem is located at SDLJava_image.dll.
>>>
>>>BTW: I had a look on my jpeg.dll, ordinal 50 (jpeg_finish_decompress)
>>>does exist. Very strange.
>>>
>>>Maybe UPX (why did you use a beta version of UPX?) causes the problem
>>>(Ok, I decompressed the dlls, it didn't work either).
>>>
>>>Did somebody solve our problem already?
>>>
>>>I think all problems will be gone if I compile SDL/SDLJava for myself
>>>(but I had some problems compiling SDL with MinGW in the past...)
>>>
>>>Patric
>>>
>>>
>>>
>>>
>>>
>>>>This is strange. I"m assuming this is with the binary release? I did
>>>> test the binary release on a windows machine and this part was
>>>>working well. I wonder if it is the version of the jpeg.dll or
>>>>something along those lines.
>>>>
>>>> Try to download:
>>>>
>>>>
>>>>
>>>>
>>http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.4-win32.zip
>>
>>
>
>
>
>>>>
>>>> and use the image dlls from this. I"m not sure if that is what you
>>>>are currently using? I tested it against the image handling
>>>>libraries provided in that download.
>>>>
>>>> Let me know how it goes...
>>>>
>>>> -Ivan/
>>>>
>>>> luis.montes@co... wrote:
>>>>
>>>> >Same here with PNG"s too.
>>>> >I don"t think your jpeg.dll is corrupted.
>>>> >
>>>> >
>>>> >
>>>> > >
>>>> >>From: "David Felkel" <fe...@in...>
>>>> >>Date: 2005/05/16 Mon AM 07:34:47 EDT
>>>> >>To: <sdljava-users@li...>
>>>> >>Subject: [sdljava-users] Problems with SDLJava_Image.dll and
>>>>
>>>>
>>jpeg.dll
>>
>>
>>>> >>
>>>> >>Hi!
>>>> >>I recently installed SDLJava on a Win32-Systerm and everything
>>>>seemed ok, until I tried
>>>>to load an image with SDLImage..load(".../test.bmp"). I get the
>>>>following error messages:
>>>> >>
>>>> >>1. The ordinal 50 could not be found in jpeg.dll (in a MessageBox)
>>>> >>2. Native code library failed to load.
>>>> >> java.lang.UnsatisfiedLinkError:
>>>>C:\WINNT\system32\SDLJava_image.dll: The operating
>>>>system cannot run %1 >> (on the console)
>>>> >>
>>>> >>It seems that somehow my jpeg.dll is corrupted. I already tried to
>>>>use the dlls that come
>>>>with SDL_Image 1.2.4 instead of 1.2.3 but it still does not work.
>>>>Maybe someone can expain
>>>>me how to fix that error, or send me a working SDLJava_Image.dll and
>>>>jpeg.dll.
>>>> >>
>>>> >>Thanks in advance,
>>>> >>D. Felkel
>>>> >>
>>>> >>
>>>> >> >>
>>>> >
>>>> >
>>>> >
>>>> >-------------------------------------------------------
>>>> >This SF.Net email is sponsored by Oracle Space Sweepstakes
>>>> >Want to be the first software developer in space?
>>>> >Enter now for the Oracle Space Sweepstakes!
>>>> >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
>>>> >_______________________________________________
>>>> >sdljava-users mailing list
>>>> >sdljava-users@li...
>>>> >https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>>> > >
>>>>
>>>>
>>>
>>>
>>>
>>>
>>--__--__--
>>
>>Message: 3
>>Date: Sat, 13 Aug 2005 15:55:10 -0400
>>From: "Ivan Z. Ganza" <iva...@ya...>
>>To: sdl...@li...
>>Subject: Re: [sdljava-users] Re: Problems with SDLJava_Image.dll and
>>jpeg.dll
>>Reply-To: sdl...@li...
>>
>>Hi Patric,
>>
>>Interesting..
>>
>>Are you using Eclipse as your IDE? The ordinal problem is known to
>>occur there and you have to manually specify the location to the shared
>>libraries.
>>
>>To test this try running your program from the command line instead of
>>the ide. It should work fine from the command line.
>>
>>To specify manually you can need to pass "sdljava.bootclasspath" as a -D
>>switch. The value can be whatever as long as its set. This prevents
>>sdljava from calling System.loadLibrary itself. Then you need to
>>manually System.loadLibrary the shared libaries.
>>
>>You seem to have found a diffeent kind of fix. Would you let me know if
>>it does work from the command line?
>>
>>thanks,
>>-Ivan/
>>
>>Patric wrote:
>>
>>
>>
>>>Hi list,
>>>
>>>I finally figured out the problem:
>>>It is a dll collision with the jpeg.dll from SDL and the one at the
>>>JRE/bin folder.
>>>
>>>My solution was renaming the SDL jpeg.dll and patching the
>>>SDL_Image.dll import table that it points to the new name.
>>>
>>>Maybe we should consider contact the SDL_Image team that they think
>>>about renaming of the jpeg library.
>>>
>>>Best regards
>>>Patric
>>>
>>>
>>>
>>>Patric schrieb:
>>>
>>>
>>>
>>>>Hello List,
>>>>
>>>>I have the same problem using JDK 1.4.2 and the newest SDLJava/SDL
>>>>libraries
>>>>
>>>>Interestingly, displaying an image with SDL/SDL_image works perfectly
>>>>if I use C++ and using the same SDL.dll/SDL_Image.dll without an
>>>>additional wrapper.
>>>>
>>>>So I think that the problem is located at SDLJava_image.dll.
>>>>
>>>>BTW: I had a look on my jpeg.dll, ordinal 50 (jpeg_finish_decompress)
>>>>does exist. Very strange.
>>>>
>>>>Maybe UPX (why did you use a beta version of UPX?) causes the problem
>>>>(Ok, I decompressed the dlls, it didn't work either).
>>>>
>>>>Did somebody solve our problem already?
>>>>
>>>>I think all problems will be gone if I compile SDL/SDLJava for myself
>>>>(but I had some problems compiling SDL with MinGW in the past...)
>>>>
>>>>Patric
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>This is strange. I"m assuming this is with the binary release? I
>>>>>did test the binary release on a windows machine and this part was
>>>>>working well. I wonder if it is the version of the jpeg.dll or
>>>>>something along those lines.
>>>>>
>>>>> Try to download:
>>>>>
>>>>>
>>>>>
>>>>>
>>http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.4-win32.zip
>>
>>
>>>>>
>>>>> and use the image dlls from this. I"m not sure if that is what you
>>>>>are currently using? I tested it against the image handling
>>>>>libraries provided in that download.
>>>>>
>>>>> Let me know how it goes...
>>>>>
>>>>> -Ivan/
>>>>>
>>>>> luis.montes@co... wrote:
>>>>>
>>>>> >Same here with PNG"s too.
>>>>> >I don"t think your jpeg.dll is corrupted.
>>>>> >
>>>>> >
>>>>> >
>>>>> > >
>>>>> >>From: "David Felkel" <fe...@in...>
>>>>> >>Date: 2005/05/16 Mon AM 07:34:47 EDT
>>>>> >>To: <sdljava-users@li...>
>>>>> >>Subject: [sdljava-users] Problems with SDLJava_Image.dll and
>>>>>jpeg.dll
>>>>> >>
>>>>> >>Hi!
>>>>> >>I recently installed SDLJava on a Win32-Systerm and everything
>>>>>seemed ok, until I tried
>>>>>to load an image with SDLImage..load(".../test.bmp"). I get the
>>>>>following error messages:
>>>>> >>
>>>>> >>1. The ordinal 50 could not be found in jpeg.dll (in a MessageBox)
>>>>> >>2. Native code library failed to load.
>>>>> >> java.lang.UnsatisfiedLinkError:
>>>>>C:\WINNT\system32\SDLJava_image.dll: The operating
>>>>>system cannot run %1 >> (on the console)
>>>>> >>
>>>>> >>It seems that somehow my jpeg.dll is corrupted. I already tried
>>>>>to use the dlls that come
>>>>>with SDL_Image 1.2.4 instead of 1.2.3 but it still does not work.
>>>>>Maybe someone can expain
>>>>>me how to fix that error, or send me a working SDLJava_Image.dll and
>>>>>jpeg.dll.
>>>>> >>
>>>>> >>Thanks in advance,
>>>>> >>D. Felkel
>>>>> >>
>>>>> >>
>>>>> >> >>
>>>>> >
>>>>> >
>>>>> >
>>>>> >-------------------------------------------------------
>>>>> >This SF.Net email is sponsored by Oracle Space Sweepstakes
>>>>> >Want to be the first software developer in space?
>>>>> >Enter now for the Oracle Space Sweepstakes!
>>>>> >http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
>>>>> >_______________________________________________
>>>>> >sdljava-users mailing list
>>>>> >sdljava-users@li...
>>>>> >https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>>>> > >
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>-------------------------------------------------------
>>>SF.Net email is Sponsored by the Better Software Conference & EXPO
>>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle
>>>Practices
>>>Agile & Plan-Driven Development * Managing Projects & Teams * Testing
>>>& QA
>>>Security * Process Improvement & Measurement *
>>>
>>>
>>http://www.sqe.com/bsce5sf
>>
>>
>>>_______________________________________________
>>>sdljava-users mailing list
>>>sdl...@li...
>>>https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>>
>>>
>>
>>
>>
>>--__--__--
>>
>>_______________________________________________
>>sdljava-users mailing list
>>sdl...@li...
>>https://lists.sourceforge.net/lists/listinfo/sdljava-users
>>
>>
>>End of sdljava-users Digest
>>
>>
>>
>
>
>
|