Discussion:
Help! No Java on Solaris 10!
(too old to reply)
j***@java.sun.com
2011-02-17 17:40:44 UTC
Permalink
I was installing the latest Sun Studio on an old Solaris machine x86_64 and
I got a message I had to install patches and a new Java version. Patches
installed fine but there's a symlink HELL with Java. In the end I'm afraid I
deleted almost every trace of Java and have no idea how to fix it. The
installers are just ridiculous, all they do is inflate in the current
directory. Does anyone know how to put this back? Solaris is crying....

BTW I am trying to install the latest release of Java, I don't know what I
need...anything besides JRE for 32 bit and 64 bit and the SDK for 64 bit?
John D Groenveld
2011-02-17 17:58:46 UTC
Permalink
Post by j***@java.sun.com
I was installing the latest Sun Studio on an old Solaris machine x86_64 and
I got a message I had to install patches and a new Java version. Patches
installed fine but there's a symlink HELL with Java. In the end I'm afraid I
deleted almost every trace of Java and have no idea how to fix it. The
installers are just ridiculous, all they do is inflate in the current
directory. Does anyone know how to put this back? Solaris is crying....
$ pkginfo | egrep 'SUNWj[3-6]'

FYI the latest OpenOffice will downgrade your SUNWj6 packages
if you don't perform a custom install and deselect Java.
Post by j***@java.sun.com
BTW I am trying to install the latest release of Java, I don't know what I
need...anything besides JRE for 32 bit and 64 bit and the SDK for 64 bit?
Judith Sim and company's marketing wonks managed to get the
redirect working:
<URL:http://java.sun.com/>

John
***@acm.org
j***@java.sun.com
2011-02-17 19:16:26 UTC
Permalink
Post by John D Groenveld
$ pkginfo | egrep 'SUNWj[3-6]'
Hi John thanks for the help here. Well it shows packages for various levels
of Java but I'm not sure if it helps because as I say I deleted all the Java
symlinks from /usr/bin and all of what was in /usr/java trying to follow
various directions I saw online. The instructions from Oracle are ridiculous
completely unhelpful.

I don't see any packages for Java on Oracle all I get from the download is
tarballs containing a .sh installer. I downloaded the 32 and 64 bit JRE and
the 64 bit SDK according to what I read on the site. I tried inflating them
in /usr/java but it doesn't work.

I don't need the old Java at least according to Oracle. How can I get things
updated to the latest version?
Post by John D Groenveld
FYI the latest OpenOffice will downgrade your SUNWj6 packages
if you don't perform a custom install and deselect Java.
I'll watch for it if I install OO. I'll try and continue using StarOrifice.
Post by John D Groenveld
<URL:http://java.sun.com/>
It doesn't help. That's where I got the tarballs and non-instructions for
installing.

Cheers,

Mike
John D Groenveld
2011-02-17 20:12:00 UTC
Permalink
Post by j***@java.sun.com
Post by John D Groenveld
$ pkginfo | egrep 'SUNWj[3-6]'
Hi John thanks for the help here. Well it shows packages for various levels
of Java but I'm not sure if it helps because as I say I deleted all the Java
symlinks from /usr/bin and all of what was in /usr/java trying to follow
various directions I saw online. The instructions from Oracle are ridiculous
completely unhelpful.
I believe pkgchk(1M) will report your broken symlinks.
You can fix them manually or you can uninstall and reinstall
the packages.
Post by j***@java.sun.com
I don't see any packages for Java on Oracle all I get from the download is
tarballs containing a .sh installer. I downloaded the 32 and 64 bit JRE and
the 64 bit SDK according to what I read on the site. I tried inflating them
in /usr/java but it doesn't work.
The tarballs contain the packages.
<URL:http://www.oracle.com/technetwork/java/javase/downloads/index.html>

