[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Using free-java-sdk (was: Re: getting java to compile and run)



Hi, Neil.

On Nov 03 2005, Neil Dugan wrote:
> Hi,
> 
> I have installed 'free-java-sdk' but it doesn't appear to have been 
> setup correctly.  When I ask it to comple a "hello world" type class 
> (from a book) I get the following error message.

Unfortunately, I can't help you that much, since I don't call jikes
directly. I always use the "javac" wrapper around jikes and it works
quite well. Then, for running the code I use the "java" wrapper around
the JVM that you specified (sablevm, by default) and everything works
OK:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
rbrito@dumont:~$ cat > HelloWorld.java
class HelloWorld {
	public static void main(String[] args) {
		System.out.println("Hello, World!");
	}
}
rbrito@dumont:~$ javac HelloWorld.java 
rbrito@dumont:~$ java HelloWorld 
Hello, World!
rbrito@dumont:~$ javac --help
Jikes Compiler - Version 1.22 - 3 October 2004
Copyright (C) IBM Corporation 1997-2003, 2004.
- Licensed Materials - Program Property of IBM - All Rights Reserved.
use: jikes [options] [@files] file.java...
(...)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

> Can someone help me to get this working?


Hope this helps, Rogério Brito.

-- 
Rogério Brito : rbrito@ime.usp.br : http://www.ime.usp.br/~rbrito
Homepage of the algorithms package : http://algorithms.berlios.de
Homepage on freshmeat:  http://freshmeat.net/projects/algorithms/



Reply to: