Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Mar 2005 18:39:49 +0300
From:      Panagiotis Astithas <past@ebs.gr>
To:        Chuck Robey <chuckr@chuckr.org>
Cc:        java <freebsd-java@freebsd.org>
Subject:   Re: eclipse
Message-ID:  <4246D3C5.5060303@ebs.gr>
In-Reply-To: <424490CD.9080203@chuckr.org>
References:  <424490CD.9080203@chuckr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Robey wrote:
> I'm looking at java ports, now that I *have* a java, and the first I'm 
> looking at is eclipse.  Understand, my processor is an amd64, and the 
> eclipse port is marked for i386 only.  I just went to the site, and they 
> have a binary image available for download for the amd64, so I figure 
> that the amd64 might be reasonably fair game.
> 
> The port I have is the native jdk15.  Immediately after I tested my 
> jdk15 port to work ok, I deleted entirely the linux-sun-jdk14 port I'd 
> built it with, because I didn't want development confusion.  Of course, 
> this first target, when I looked at their build instructions, they ask 
> for a jdk14 port of java.  So, I need to know what's the preferred 
> method of porting for FreeBSD Java ports:
> 
> (1) modify the port to build under the latest compiler, which would be 
> jdk15, or
> 
> (2) run multiple simultaneous java ports?  Can this be cleanly done?
> 
> (3) shove my jdk15 off to the side, put back the linux-sun-jdk14 port, 
> and assume anyone else building it has to do the same thing?
> 
> For my own self, option #1 seems selfish, option 2 possibly the best, 
> but can it work?, and option #3, not terrifically workable.

If you can get it to work, I'd say that option #1 is not selfish, but 
quite helpful for everyone else, indeed! Please give it a shot, the 
eclipse port is supposed to be compilable with jdk>=1.4. See the 
following lines in the port's Makefile:

USE_JAVA=	yes
JAVA_VERSION=	1.4+
JAVA_OS=	native

You can start by changing the following line:

ONLY_FOR_ARCHS=	i386

in the same file, to:

ONLY_FOR_ARCHS=	i386 amd64

and see how far you get from there. Nobody has tried building eclipse 
for amd64 with jdk1.5 yet AFAIK, but that doesn't mean it can't be done. 
And of course, don't forget to post any patches you come up with :-)


Cheers,

Panagiotis



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