$ zcat jdk-6u24-solaris-i586.tar.Z | tar xf -
$ pkginfo -d .
system SUNWj6cfg JDK 6.0 Host Config. (1.6.0_24)
system SUNWj6dev JDK 6.0 Dev. Tools (1.6.0_24)
system SUNWj6dmo JDK 6.0 Demo Programs (1.6.0_24)
system SUNWj6jmp JDK 6.0 Man Pages: Japan (1.6.0_24)
system SUNWj6man JDK 6.0 Man Pages (1.6.0_24)
system SUNWj6rt JDK 6.0 Runtime Env. (1.6.0_24)
application SUNWjavadb-client Java DB client
application SUNWjavadb-common Java DB common files
application SUNWjavadb-core Java DB core
application SUNWjavadb-demo Java DB demo
application SUNWjavadb-docs Java DB documentation
application SUNWjavadb-javadoc Java DB javadoc
application SUNWjavadb-service Java DB service management
Post by j***@java.sun.com
I'll watch for it if I install OO. I'll try and continue using StarOrifice.
OOo 3.3.0 is much better at handling Microstupid's latest Office
formats than the ancient StarOffice shipping with Solaris 10.
<URL:http://download.services.openoffice.org/files/stable/3.3.0/OOo_3.3.0_Solaris_x86_install-wJRE_en-US.tar.gz>

John
***@acm.org
j***@java.sun.com
2011-02-17 20:22:39 UTC
Permalink
Post by John D Groenveld
I believe pkgchk(1M) will report your broken symlinks.
You can fix them manually or you can uninstall and reinstall
the packages.
Thanks I'm trying to uninstall them. A few refuse though.
Post by John D Groenveld
The tarballs contain the packages.
<URL:http://www.oracle.com/technetwork/java/javase/downloads/index.html>
$ zcat jdk-6u24-solaris-i586.tar.Z | tar xf -
$ pkginfo -d .
system SUNWj6cfg JDK 6.0 Host Config. (1.6.0_24)
system SUNWj6dev JDK 6.0 Dev. Tools (1.6.0_24)
system SUNWj6dmo JDK 6.0 Demo Programs (1.6.0_24)
system SUNWj6jmp JDK 6.0 Man Pages: Japan (1.6.0_24)
system SUNWj6man JDK 6.0 Man Pages (1.6.0_24)
system SUNWj6rt JDK 6.0 Runtime Env. (1.6.0_24)
application SUNWjavadb-client Java DB client
application SUNWjavadb-common Java DB common files
application SUNWjavadb-core Java DB core
application SUNWjavadb-demo Java DB demo
application SUNWjavadb-docs Java DB documentation
application SUNWjavadb-javadoc Java DB javadoc
application SUNWjavadb-service Java DB service management
That makes sense but running the installers doesn't fix the system. None of
the symlinks are created. I don't understand what I'm missing. The packages
are meant to allow you to run more than one Java version so how do you point
at the one you just installed especially if you deleted the old ones?
Post by John D Groenveld
OOo 3.3.0 is much better at handling Microstupid's latest Office
formats than the ancient StarOffice shipping with Solaris 10.
Thanks indeed John.

fuming Mike
John D Groenveld
2011-02-17 20:57:55 UTC
Permalink
Post by j***@java.sun.com
Thanks I'm trying to uninstall them. A few refuse though.
Which refuse?
Post by j***@java.sun.com
That makes sense but running the installers doesn't fix the system. None of
the symlinks are created. I don't understand what I'm missing. The packages
Which symlinks?
Post by j***@java.sun.com
are meant to allow you to run more than one Java version so how do you point
at the one you just installed especially if you deleted the old ones?
Which java are you trying to run?

John
***@acm.org
j***@java.sun.com
2011-02-17 21:22:00 UTC
Permalink
Post by John D Groenveld
Which refuse?
I've got these left SUNWj3cfg j3dev j3rt j5dev j5rt. I didn't try removing
the first one but all the rest of that lot refuse to go.
Post by John D Groenveld
Post by j***@java.sun.com
That makes sense but running the installers doesn't fix the system. None
of the symlinks are created. I don't understand what I'm missing. The
packages
Which symlinks?
Whichever are required to make this installation of Java the system
default. I've no idea what's gone but it seems before I started trying to
"fix" this I had various symlinks in /usr/bin to java bits.
Post by John D Groenveld
Post by j***@java.sun.com
are meant to allow you to run more than one Java version so how do you
point t the one you just installed especially if you deleted the old ones?
Which java are you trying to run?
6u24 in order to get past the security issue and allow the new sun studio to
run. That's how I got tangled in this mess to start with.

