Re: usage of sablevm on gentoo
"Grzegorz B. Prokopski" <[email protected]>
| Newsgroups | gmane.comp.java.vm.sablevm.general |
|---|---|
| Organization | Debian http://www.debian.org - The Free Operating System |
| Message-ID | <[email protected]> |
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. Q: How do I run java programs with SableVM? A1: The simplest way is to use 'java-sablevm' command which is parameter-compatible with Sun's 'java' command. A2: In our SableVM's JAVA_HOME (once you have installed a SableVM version/package that provides it) you have 'bin/java' command you can use as in Sun's JDK. I wish I could give you some URLs, but ATM my inet connection breaks every few seconds and I'll be lucky if I manage to simply send this email. I hope others can provide more details and/or corrections. Hope this helps, Grzegorz B. Prokopski PS: Cc:ing sablevm-user, as this is the best forum for such questions and I am sure you're not the only one that thinks about asking them. -- Grzegorz B. Prokopski <[email protected]> SableVM - Free, LGPL'ed Java VM http://sablevm.org Why SableVM ?!? http://sablevm.org/wiki/Features Debian GNU/Linux - the Free OS http://www.debian.org