Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Mar 2012 09:22:58 -0700
From:      Jason Helfman <jgh@FreeBSD.org>
To:        Jung-uk Kim <jkim@FreeBSD.org>
Cc:        freebsd-eclipse@FreeBSD.org, freebsd-java@FreeBSD.org
Subject:   Re: [RFC] New Port: Eclipse Java Compiler, java/eclipse-ecj
Message-ID:  <20120320162258.GN46825@dormouse.experts-exchange.com>
In-Reply-To: <201203191945.50219.jkim@FreeBSD.org>
References:  <20120318180225.GA51618@dormouse.experts-exchange.com> <201203191900.42677.jkim@FreeBSD.org> <20120319230818.GJ46825@dormouse.experts-exchange.com> <201203191945.50219.jkim@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 19, 2012 at 07:45:45PM -0400, Jung-uk Kim thus spake:
>On Monday 19 March 2012 07:08 pm, Jason Helfman wrote:
>> On Mon, Mar 19, 2012 at 07:00:39PM -0400, Jung-uk Kim thus spake:
>> >Hmm...  It doesn't seem right.
>> >
>> >% cat /usr/local/bin/ecj.sh
>> >#!/bin/sh
>> >
>> >/usr/local/openjdk6/bin/javac -classpath
>> > /usr/local/share/java/classes/ecj.jar $1 % /usr/local/bin/ecj.sh
>> > -version
>> >javac 1.6.0_30
>> >% /usr/local/openjdk6/bin/javac -version
>> >javac 1.6.0_30
>> >
>> >Please note it isn't coming from ecj.jar.
>>
>> That is grabbing the version of javac based on the shell script.
>
>Yes, that's exactly my point. :-)
>
>> I'm not certain if you can get a vesion of the jar with an
>> argument, or if that argument is even valid.
>
>Of course, it is valid:
>
>% fetch
>http://download.eclipse.org/eclipse/downloads/drops/R-3.7.2-201202080800/ecj-3.7.2.jar
>ecj-3.7.2.jar                                 100% of 1708 kB 1851
>kBps
>% /usr/local/openjdk6/bin/java -jar ecj-3.7.2.jar -version
>Eclipse Compiler for Java(TM) 0.B83_R37x, 3.7.2, Copyright IBM Corp
>2000, 2011. All rights reserved.

 From the bug I had opened, it was indicated that you can run this to get the
same result:

[jhelfman@dormouse.experts-exchange /usr/local/share/java/classes]$ java -cp
ecj-3.7.2.jar org.eclipse.jdt.internal.compiler.batch.Main -version
Eclipse Compiler for Java(TM) 0.B83_R37x, 3.7.2, Copyright IBM Corp 2000,
2011. All rights reserved.

Here is a bit from the log of the bug:
--- Comment #2 from Satyam Kandula <satyam.kandula@in.ibm.com> 2012-03-20
11:48:50 EDT ---
The Manifest.Mf is not including the main class! I will see what could be
done here. Otherwise, you could try out
%java -cp ecj.jar  org.eclipse.jdt.internal.compiler.batch.Main -version

I'll see if I can tune the shell script to output the same.
-jgh

-- 
Jason Helfman         | FreeBSD Committer
jgh@FreeBSD.org       | http://people.freebsd.org/~jgh



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120320162258.GN46825>