LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cant get 32 bit java extension to work on 64 bit java on OpenSUSE (https://www.linuxquestions.org/questions/linux-software-2/cant-get-32-bit-java-extension-to-work-on-64-bit-java-on-opensuse-4175425846/)

g_rocket 09-05-2012 05:39 PM

cant get 32 bit java extension to work on 64 bit java on OpenSUSE
 
I'm writing a java application which uses the CDDA plugin for tritonus (tritonus.org), which is only available in 32 bit. whenever it tries to access the plugin, it throws a java.lang.UnsatisfiedLinkError, because it cant find the plugin. to solve this, i think i need to either:
install 32 bit java alongside 64 bit java, and find some way to specify which to use whenever i use a java program, none of which i know how to do, or
find some way to run the java program in 64 bit, but run the extension in 32 bit, which i'm not sure is possible but would be the desirable situation, or
compile the plugin for 64 bit, which i dont know how to do or if it is possible, but the source code is available

Ygrex 09-06-2012 12:43 AM

you cannot link 32bit libs with 64bit executables

g_rocket 09-06-2012 07:26 AM

Thanks so much.

sundialsvcs 09-06-2012 09:01 AM

You must recompile the extension using a compatible set of compiler-options, or, better yet, obtain a known-good 64 bit binary package (because then someone else has done the hard stuff for you ... :hattip: ).

32-bit code makes certain assumptions about the use and content (and width ...) of CPU registers and so-forth, which will not be the case with 64-bit versions. Therefore you are mixing apples and oranges, and of course, winding up with smashed fruit.

John VV 09-06-2012 11:16 AM

a few things
opensuse 12.1 ships using the 32 bit openJDK java ON THE 64 BIT OS
os
links the web browser to the 32 bit plugins using "alternatives "

os

unless YOU installed a different java you have the 32 bit installed

Quote:

and find some way to specify which to use whenever i use a java program
this is already built in
it is called " alternatives "

g_rocket 09-07-2012 07:09 AM

I think i found a version of the extension compiled for x86_64, but it says it's compiled for fedora. Will it still work on opensuse?
http://rpm.pbone.net/index.php3/stat...86_64.rpm.html

John VV 09-07-2012 03:39 PM

suse uses the open build system
https://build.opensuse.org/

look there first

also use yast if you have common third party repos installed
OBS , pacman, ....
and the suse wiki
http://en.opensuse.org/Main_Page
and documentation
http://doc.opensuse.org/


fedora rpms are incompatible for any os other that the one version of fedora it was build for
that one is for the soon to be "end of life" fedora 16


All times are GMT -5. The time now is 12:34 AM.