Re: [OpenIndiana-discuss] Trying to run Java 1.7.0.11 on OpenIndiana Hipster 2017.04

2017-09-27 Thread Stephan Budach

- Ursprüngliche Mail -
> Von: "Peter Tribble" <peter.trib...@gmail.com>
> An: "Discussion list for OpenIndiana" <openindiana-discuss@openindiana.org>
> Gesendet: Mittwoch, 27. September 2017 09:57:22
> Betreff: Re: [OpenIndiana-discuss] Trying to run Java 1.7.0.11 on OpenIndiana 
> Hipster 2017.04
> 
> On Wed, Sep 27, 2017 at 8:10 AM, Stephan Budach
> <stephan.bud...@jvm.de>
> wrote:
> 
> > Hi,
> >
> >
> > I am trying to replace omniOS on a RSF-1 node with OI and I need to
> > run
> > some old Java agent on it which requires, Java 1.7.0.11, so I
> > copied over
> > the Java folder from the previous installation and tweaked the
> > symlinks
> > accordingly, but when running java -version, I am getting this
> > error:
> >
> >
> >
> > root@zfsha02gh79:/usr/bin# java -version
> > Error: dl failure on line 864
> > Error: failed /usr/java_1.7.0_11/jre/lib/i386/server/libjvm.so,
> > because
> > ld.so.1: java: fatal: libCrun.so.1: open failed: No such file or
> > directory
> >
> >
> > Can I get this version of Java running on OI?
> > Thanks,
> > Stephan
> >
> 
> Should work, but you'll need the old C++ runtime installed.
> 
> pkg install system/library/c++/sunpro
> 
> (as found by, eg, 'pkg search libCrun.so.1')
> 
> --
> -Peter Tribble
> http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/

Thanks Peter and Predrag,

I successfully installed openjdk.1.7.80 with runtime64 and the agent seems to 
run fine with it. I will have to check that and if if doesn't work properly, 
I'll take Peter's advice on installing the old C++ runtime and give it another 
shot using jre-1.7.0.11.

Thanks a lot,
Stephan
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Trying to run Java 1.7.0.11 on OpenIndiana Hipster 2017.04

2017-09-27 Thread Peter Tribble
On Wed, Sep 27, 2017 at 8:10 AM, Stephan Budach 
wrote:

> Hi,
>
>
> I am trying to replace omniOS on a RSF-1 node with OI and I need to run
> some old Java agent on it which requires, Java 1.7.0.11, so I copied over
> the Java folder from the previous installation and tweaked the symlinks
> accordingly, but when running java -version, I am getting this error:
>
>
>
> root@zfsha02gh79:/usr/bin# java -version
> Error: dl failure on line 864
> Error: failed /usr/java_1.7.0_11/jre/lib/i386/server/libjvm.so, because
> ld.so.1: java: fatal: libCrun.so.1: open failed: No such file or directory
>
>
> Can I get this version of Java running on OI?
> Thanks,
> Stephan
>

Should work, but you'll need the old C++ runtime installed.

pkg install system/library/c++/sunpro

(as found by, eg, 'pkg search libCrun.so.1')

-- 
-Peter Tribble
http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Trying to run Java 1.7.0.11 on OpenIndiana Hipster 2017.04

2017-09-27 Thread Predrag Zečević - Technical Support Analyst

On 09/27/17 09:10, Stephan Budach wrote:

Hi,


I am trying to replace omniOS on a RSF-1 node with OI and I need to run some 
old Java agent on it which requires, Java 1.7.0.11, so I copied over the Java 
folder from the previous installation and tweaked the symlinks accordingly, but 
when running java -version, I am getting this error:



root@zfsha02gh79:/usr/bin# java -version
Error: dl failure on line 864
Error: failed /usr/java_1.7.0_11/jre/lib/i386/server/libjvm.so, because 
ld.so.1: java: fatal: libCrun.so.1: open failed: No such file or directory


Can I get this version of Java running on OI?
Thanks,
Stephan




Hi Stephan,

you should install openjdk7 (example from my OI /hipster installation):
$ pkg list | grep openjdk | sort
developer/java/openjdk7   1.7.80-2017.0.0.4 
i--
developer/java/openjdk8   1.8.131-2017.0.0.2 
i--
runtime/java/openjdk7 1.7.80-2017.0.0.4 
i--
runtime/java/openjdk7/runtime64   1.7.80-2017.0.0.4 
i--
runtime/java/openjdk8 1.8.131-2017.0.0.2 
i--


Regards.

P.S: I do not think that coping libraries will work. Another option is 
to download Oracle JDK, install it somewhere and try

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss



--
Predrag Zečević
Technical Support Analyst
2e Systems GmbH

tel: +49 - 6196 - 95058 - 15
mob: +49 - 174 - 3109288
fax: +49 - 6196 - 95058 - 94
e-mail: predrag.zece...@2e-systems.com

headquarter: 2e Systems GmbH, Koenigsteiner Str. 87, 65812 Bad Soden am 
Taunus, Germany

registration: Amtsgericht Koenigstein (Germany), HRB 7303
managing director: Phil Douglas

http://www.2e-systems.com/ - Making your business fly!

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss