OBATA Akio | 1 Sep 2010 03:24
Picon

Re: use native Java on Solaris?

On Tue, 31 Aug 2010 23:44:06 +0900, Larson, Timothy E. <TELarson <at> west.com> wrote:

> Is there a way to set mk.conf on my Sol9 box so that the native Java is used?

What java variant is in Sol9 box?
(jdk5 support had been dropped due to EOL).

--

-- 
OBATA Akio / obache <at> NetBSD.org

Larson, Timothy E. | 1 Sep 2010 04:49

RE: use native Java on Solaris?

> What java variant is in Sol9 box?
> (jdk5 support had been dropped due to EOL).

$ java -version
java version "1.4.2_12"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)

Tim

OBATA Akio | 1 Sep 2010 05:03
Picon

Re: use native Java on Solaris?

On Wed, 01 Sep 2010 11:49:21 +0900, Larson, Timothy E. <TELarson <at> west.com> wrote:

>> What java variant is in Sol9 box?
>> (jdk5 support had been dropped due to EOL).
>
> $ java -version
> java version "1.4.2_12"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_12-b03)
> Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode)

sun-jdk14 support also had been dropped from pkgsrc.
Can you install more newer version?
Currently, pkgsrc support sun-jdk6.

--

-- 
OBATA Akio / obache <at> NetBSD.org

Stefan Palm | 1 Sep 2010 09:46

Re: use native Java on Solaris?

* "OBATA Akio" <obache <at> netbsd.org> wrote:

> sun-jdk14 support also had been dropped from pkgsrc.
> Can you install more newer version?
> Currently, pkgsrc support sun-jdk6.

No problem - I've a jdk6 located at "/usr/jdk/instances/jdk1.6.0". How do I tell pkgsrc about it?

Stefan

OBATA Akio | 1 Sep 2010 10:45
Picon

Re: use native Java on Solaris?

On Wed, 01 Sep 2010 16:46:58 +0900, Stefan Palm <stefan.palm <at> pdmc.net> wrote:

> * "OBATA Akio" <obache <at> netbsd.org> wrote:
>
>> sun-jdk14 support also had been dropped from pkgsrc.
>> Can you install more newer version?
>> Currently, pkgsrc support sun-jdk6.
>
> No problem - I've a jdk6 located at "/usr/jdk/instances/jdk1.6.0". How do I tell pkgsrc about it?

pkgsrc/mk/java-vm.mk must be updated (replace SunOS-5.11-i386 with SunOS-*-*).
Current downloadable sun-jdk6 is supported on Solaris 8-10 with all arch.

--

-- 
OBATA Akio / obache <at> NetBSD.org

Larson, Timothy E. | 1 Sep 2010 15:59

RE: use native Java on Solaris?

> pkgsrc/mk/java-vm.mk must be updated (replace SunOS-5.11-i386 with
> SunOS-*-*).
> Current downloadable sun-jdk6 is supported on Solaris 8-10 with all
> arch.

I'm not looking forward to the time it takes to build Java, but maybe this is the best solution for me, then.

Tim
--

-- 
Tim Larson
App Admin, Intercall Production Services

Larson, Timothy E. | 1 Sep 2010 19:51

RE: use native Java on Solaris?

> I'm not looking forward to the time it takes to build Java, but
> maybe this is the best solution for me, then.

Building lang/sun-jdk6 gives the following error: 

ERROR: This package has set PKG_FAIL_REASON:
ERROR: sun-jdk6-6.0.20 is not available for SunOS-5.9-sparc
*** Error code 255

I cannot find where it is coming from.  I don't see any Sun/sparc NOT_FOR_PLATFORM anywhere in pkgsrc that
seems to be related.  I wouldn't think Java would be in an ONLY_FOR_PLATFORM situation, either.  (But I
could be wrong!)

Tim
--

-- 
Tim Larson
App Admin, Intercall Production Services

Roland Illig | 2 Sep 2010 01:00
Picon
Picon

Re: use native Java on Solaris?

Larson, Timothy E. schrieb:
>> I'm not looking forward to the time it takes to build Java, but
>> maybe this is the best solution for me, then.
> 
> Building lang/sun-jdk6 gives the following error: 
> 
> ERROR: This package has set PKG_FAIL_REASON:
> ERROR: sun-jdk6-6.0.20 is not available for SunOS-5.9-sparc
> *** Error code 255
> 
> I cannot find where it is coming from.  I don't see any Sun/sparc
> NOT_FOR_PLATFORM anywhere in pkgsrc that seems to be related.  I
> wouldn't think Java would be in an ONLY_FOR_PLATFORM situation,
> either.  (But I could be wrong!)

Try this:
$ grep -r "is not available for \\\$" mk/

In this case, it's the emulator.mk. I don't know how to fix that though.

Roland

OBATA Akio | 5 Sep 2010 11:30
Picon

Re: use native Java on Solaris?

On Thu, 02 Sep 2010 02:51:33 +0900, Larson, Timothy E. <TELarson <at> west.com> wrote:

>> I'm not looking forward to the time it takes to build Java, but
>> maybe this is the best solution for me, then.
>
> Building lang/sun-jdk6 gives the following error:
>
> ERROR: This package has set PKG_FAIL_REASON:
> ERROR: sun-jdk6-6.0.20 is not available for SunOS-5.9-sparc
> *** Error code 255
>
> I cannot find where it is coming from.  I don't see any Sun/sparc NOT_FOR_PLATFORM anywhere in pkgsrc that
seems to be related.  I wouldn't think Java would be in an ONLY_FOR_PLATFORM situation, either.  (But I
could be wrong!)

It came from EMUL_PLATFORMS=linux-i386 in lang/sun-jre6/Makefile.common.

I don't know about Solaris world, but, for JDK6, must it be installed by users,
not part of the system?

--

-- 
OBATA Akio / obache <at> NetBSD.org


Gmane