Thread: Re: [sdljava-users] Problems with SDLJava_Image.dll and jpeg.dll
Status: Beta
Brought to you by:
ivan_ganza
From: <lui...@co...> - 2005-05-16 16:30:28
|
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: <sdl...@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 > > |
From: Patric <pa...@ma...> - 2005-08-13 14:33:06
|
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 > > > > |
From: Patric <pa...@ma...> - 2005-08-13 17:07:01
|
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 >> > > > > > > |
From: Ivan Z. G. <iva...@ya...> - 2005-08-13 19:55:24
|
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 |
From: Patric <pa...@ma...> - 2005-08-14 19:04:11
|
Hi Ivan, Yes, I am using Eclipse. Yesterday I tried everything to get it working before I had the idea patching the dlls: I played around with bootclasspath and java.library.path. But I didn't get it working. It seems that an vm instanced by Eclipse favours the JRE/bin path - independent of the passed vm arguments. At command line everything worked perfect (with the same vm arguments, working directory and jre as in eclipse! In my Eclipse environment I tried passing "sdljava.bootclasspath" to the vm (with the unpatched libraries), but it didn't have any effect, the ordinal 50 problem always occured. Yes, my fix works fine at the command line. Best regards, Patric Ivan Z. Ganza schrieb: > 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 > > > > > > ------------------------------------------------------- > 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 > > |
From: Ivan Z. G. <iva...@ya...> - 2005-05-16 22:12:02
|
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/ lui...@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: <sdl...@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 >sdl...@li... >https://lists.sourceforge.net/lists/listinfo/sdljava-users > > |