Thanks John.

Mad Mike
John D Groenveld
2011-02-17 22:22:03 UTC
Permalink
Post by j***@java.sun.com
I've got these left SUNWj3cfg j3dev j3rt j5dev j5rt. I didn't try removing
the first one but all the rest of that lot refuse to go.
What do you mean by "refuse"?
pkgrm(1M) might warn that those packages are dependencies, but
answering yes(1) will let it proceed.
Post by j***@java.sun.com
Whichever are required to make this installation of Java the system
default. I've no idea what's gone but it seems before I started trying to
"fix" this I had various symlinks in /usr/bin to java bits.
pkgrm(1M) the SUNWj[3-6] packages and pkgadd(1M) them again.
The SUNWj[3-6]cfg should set the symlinks.
Post by j***@java.sun.com
6u24 in order to get past the security issue and allow the new sun studio to
run. That's how I got tangled in this mess to start with.
If you're Solaris 10 system is under support, then apply the patches.

John
***@acm.org
j***@java.sun.com
2011-02-17 22:26:41 UTC
Permalink
Post by John D Groenveld
What do you mean by "refuse"?
It says intervention is required but doesn't prompt me and doesn't remove
them.
Post by John D Groenveld
pkgrm(1M) might warn that those packages are dependencies, but
answering yes(1) will let it proceed.
I didn't get a chance to answer anything I tried several times.
Post by John D Groenveld
Post by j***@java.sun.com
Whichever are required to make this installation of Java the system
default. I've no idea what's gone but it seems before I started trying to
"fix" this I had various symlinks in /usr/bin to java bits.
pkgrm(1M) the SUNWj[3-6] packages and pkgadd(1M) them again.
The SUNWj[3-6]cfg should set the symlinks.
Dumb question but I can't remove them using pgkrm -n name so is that all
there is? And how could I add them again, just by running the installers or
something more? Where are the packages?
Post by John D Groenveld
If you're Solaris 10 system is under support, then apply the patches.
No we're moving off Whoreacle and everybodys gone mad. I'm trying to kick
this machine into using the new sun studio...maybe it's on to u9..

thanks again John.

Mike
John D Groenveld
2011-02-17 22:36:30 UTC
Permalink
Post by j***@java.sun.com
Post by John D Groenveld
What do you mean by "refuse"?
It says intervention is required but doesn't prompt me and doesn't remove
them.
Post by John D Groenveld
pkgrm(1M) might warn that those packages are dependencies, but
answering yes(1) will let it proceed.
I didn't get a chance to answer anything I tried several times.
Post by John D Groenveld
Post by j***@java.sun.com
Whichever are required to make this installation of Java the system
default. I've no idea what's gone but it seems before I started trying to
"fix" this I had various symlinks in /usr/bin to java bits.
pkgrm(1M) the SUNWj[3-6] packages and pkgadd(1M) them again.
The SUNWj[3-6]cfg should set the symlinks.
Dumb question but I can't remove them using pgkrm -n name so is that all
there is? And how could I add them again, just by running the installers or
something more? Where are the packages?
$ zcat jdk-6u24-solaris-i586.tar.Z | tar xf -
# yes|pkgrm SUNWj6cfg SUNWj6dev SUNWj6dmo SUNWj6jmp SUNWj6man SUNWj6rt
# yes|pkgadd -d . SUNWj6rt SUNWj6cfg SUNWj6dev SUNWj6dmo SUNWj6jmp SUNWj6man

