|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
UnsatisfiedLinkError running jamvm 1.53 & classpath 0.98Hi,
I'm unable to run jamvm. There are my steps: 1- compile classpath 0.98 with sun-java6-jdk: 1.1- get classpath-0.98.tar.gz 1.2- untar 1.3- sh autogen.sh 1.4- sh ./configure --disable-gtk-peer --disable-gconf-peer --disable-plugin 1.5- make So I have my glibj.zip ready. 2- JamVM: 2.1- get jamvm1.5.3.tar.gz 2.2- untar 2.3- sh ./configure 2.4- make install 2.5- ./jamvm -Xbootclasspath:/usr/local/jamvm/share/jamvm/classes.zip:/home/juanma/Desktop/classpath-0.98/lib/glibj.zip -verbose Holas Where Holas is: public class Holas { public static void main(String[] args) { System.out.println("Buenas, soy un aprendiz de Java!"); } } It was previously compiled javac. On 2.5 I get: [Loaded java/lang/Object from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/Object] [Loaded java/io/Serializable from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/io/Serializable] [Loaded java/lang/reflect/Type from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/reflect/Type] [Loaded java/lang/reflect/AnnotatedElement from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/reflect/AnnotatedElement] [Loaded java/lang/reflect/GenericDeclaration from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/reflect/GenericDeclaration] [Loaded java/lang/Class from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/Class] [Loaded jamvm/java/lang/VMClassLoaderData from /usr/local/jamvm/share/jamvm/classes.zip] [Linking class jamvm/java/lang/VMClassLoaderData] [Loaded java/lang/VMClassLoader from /usr/local/jamvm/share/jamvm/classes.zip] [Linking class java/lang/VMClassLoader] [Loaded java/lang/Cloneable from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/Cloneable] [Loaded java/lang/Package from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/Package] [Created array class [Ljava/lang/Package;] [Loaded java/lang/Comparable from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/Comparable] [Loaded java/lang/CharSequence from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/CharSequence] [Loaded java/lang/String from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/String] [Loaded java/lang/StackTraceElement from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/StackTraceElement] [Created array class [Ljava/lang/StackTraceElement;] ... [Loaded java/lang/ThreadDeath from /home/juanma/Desktop/classpath-0.98/lib/glibj.zip] [Linking class java/lang/ThreadDeath] Exception occurred while printing exception (java/lang/NoClassDefFoundError)... Original exception was java/lang/UnsatisfiedLinkError You can see the full trace at: log.log Could someone give me a clue? Thanks in advance. Ken |
|
|
Re: UnsatisfiedLinkError running jamvm 1.53 & classpath 0.98On Sun, May 17, 2009 at 8:15 PM, pelado <kentenzer@...> wrote:
> 2.5- ./jamvm > -Xbootclasspath:/usr/local/jamvm/share/jamvm/classes.zip:/home/juanma/Desktop/classpath-0.98/lib/glibj.zip > -verbose Holas You might need to specify the location of the libjava*.so shared libraries. Maybe: LD_LIBRARY_PATH=/usr/local/lib ./jamvm .... Just a guess, hope this helps. Robert Dodier ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Jamvm-general mailing list Jamvm-general@... https://lists.sourceforge.net/lists/listinfo/jamvm-general |
|
|
Re: UnsatisfiedLinkError running jamvm 1.53 & classpath 0.98LD_LIBRARY_PATH was not set, I made:
export LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/i386 (where my libjava.so is) But also did not worked :( Any other idea? Thanks! Ken
|
|
|
Re: UnsatisfiedLinkError running jamvm 1.53 & classpath 0.98You need to use the shared libraries from GNU Classpath. By default
these are in /usr/local/classpath/lib/classpath. Find your glibj.zip file and change the share directory to lib. In this directory there should be files such as libjavalang.so. Then do: jamvm -Dgnu.classpath.boot.library.path=<GNU Classpath lib directory> By default these paths are all setup correctly (do jamvm -version to show where JamVM looks), e.g.: java version "1.5.0" JamVM version 1.5.3 Copyright (C) 2003-2009 Robert Lougher <rob@...> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Build information: Execution Engine: inline-threaded interpreter Compiled with: gcc 4.3.3 Boot Library Path: /usr/local/classpath/lib/classpath Boot Class Path: /usr/local/jamvm/share/jamvm/classes.zip:/usr/local/classpath/share/classpath/glibj.zip You must be trying to run things from a different place to the default. You can use the --with-classpath-install-dir on JamVMs configure to tell it where Classpath will be installed, and the paths will be setup to there. Rob. 2009/5/20 pelado <kentenzer@...>: > > LD_LIBRARY_PATH was not set, I made: > export LD_LIBRARY_PATH=/usr/lib/jvm/java-6-openjdk/jre/lib/i386 (where my > libjava.so is) > > But also did not worked :( > > Any other idea? > > Thanks! > Ken > > > Robert Dodier wrote: >> >> On Sun, May 17, 2009 at 8:15 PM, pelado <kentenzer@...> wrote: >> >>> 2.5- ./jamvm >>> -Xbootclasspath:/usr/local/jamvm/share/jamvm/classes.zip:/home/juanma/Desktop/classpath-0.98/lib/glibj.zip >>> -verbose Holas >> >> You might need to specify the location of the libjava*.so shared >> libraries. >> Maybe: >> LD_LIBRARY_PATH=/usr/local/lib ./jamvm .... >> >> Just a guess, hope this helps. >> >> Robert Dodier >> >> ------------------------------------------------------------------------------ >> Crystal Reports - New Free Runtime and 30 Day Trial >> Check out the new simplified licensing option that enables >> unlimited royalty-free distribution of the report engine >> for externally facing server and web deployment. >> http://p.sf.net/sfu/businessobjects >> _______________________________________________ >> Jamvm-general mailing list >> Jamvm-general@... >> https://lists.sourceforge.net/lists/listinfo/jamvm-general >> >> > > -- > View this message in context: http://www.nabble.com/UnsatisfiedLinkError-running-jamvm-1.53---classpath-0.98-tp23587787p23628122.html > Sent from the JamVM mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables > unlimited royalty-free distribution of the report engine > for externally facing server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > Jamvm-general mailing list > Jamvm-general@... > https://lists.sourceforge.net/lists/listinfo/jamvm-general > ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Jamvm-general mailing list Jamvm-general@... https://lists.sourceforge.net/lists/listinfo/jamvm-general |
|
|
Re: UnsatisfiedLinkError running jamvm 1.53 & classpath 0.98Hi Rob,
Last time I was compiling classpath in one machine and intalling jamVM in another. Now I tried both in the same machine and still have the same error. I also tried the 2 options you gave me: - running jamvm with: -Dgnu.classpath.boot.library.path - configuring jamvm before installing with: --with-classpath-install-dir This is how my jam -version looks like: debian5:/usr/local/jamvm/bin# jamvm -version java version "1.5.0" JamVM version 1.5.3 Copyright (C) 2003-2009 Robert Lougher <rob@lougher.org.uk> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Build information: Execution Engine: inline-threaded interpreter with stack-caching Compiled with: gcc 4.3.2 Boot Library Path: yes/lib/classpath Boot Class Path: /usr/local/jamvm/share/jamvm/classes.zip:yes/share/classpath/gl ibj.zip ******************************* Is it correct the "yes" in the Boot Class Path ? When I run with -Xbootclasspath isn't this parameters overriden? Thanks again! Regards, Ken
|
|
|
Re: UnsatisfiedLinkError running jamvm 1.53 & classpath 0.98I just noticed from other posts that many times people install the classpath (I just "make" it).
I'm willing to use JamVM because I need it for a router Linksys WRT54G where I don't have much space that's why I'm not installing it. Perhaps I need to cut it down later... Should I "make install" it first? Thanks! Ken
|
|
|
Re: UnsatisfiedLinkError running jamvm 1.53 & classpath 0.98I managed to make it run :)
I needed to install the classpath first How should I shrink the classpath? I only need to run OSGi over JamVM. Thanks! Ken
|
| Free embeddable forum powered by Nabble | Forum Help |