Re: usage of sablevm on gentoo
Chris Pickett <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Message-ID | <[email protected]> |
I wrote a response to this before David, but I never got it. Did it get lost somehow? Chris David Bélanger wrote: > On Fri, Feb 04, 2005 at 12:19:31AM -0500, Grzegorz B. Prokopski wrote: > >>On Thu, 2005-03-02 at 15:23 -0500, Marc Lanctot wrote: >> >>>Alex BATKO wrote: >>>i'm interested in trying to use a Free jvm to run simple programs >>>(i'm aware of the classpath problem). Can you show me how to run >>>a simple program using the Sablevm? >>> >>>i know that java-sablevm and sablevm are installed on the gentoo >>>machines, but i don't know how to compile/interpret even >>>HelloWorld.java... >> >>Hi Alex, >> >>This question would be best answered by a Gentoo user/developer >>(David? ;-) >> >> >>Q: How to compile java programs with SableVM? >> >>A0: SableVM is a Java Virtual machine, not a compiler... >> >>A1: Under Debian there's a "jikes-sablevm" equivalent of "javac" >>command, so you can simply do: $ jikes-sablevm HelloWorld.java >>to get your HelloWorld.class file. >> >>A2: In absence of "jikes-sablevm" one should do: >>$ export BOOTCLASSPATH=/path/to/sablevm's/libclasspath.jar >>and then use jikes directly: >>$ jikes HelloWorld.java >> >>A3: IIRC the latest sablevm-svn gentoo packages include JAVA_HOME-like >>directory, in /usr/lib/sablevm, so once this package is installed >>you can use programs in /usr/lib/sablevm/bin just as in Sun's JDK. >> > > > Option 1: > jikes wrapper script. > --------- > #!/bin/sh > > jikes -bootclasspath > /usr/share/sablevm-classpath/libclasspath.jar:/usr/share/sablevm-classpath/resources.jar $* > --------- > > + > > java-sablevm wrapper scripts (provided) > > Simple solution and works with releases of SableVM. > > > Option 2: > experimental java-config support > > http://www.sable.mcgill.ca/~dbelan2/ebuilds/dev-java/sablevm-svn/sablevm-svn-20041216-r3.ebuild > and associated patches/supplemental files: > http://www.sable.mcgill.ca/~dbelan2/ebuilds/dev-java/sablevm-svn/files/ > > The ebuild will get latest version from staging branch which has basic > JAVA_HOME-support. > > In addition, it will add 20sablevm (for java-config) and javac (jikes > wrapper). So it is possible to select SableVM for the VM with > java-config and use: > javac HelloWorld.java > and > java HelloWorld > as with other VMs installed on Gentoo. > > Note: The sablevm-svn ebuild conflicts with the Gentoo release ebuild, > so will need to unemerge the SableVM release... I started working on > this issue but did not have time to complete. > > > David > > --- > > David Bélanger > Web page: http://www.cs.mcgill.ca/~dbelan2/ > Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt > > > _______________________________________________ > SableVM-user mailing list > [email protected] > http://sablevm.org/lists/control/listinfo/sablevm-user >