John
***@acm.org
j***@java.sun.com
2011-02-17 23:02:00 UTC
Permalink
Thanks John I'll post back when I have an update. I'm heading home now. Have
a good evening. Mike.
j***@java.sun.com
2011-02-17 21:25:09 UTC
Permalink
I see I made a mistake and tried installing the x86 jre instead of the
jdk. Why oh why did Snoracle not simply package everything needed for x86_64
in one installer and provide an option to replace the old java since they
claim you should remove old copies on their web site. I've no idea if doing
it right will fix it but I'm download that now. If that doesn't work and you
don't have a better idea how to get this bloody mess sorted I'll ditch this
system and upgrade to u9. Then I'll need some suggestions how to save a copy
of staroffice since I understand u9 doesn't ship with it. Thanks again
John.
Ian Collins
2011-02-17 21:48:06 UTC
Permalink
Post by j***@java.sun.com
I see I made a mistake and tried installing the x86 jre instead of the
jdk. Why oh why did Snoracle not simply package everything needed for x86_64
in one installer and provide an option to replace the old java since they
claim you should remove old copies on their web site. I've no idea if doing
it right will fix it but I'm download that now. If that doesn't work and you
don't have a better idea how to get this bloody mess sorted I'll ditch this
system and upgrade to u9. Then I'll need some suggestions how to save a copy
of staroffice since I understand u9 doesn't ship with it. Thanks again
John.
I sympathise with your pain! I've found it quicker and less stressful
to do full system upgrades rather than attempting to upgrade Java...

I haven't had to reinstall studio for a while, but doesn't the NetBeans
installer offer a choice of Java paths?

By the way, hijacking a real domain for a fake email address id bad form.
--
Ian Collins
j***@java.sun.com
2011-02-17 21:54:23 UTC
Permalink
Post by Ian Collins
I sympathise with your pain! I've found it quicker and less stressful
to do full system upgrades rather than attempting to upgrade Java...
Really. I don't normally do sysadmin work can you tell? My work pal dumped
this job off on me. He said oh you want the new Fortran tools? Just do a
simple update on this box....right
Post by Ian Collins
I haven't had to reinstall studio for a while, but doesn't the NetBeans
installer offer a choice of Java paths?
Maybe but I needed it for Sun Studio and Sun Studio requires a later Java
than we had on this box. I'll leave NetBeans to him.
Post by Ian Collins
By the way, hijacking a real domain for a fake email address id bad form.
It's not as bad as breaking people's systems with multiple versions of Java
;)

Anyway I don't have a news client at the office so I'm sshing into my home
box to get to usenet.
j***@java.sun.com
2011-02-18 10:50:19 UTC
Permalink
Right well I decided to go with an upgrade to u8 instead of u9 so we won't
lose starorifice. After doing a local install of Java Sun Studio is
working. Thanks indeed for your help mate! Have a good one.

Mike

j***@java.sun.com
2011-02-17 21:50:44 UTC
Permalink
Now that I've used the right installer SunStudio runs. But I've still got
some sort of problem since smc won't run anymore. After I installed the two
installers I did ln -s /usr/jdk/jdk1.6.0.24 /usr/java and rebooted. This is
the only thing I can see in the installation instructions. They show
/usr/java is a symlink to various points depending on your level. They don't
show anything else. Is there hope for this bucket of bolts?
John D Groenveld
2011-02-17 22:29:46 UTC
Permalink
Post by j***@java.sun.com
Now that I've used the right installer SunStudio runs. But I've still got
some sort of problem since smc won't run anymore. After I installed the two
Weird.
smc(1M) runs for me. Can't say it works since I never use it.
$ /usr/java/bin/java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)

John
***@acm.org
j***@java.sun.com
2011-02-17 22:31:58 UTC
Permalink
Post by John D Groenveld
Weird.
smc(1M) runs for me. Can't say it works since I never use it.
$ /usr/java/bin/java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Server VM (build 19.1-b02, mixed mode)
I don't mean to say smc won't work with the new version. I'm saying
something's still broken with my java install and i don't know how to fix
it.
Continue reading on narkive:
Loading...