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

Re: Setup a free java development environment



On Mon, 2005-21-03 at 07:35 +0100, Michael Koch wrote:
> On Sun, Mar 20, 2005 at 07:59:43PM -0500, Grzegorz B. Prokopski wrote:
> > On Sat, 2005-19-03 at 09:36 -0500, Barry Hawkins wrote:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > > 
> > > Eric Lavarde wrote:
> > > [...]
> > > | So, is there somewhere a document that explains how to setup a free java
> > > | development environment in parallel to a Sun Java environment, limiting
> > > | the risk of cross-pollution? Plus some explanations on which free
> > > | VM/tools are good/best for what?
> > > [...]
> > > Eric,
> > > ~    Thanks for your interest in free java and its use with Debian.  This
> > > is a good question; I don't think we have done this yet.  The
> > > free-java-sdk is probably the closest thing, but that is primarily a
> > > package that pulls in a collection of free java tools and creates
> > > entries via update-alternatives for common java programs.
> > 
> > Not exactly.  Or even "not really".
> > 
> > As you and other noticed the update-alternatives do not do their job
> > well in java environment (for reasons I do not intend to discuss).
> > 
> > The free-java-sdk package does provide a script that helps setting your
> > alternatives, but free-java-sdk itself does not always use these
> > alternatives.
> > 
> > If you look at the Depends: of this package and at the content of
> > /usr/lib/fjsdk/bin *scripts* (they are not symlinks!) you'll soon
> > find out that the associations are always the following:
> > 
> > jar -> fastjar
> > java -> java-sablevm
> > javac -> jikes-sablevm
> > javadoc -> gjdoc
> > javah -> javah-cp (from classpath-tools package)
> > javap -> javap-cp (from classpath-tools package)
> > serialver -> serialver-cp (from classpath-tools package)
> > 
> > Why's that?  Exactly because of the "alternatives hell" you asked
> > about in your previous message on Wednesday.  This is a setup that
> > *I* know works, and therefore has high chances of working for you.
> 
> You know it works in the circumstances you tested it I know at least
> jikes java javah from cp-tools are unsable in some case. Sure, this can
> be fixed but at least for jikes I dont see the light at the end of the
> tunnel.

Did you find cases where cp-tools and javah are not usable?  Please file
a bugreport then so that I could fix that.

Your note about jikes seems vague.  I do not understand what you meant
by that.

> The problem is that the user *CAN* change the links with java-alt-setup.
> Its some kind of alternatives system, just not the normal one in
> /etc/alternatives. This means we will not have a predfined build environment

I think you have not even looked at java-alt-setup.

It's just a script that invokes update-alternatives for all java-related
alternatives I know may exist.  There's no "secondary" alternatives
system in free-java-sdk.  This is only a helper I found useful myself.

> anymore. I is better to build depend on sablevm, kaffe or whatever directly
> for the the debian source packages. For users free-java-sdk is very good and
> easy to use.

Are you speaking from experience?  In what way the free-java-sdk did not
work for you when building a package that build-depended on it?  Under
what circumstances have you tested it?

I have not heard of any problems and got no bugreports from you.

OTOH I know that free-java-sdk does work for many people.

				Grzegorz B. Prokopski

PS: A new version of free-java-sdk should be in the unstable tomorrow.
-- 
Grzegorz B. Prokopski           <gadek@sablevm.org>
SableVM - Free, LGPL'ed Java VM  http://sablevm.org
Why SableVM ?!?                  http://sablevm.org/wiki/Features
Debian GNU/Linux - the Free OS   http://www.debian.org



Reply to: