PDA

View Full Version : Installing jdk-1_5_0_08



ama55
12th September 2006, 04:19 PM
Dear All:

I have been trying to install the jdk-1_5_0_08-linux-amd64, on my computer.
i am working on a 64 bit processor.
i was following the steps defined by:
http://www.fedorafaq.org/#java
but i was facing some problems:
1. the fedorafaq.org says the we should install java-1.5.0-sun-1.5.0.08-1jpp.nosrc.rpm. from http://www.jpackage.org/rpm.php?id=3564
but there is no folder of this name.
i installed the 2 folders found on that page:
java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm
java-1.5.0-sun-compat-1.5.0.08-1jpp.src.rpm

2.i tried to build the java rpm using:
rpmbuild --rebuild Desktop/java-1.5.0-sun*src.rpm
but it gave me the following error:
error: Failed build dependencies:
jdk = 2000:1.5.0_08-fcs is needed by java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch

any help?
Regards
ama55

Jman
14th September 2006, 04:19 AM
You installed the compatibility links. You want java-1.5.0-sun (http://www.jpackage.org/rpm.php?id=3557). Download the nosrc rpm and continue with the instructions.

The exact package name may have changed for some reason, not sure why.

ama55
14th September 2006, 08:34 AM
Dear Jman:

the link you specified up is related to update 7, should not i use update 8? because i am trying to shift from using update 7 to 8.

what i have done till now is. i have uninstalled jdk 1.5.0_07 and downloded and installed jdk-1_5_0_08-linux-amd64-rpm from the sun website.
the installation was completed.
but the problem occured when trying to run the JBOSS server. i was not able to do so.
this is the error the server posted:
Error: hotspot VM not supported

Thanks for your help
ama55

EFakles
14th September 2006, 09:34 AM
Dear Jman:

the link you specified up is related to update 7, should not i use update 8? because i am trying to shift from using update 7 to 8.

what i have done till now is. i have uninstalled jdk 1.5.0_07 and downloded and installed jdk-1_5_0_08-linux-amd64-rpm from the sun website.
the installation was completed.
but the problem occured when trying to run the JBOSS server. i was not able to do so.
this is the error the server posted:
Error: hotspot VM not supported

Thanks for your help
ama55

What do you get when you enter "java -version"
Maybe you are linked to the GCJ Java environment, which comes by default with FC5.

If you install the rpm version from the sun website (not the self-extracting version) you
should install the corresponding "compat" package from JPackage.org (java-1.5.0-sun-compat-1.5.0.08-1jpp.noarch.rpm).

After that you are able to change JaveRE via "/usr/sbin/alternatives --config java"
The "java -version" will display something like:
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode)

The only problem, I don't know if this works also for the "amd64" versions.


Regards,
Engelbert

ama55
14th September 2006, 11:37 AM
Hi:
I was able to solve the problem i was facing.
the error that was posted by the server was:
Error: hotspot VM not supported

so i had to edit the run.conf file in the bin folder of the JBOSS_SERVER.
the initial edited pat of run.conf looks like this:
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-hotspot -Xms512m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
fi

what i did is that instead of hotspot i wrote "server":
if [ "x$JAVA_OPTS" = "x" ]; then
JAVA_OPTS="-server -Xms512m -Xmx1024m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
fi

when i did that the server worked properly

Thanks for your Help
Regards
ama55
:)

markkuk
14th September 2006, 02:04 PM
the link you specified up is related to update 7, should not i use update 8?
Java-1.5.0-sun-1.5.0.08-1jpp.nosrc.rpm is not yet available from JPackage.org, so you can't use that method for installing jdk-1_5_0_08.