java jdk-6u20-solaris-i586.sh installation

Discussions about using Solaris guests in VirtualBox.
Post Reply
cannon_u34
Posts: 4
Joined: 30. Apr 2010, 07:25
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: solaris 10 x86

java jdk-6u20-solaris-i586.sh installation

Post by cannon_u34 »

hi,
How to install java 1.6 in VirtualBox. I can install the same file in physical server but not in virtualBox. Current java version in VirtualBox is jre 1.5.0_21. Can someone guide me on how to upgrade the java version in virtualBox. THanks.

Regards,
/Vincent
jkeil
Posts: 80
Joined: 5. Jun 2008, 16:12

Re: java jdk-6u20-solaris-i586.sh installation

Post by jkeil »

Well, installing jdk-6u20-solaris-i586.sh should work by:

Code: Select all

chmod +x /path/to/downloaded/jdk-6u20-solaris-i586.sh
cd /path/to/installation/dir
/path/to/downloaded/jdk-6u20-solaris-i586.sh
This works for me for an opensolaris build 134 vbox guest.

Are you running Solaris 10? Which version?

What error messages do you get when you try to
run the installer script jdk-6u20-solaris-i586.sh ?
jkeil
Posts: 80
Joined: 5. Jun 2008, 16:12

Re: java jdk-6u20-solaris-i586.sh installation

Post by jkeil »

This works for me for an opensolaris build 134 vbox guest.
Same with a S10 U8 vbox guest, installation of the jdk works just fine for me.
cannon_u34
Posts: 4
Joined: 30. Apr 2010, 07:25
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: solaris 10 x86

Re: java jdk-6u20-solaris-i586.sh installation

Post by cannon_u34 »

hi,
Thanks for helping.
I got below error message when I run this command: root@vincentl-VBox # sh jdk-6u20-solaris-i586.sh
.
.
.
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
root@vincentl-VBox #

And this is my OS version in my Virtual Box.
root@vincentl-VBox # uname -a
SunOS vincentl-VBox 5.10 Generic_141445-09 i86pc i386 i86pc
cannon_u34
Posts: 4
Joined: 30. Apr 2010, 07:25
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: solaris 10 x86

Re: java jdk-6u20-solaris-i586.sh installation

Post by cannon_u34 »

And what is the package for java 1.6. Maybe I can download all the package and install it manually. Thanks.

regards,
/V
jkeil
Posts: 80
Joined: 5. Jun 2008, 16:12

Re: java jdk-6u20-solaris-i586.sh installation

Post by jkeil »

cannon_u34 wrote: # sh jdk-6u20-solaris-i586.sh
.
.
.
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
The download file appears to be corrupted. Please refer
to the Troubleshooting section of the Installation
Instructions on the download page for more information.
Please do not attempt to install this archive file.
root@vincentl-VBox #
I'm assuming the jdk-6u20-solaris-i586.sh file is
not corrupted (size 83626170 bytes, md5 checksum
ef65d791c05dd1484c971e21e27a9fc2 ) ....

Code: Select all

% ls -l jdk-6u20-solaris-i586.sh
-rwxr-xr-x   1 jk       usr      83626170 Mai  1 22:07 jdk-6u20-solaris-i586.sh
% digest -a md5 jdk-6u20-solaris-i586.sh
ef65d791c05dd1484c971e21e27a9fc2
Maybe the vbox guest is running out of disk space,
or is running out of free memory?

In which directory are you running the
"sh jdk-6u20-solaris-i586.sh" command?
jkeil
Posts: 80
Joined: 5. Jun 2008, 16:12

Re: java jdk-6u20-solaris-i586.sh installation

Post by jkeil »

You can also try to run the installation
as "sh -x jdk-6u20-solaris-i586.sh", and
should see this debug output:

Code: Select all

...
+ echo Unpacking...
Unpacking...
+ tail +553 jdk-6u20-solaris-i586.sh
+ 1> install.sfx.1234
+ [ -x /usr/bin/sum ]
+ echo Checksumming...
Checksumming...
+ /usr/bin/sum install.sfx.1234
+ sum='56852 163287 install.sfx.1234'
+ index=1
+ sum1=56852
+ index=2
+ sum2=163287
+ index=3
+ [ 56852 -ne 56852 ]
+ [ 163287 -ne 163287 ]
+ chmod +x install.sfx.1234
+ echo Extracting...
Extracting...
...
I guess it is the "tail" or the "sum" command that doesn't
work as expected on your vbox guest.
cannon_u34
Posts: 4
Joined: 30. Apr 2010, 07:25
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: solaris 10 x86

Re: java jdk-6u20-solaris-i586.sh installation

Post by cannon_u34 »

hi,
Thanks for the help. The file that I download is corrupted. I have upgrade the java by online update. Thanks for help again.

regards,
JMaille
Posts: 4
Joined: 21. May 2010, 15:59
Primary OS: Solaris
VBox Version: PUEL
Guest OSses: Solaris

Re: java jdk-6u20-solaris-i586.sh installation

Post by JMaille »

Unfortunately, there is a chance your downloaded file is not corrupt. There appears to be an issue with the “sum” program when calculating values across a network from within VirtualBox or when used on a file visible through a shared folder. It is not always reproducible.

We are running Solaris 10 guest machines on Solaris 10 hosts. On several occasions we have seen the exact same error you got when installing packages. These are known good packages from multiple different sources obtained via different methods. We can install the packages with no issues on the host systems and install them without error if we copy the package into the Virtual Machine. But with the exact same package files we occasionally get errors when we attempt to install the package from a mounted NFS volume, mounted iso file, or shared folder. If we copy the package file(s) in to the virtual machine, there is no problem.

Ultimately we tracked it down to the “sum” tool in Solaris occasionally providing an incorrect (but consistent) unexpected value for some files within the packages, if the files were not local to the virtual machine. Our solution was to always copy packages into the virtual machine before installing. It’s a bit of a pain, but it is a reasonable workaround for us.
Post Reply