From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24605 invoked by alias); 2 Aug 2003 21:54:25 -0000 Mailing-List: contact eclipse-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: eclipse-owner@sources.redhat.com Received: (qmail 24596 invoked from network); 2 Aug 2003 21:54:24 -0000 Subject: Re: Recognizing gcj as default StandardVM (JRE System Library) From: Mark Wielaard To: eclipse@sources.redhat.com In-Reply-To: <87k79wqa3s.fsf@fleche.redhat.com> References: <1059832556.11511.53.camel@elsschot.wildebeest.org> <20030802154316.GA4009@katzien.de> <87k79wqa3s.fsf@fleche.redhat.com> Content-Type: text/plain Organization: Message-Id: <1059861262.32460.24.camel@elsschot.wildebeest.org> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: Sat, 02 Aug 2003 21:54:00 -0000 Content-Transfer-Encoding: 7bit X-SW-Source: 2003-q3/txt/msg00010.txt.bz2 Hi, On Sat, 2003-08-02 at 18:48, Tom Tromey wrote: > > What Mark is talking about is using the JDT with gcj. Right now that > is not easy to set up. No, it took me a long time to figure out how to set it up. But once you know that it expects a /usr/bin/java binary to be available and that when running that binary on some byte code it can access the system property sun.boot.class.path which should point to a jar or zip file containing the core classes in byte code format then it is really easy to setup: - Install native eclipse (and the dependencies) from the RPMs you provided. - Create a /usr/bin/java shell script containing to following: #!/bin/sh gij-ssa -Dsun.boot.class.path=/usr/share/java/libgcj-3.5-tree-ssa.jar $* And you are done! Just start using the new project -> java wizard and new file -> class wizard and you have your Hello World program running in seconds. Cheers, Mark