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

Re: Selecting a javac which supports at least Java5



Hi,

you might use the cdbs system and add the variable as follows:
JAVA_HOME_DIRS       := /usr/lib/jvm/java-1.5.0 /usr/lib/jvm/java-1.6.0
(in order of preference)

Note: some sponsors refuse the CDBS system, but I don't think this is the case within the Debian-Java community.

Hope this helps,
Eric

Benjamin Mesing wrote:
[Please CC, I am not subscribed]

Hello,

I want to build a package which requires Java 5. Therefore I
build-depend on (sun-java5-jdk | sun-java6-jdk). How do I ensure, that
the correct compiler is used. E.g. if a free java compiler is
installed, /usr/bin/javac might point to the free compiler which might
not yet support Java 5. Is the only way, to explicitly set the java
compiler path (i.e. /usr/lib/jvm/java-1.5.0/bin/javac
or /usr/lib/jvm/java-1.6.0/bin/javac)?
This is overly restrictive (as is the dependency mentioned above), and
is not a good solution.

Can anyone think of a better solution?

Thanks,

Ben





Reply to: