RE: [gentoo-user] Java and java.library.path
Hi, Kirby Did I've the same problerm a any time ago with a thirty-part lib (*.so), I tried all but no success. I put in LD_LIBRARY var, in CLASS_PATH and nothing. The solucion for me was put the lib (*.so) in the $JAVA_HOME/jre/lib/i386/ directory, I didn't test, but the parameter Djava.library.path=/usr/lib should has the same result. I hope should help you... Rogerio Fé inabalável é somente aquela que pode encarar a razão face-a-face em qualquer época da Humanidade. From: darren kirby [EMAIL PROTECTED] Reply-To: gentoo-user@lists.gentoo.org To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Java and java.library.path Date: Tue, 17 Jan 2006 12:49:30 -0800 Fé inabalável é somente aquela que pode encarar a razão face-a-face em qualquer época da Humanidade. From: darren kirby [EMAIL PROTECTED] Reply-To: gentoo-user@lists.gentoo.org To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Java and java.library.path Date: Tue, 17 Jan 2006 12:49:30 -0800 Hello all, I am trying to get an app called iriverter up and running. Not in portage so I built and installed manually, which went with no errors. However, after starting the app I get: Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3201 in java.library.path But I do have this library: $ locate swt-pi-gtk /usr/lib/libswt-pi-gtk-3201.so I ran java-config to see which java I am using (blackdown-jdk-1.4.2.02) and I edited /etc/env.d/java/20blackdown-jdk-1.4.2.02 and added '/usr/lib/' to the 'ADDLDPATH' variable, ran env-update, sourced /etc/profile, and even logged out and back in but I still have the same error. Now: I don't really know jack about java, so can someone tell me how to get this to work? How can I add /usr/lib/ to java's library path? Thanks for consideration, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 attach3 _ MSN Busca: fácil, rápido, direto ao ponto. http://search.msn.com.br -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Java and java.library.path
quoth the Trenton Adams: on the java command line put -Djava.library.path=/usr/lib I don't know if gentoo has a config for this or not, I didn't know ADDLDPATH existed. Who knows, perhaps editing the JRE version of that file would help? I am really sorry, but I don't know what you mean by 'java command line'. The app itself, is in /usr/bin like everything else, it just gives me that error when I start it from an xterm, ie: $ iriverter insert error message I don't know what you mean by editing the JRE version of that file would help either. What is jre version? What file? Again, I really know nothing of java... Please dumb it down for me a bit if you can... On 1/17/06, darren kirby [EMAIL PROTECTED] wrote: Hello all, I am trying to get an app called iriverter up and running. Not in portage so I built and installed manually, which went with no errors. However, after starting the app I get: Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3201 in java.library.path But I do have this library: $ locate swt-pi-gtk /usr/lib/libswt-pi-gtk-3201.so I ran java-config to see which java I am using (blackdown-jdk-1.4.2.02) and I edited /etc/env.d/java/20blackdown-jdk-1.4.2.02 and added '/usr/lib/' to the 'ADDLDPATH' variable, ran env-update, sourced /etc/profile, and even logged out and back in but I still have the same error. Now: I don't really know jack about java, so can someone tell me how to get this to work? How can I add /usr/lib/ to java's library path? Thanks for consideration, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 pgpImKXicvLYH.pgp Description: PGP signature
Re: [gentoo-user] Java and java.library.path
quoth the habutre .: Hi, Kirby Did I've the same problerm a any time ago with a thirty-part lib (*.so), I tried all but no success. I put in LD_LIBRARY var, in CLASS_PATH and nothing. The solucion for me was put the lib (*.so) in the $JAVA_HOME/jre/lib/i386/ directory, I didn't test, but the parameter Djava.library.path=/usr/lib should has the same result. Hello. I tried you advice, and copied the lib to $JAVA_HOME/jre/lib/i386/ but it is still the same result... I hope should help you... Rogerio Fé inabalável é somente aquela que pode encarar a razão face-a-face em qualquer época da Humanidade. From: darren kirby [EMAIL PROTECTED] Reply-To: gentoo-user@lists.gentoo.org To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Java and java.library.path Date: Tue, 17 Jan 2006 12:49:30 -0800 Fé inabalável é somente aquela que pode encarar a razão face-a-face em qualquer época da Humanidade. From: darren kirby [EMAIL PROTECTED] Reply-To: gentoo-user@lists.gentoo.org To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Java and java.library.path Date: Tue, 17 Jan 2006 12:49:30 -0800 Hello all, I am trying to get an app called iriverter up and running. Not in portage so I built and installed manually, which went with no errors. However, after starting the app I get: Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3201 in java.library.path But I do have this library: $ locate swt-pi-gtk /usr/lib/libswt-pi-gtk-3201.so I ran java-config to see which java I am using (blackdown-jdk-1.4.2.02) and I edited /etc/env.d/java/20blackdown-jdk-1.4.2.02 and added '/usr/lib/' to the 'ADDLDPATH' variable, ran env-update, sourced /etc/profile, and even logged out and back in but I still have the same error. Now: I don't really know jack about java, so can someone tell me how to get this to work? How can I add /usr/lib/ to java's library path? Thanks for consideration, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 attach3 _ MSN Busca: fácil, rápido, direto ao ponto. http://search.msn.com.br -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 pgpyacUiZ62dX.pgp Description: PGP signature
Re: [gentoo-user] Java and java.library.path
darren kirby schreef: quoth the Trenton Adams: on the java command line put -Djava.library.path=/usr/lib I don't know if gentoo has a config for this or not, I didn't know ADDLDPATH existed. Who knows, perhaps editing the JRE version of that file would help? I am really sorry, but I don't know what you mean by 'java command line'. The app itself, is in /usr/bin like everything else, it just gives me that error when I start it from an xterm, ie: $ iriverter insert error message Well, I don't know much about java either, but 4 out of 5 java programs I use are not started by program_name, but by java (-jar) program_name. This would be the java command-line, I imagine. Basically, the idea is that you have to invoke java so that java runs the program. Because the first argument in the command is java, you are then able to use various command-line switches for Java (such as the aforementioned -Djava.library.path=/usr/lib) before telling Java what program you want it to run (in this case iriverter). java -help Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the client VM -server to select the server VM -hotspot is a synonym for the client VM [deprecated] The default VM is client. -cp class search path of directories and zip/jar files -classpath class search path of directories and zip/jar files A : separated list of directories, JAR archives, and ZIP archives to search for class files. -Dname=value set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:value require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -Xprint help on non-standard options -ea[:packagename...|:classname] -enableassertions[:packagename...|:classname] enable assertions -da[:packagename...|:classname] -disableassertions[:packagename...|:classname] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions So I think what Trenton probably meant was that you should try starting the program with java -Djava.library.path=/usr/lib iriverter (assuming that iriverter is not a *.jar file in which case you'd need -jar before iriverter). You know, there's a high likelihood that the iriverter file in /usr/bin is a script that is readable in a text editor. You might want to see if you can have a look at it and see just what it's doing. A readme that tells you how to run the program (man iriverter? iriverter --help?) might be of some use, too. Hope this helps, Holly -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Java and java.library.path [solved]
quoth the Holly Bostick: Well, I don't know much about java either, but 4 out of 5 java programs I use are not started by program_name, but by java (-jar) program_name. This would be the java command-line, I imagine. Basically, the idea is that you have to invoke java so that java runs the program. Because the first argument in the command is java, you are then able to use various command-line switches for Java (such as the aforementioned -Djava.library.path=/usr/lib) before telling Java what program you want it to run (in this case iriverter). java -help Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -client to select the client VM -server to select the server VM -hotspot is a synonym for the client VM [deprecated] The default VM is client. -cp class search path of directories and zip/jar files -classpath class search path of directories and zip/jar files A : separated list of directories, JAR archives, and ZIP archives to search for class files. -Dname=value set a system property -verbose[:class|gc|jni] enable verbose output -version print product version and exit -version:value require the specified version to run -showversion print product version and continue -jre-restrict-search | -jre-no-restrict-search include/exclude user private JREs in the version search -? -help print this help message -Xprint help on non-standard options -ea[:packagename...|:classname] -enableassertions[:packagename...|:classname] enable assertions -da[:packagename...|:classname] -disableassertions[:packagename...|:classname] disable assertions -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions So I think what Trenton probably meant was that you should try starting the program with java -Djava.library.path=/usr/lib iriverter This did not work, but see further: (assuming that iriverter is not a *.jar file in which case you'd need -jar before iriverter). You know, there's a high likelihood that the iriverter file in /usr/bin is a script that is readable in a text editor. Good call, it was a script. Java is called from the script itself, as well as setting up the library path. I simply appended '/usr/lib/' to this path and voila! Fired right up. Showing my ignorance here, I thought it would be a regular executable like everything else. Now I will know for the next time I must wrestle with some java app ;) You might want to see if you can have a look at it and see just what it's doing. A readme that tells you how to run the program (man iriverter? iriverter --help?) might be of some use, too. I forgot to mention in my first post, the app itself had only generic install instructions and an empty README file, so there was no help there... Hope this helps, Holly It helped a great deal, thank you very much, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 pgpqpNlz7OXjE.pgp Description: PGP signature
Re: [gentoo-user] Java and java.library.path
on the java command line put -Djava.library.path=/usr/lib I don't know if gentoo has a config for this or not, I didn't know ADDLDPATH existed. Who knows, perhaps editing the JRE version of that file would help? On 1/17/06, darren kirby [EMAIL PROTECTED] wrote: Hello all, I am trying to get an app called iriverter up and running. Not in portage so I built and installed manually, which went with no errors. However, after starting the app I get: Exception in thread main java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3201 in java.library.path But I do have this library: $ locate swt-pi-gtk /usr/lib/libswt-pi-gtk-3201.so I ran java-config to see which java I am using (blackdown-jdk-1.4.2.02) and I edited /etc/env.d/java/20blackdown-jdk-1.4.2.02 and added '/usr/lib/' to the 'ADDLDPATH' variable, ran env-update, sourced /etc/profile, and even logged out and back in but I still have the same error. Now: I don't really know jack about java, so can someone tell me how to get this to work? How can I add /usr/lib/ to java's library path? Thanks for consideration, -d -- darren kirby :: Part of the problem since 1976 :: http://badcomputer.org ...the number of UNIX installations has grown to 10, with more expected... - Dennis Ritchie and Ken Thompson, June 1972 -- gentoo-user@gentoo.org mailing list