Forgot For go to reply to the list...
-------- Forwarded Message --------
> From: Hans Witvliet <suse(a)a-domani.nl>
> To: Greg Freemyer <greg.freemyer(a)gmail.com>
> Subject: Re: [opensuse] java / openjdk
> Date: Sat, 01 Dec 2012 08:38:23 +0100
>
> On Fri, 2012-11-30 at 19:11 -0500, Greg Freemyer wrote:
> > On Fri, Nov 30, 2012 at 7:00 PM, Hans Witvliet <suse(a)a-domani.nl> wrote:
> > > Hi,
> > >
> > > Any java guru's around here?
> > >
> > > Perhaps i'm a bit confused about the naming structure...
> > >
> > > For one of the projects i'm working for, the manual tels me that openjdk
> > > is preferred above (Oracle-)JDK, and that i should use openjdk6.
> > >
> > > A couple of weeks ago i saw openjdk6-1.6.0, but when ik look now, all i
> > > see is java-1_7_0-openjdk-1.7.0.6-3.16.1.i586
> > > Are these both versions of openjdk6 ?
> > >
> > > Should i be able to install/use 1.7.0 instead of 1.6.0 ??
> > > Or are they incompatible?
> > >
> > > Hans
> >
> > I don't know why but:
> >
> > Java 4 is released as java-1_4
> > Java 5 is released as java-1_5
> > Java 6 is released as java-1_6
> > Java 7 is released as java-1_7
> >
> > And there can be backward compatibility issues between the versions,
> > so you can always try your Java 6 app in Java 7, but if it doesn't
> > work try it with Java 6 instead.
> >
> > fyi: When a Java app is built it can specify which JREs it needs to
> > run, so it may just immediately fail and say you need some specific
> > version.
> >
> > Greg
>
>
> Thanks Greg,
>
> Supposed something like that. but what me got wondering are some files
> on the OBS:
> /srv/distro/repo/Java:/openjdk6:/Factory/openSUSE_11.4/x86_64/java-1_7_0-openjdk-1.7.0.6-55.1.x86_64.rpm
> /srv/distro/repo/Java:/openjdk6:/Factory/openSUSE_11.4/x86_64/java-1_6_0-openjdk-1.6.0.0_b24.1.11.5-2.1.x86_64.rpm
> Both reside under "openjdk6",
> but one is java-1_6_0 and the other is java_1-7_0 !!
>
> So i would expect that the sdk needed for "java 7" would be named
> openjdk7. but something like that doesn't exist on the OBS.
>
>
>
>
>
> With regards to the app: they said: to build it, use either oracle JDK
> (no version specified) or preferably "openjdk6"
>
> for OS_12.2 i seem to have no option but 1_7_0, but ant gives a couple
> of times:
> --------------------------------
> [javac] WARNING
> [javac]
> [javac] The -source switch defaults to 1.7 in JDK 1.7.
> [javac] If you specify -target 1.6 you now must also specify -source
> 1.6.
> [javac] Ant will implicitly add -source 1.6 for you. Please change your
> build file.
> [javac] warning: [options] bootstrap class path not set in conjunction
> with -source 1.6
> -------------------------------
> This give me the impression (!) that it has a hard dependancy on 1_6_0..
>
>
>
> Or, if they are such incompatible, why has java-1_6_0-openjdk-1.6.0 been
> removed from the OBS for OS_12.2?
> It is still there for OS_11.4, OS_12,1 and even sles11_sp2.
>
> Hans
>
>
--
To unsubscribe, e-mail: opensuse+unsubscribe(a)opensuse.org
To contact the owner, e-mail: opensuse+owner(a)opensuse.org