Re: usage of sablevm on gentoo

Chris Pickett <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
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...
> 
> 
> Q: How to compile java programs with SableVM?
> 
> 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.


It should be noted that you can also compile with Sun's javac and run 
with any VM, you do not need to use jikes for compilation (but you can 
if you want).

$ javac HelloWorld.java
$ java-sablevm HelloWorld

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.