Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   General Linux Support (https://www.gnutellaforums.com/general-linux-support/)
-   -   MDK JAVA 1.4 INSTALL Procedure. (https://www.gnutellaforums.com/general-linux-support/13875-mdk-java-1-4-install-procedure.html)

Unregistered July 24th, 2002 10:21 AM

MDK JAVA 1.4 INSTALL Procedure.
 
Thanks to Calimero44, I have installed Java. I have updated the procedure on doing this for MDK 8.2. As soon as I finish installing it for mozilla 1.0, I will update this again.

1) Download LimeWire to your home directory. You may want to create a directory
for it...
2) When you try to install LimeWire you get the following errors:

Error: Unrecognized JVM specific option `-Xmx50331648'.
Error: Unrecognized JVM specific option `-Xms16777216'.
Invocation java version "1.3.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_03-b03)
Java HotSpot(TM) Client VM (build 1.3.1_03-b03, mixed mode)of this Java
Application has caused an InvocationTargetException. This application will now
exit. (LAX)

Stack Trace:
java.lang.NoClassDefFoundError: ZeroGcf
at Zero Gcj.(so urce file unknown:line unknown, pc 0x8d75d74)
at ZeroGb3.a(source file unknown:line unknown, pc 0x8cd9efd)
at com.zerog.ia.installer.Main.a(source file unknown:line unknown, pc 0x8db9531)
at com.zerog.ia.installer.Main.b(source file unknown:line unknown, pc 0x8c7c1c1)
at com.zerog.ia.installer.Main.main(source file unknown:line unknown, pc
0x856ca61)
at java.lang.reflect.Method.invoke(Method.java:native )
at com.zerog.lax.LAX.launch(source file unknown:line unknown, pc 0x82989d6)
at com.zerog.lax.LAX.main(source file unknown:line unknown, pc 0x824f3eb)

You need a newer version of Java VM.
http://java.sun.com/j2se/1.4/download.html for the 1.4.

3) Download the Linux Red Hat RPM shell script to your system.

Open a shell terminal emulator window and go to the directory where the
downloaded file is located.

4) Check the file that you downloaded to ensure that it is the correct
checksum size:

chsum j2re-1_4_0_01-linux-i586-rpm.bin

Should see something like this:

2981620438 21300192 j2re-1_4_0_01-linux-i586-rpm.bin

If the file size doesn't match, it probably means the file was corrupted during the
download. In that case, try downloading again.

5) Run the installation script and agree to the license.
Launch the installation script by using the following commands from the
directory in which it is located:
home directory
chmod a+x j2re-1_4_0_01-linux-i586-rpm.bin

sh j2re-1_4_0_01-fcs-linux-i386-rpm.bin

The script will display a binary license agreement, which you will be asked to
agree to before installation can proceed. Once you have agreed to the license,
the install script will create the file j2re-1_4_0_01-fcs-linux-i386.rpm in the
current directory.

6) Become root by running the su command and entering the super-user password.

Uninstall Previous Version:
rpm -q kaffe

You version version should be: kaffe-1.0.6-11mdk
rpm -e kaffe-1.0.6-11mdk(Remember to su root)

7) Then go the start menu of KDE then configuration -> packaging -> and open either
gnoRPM or rpmdrake.

8) You can use this as well to install Java from a console:

Run the rpm command to install the packages:

rpm -iv j2re-1_4_0_01-fcs-linux-i386.rpm

This will install the packages comprising the Java 2 Runtime Environment.

Exit the root shell.

9) Now if you try to install LimewireLinux you should get an error saying that it
cant find VM on your system.

Type the following line and then you should be able to install LimeWire

export JAVA_HOME=/usr/java/j2re1.4.0_01
export PATH=$PATH:/usr/java/j2re1.4.0_01/bin

On some systems, the above lines will have to be added into the /etc/bashrc
file.

Now run ./LimewireLinux.bin

nDiScReEt July 27th, 2002 03:01 AM

A Few Corrections
 
10. chsum is actually cksum.

2). rpm -e kaffe should actually be rpm -e --nodeps kaffe. This is necsarry because certain mandrake wizards and openoffice may cause dependency errors with good reason. They require java to function at 100%.

3). export JAVA_HOME=/usr/java/j2re1.4.0_01
export PATH=$PATH:/usr/java/j2re1.4.0_01/bin

I didn't think that this would work.But to be on the safe side, the path should be created like this:

export JAVA_HOME=/usr/java/j2re1.4.0_01
export PATH=$JAVA_HOME/bin:/usr/bin:$PATH

JAVA_HOME needs to be first as this will prevent any conflicts with other java packages (for those whom do development with java like myself).[COLOR=skyblue][COLOR=skyblue][COLOR=skyblue][COLOR=skyblue]

Great work and this lessons one instructional step for me to provide.

All that is left is tarball instructions.

altoine

OTazman July 31st, 2002 01:16 PM

I did everything you said and it still don't work...
 
I did everything you said but one thing was different, it said that kaffe was not installed, so I continued to follow the easy steps and still said I nned to install a VM on my computer.. so what next?


Thanks in advance,
Sean Dolan

nDiScReEt July 31st, 2002 11:34 PM

Re: I did everything you said and it still don't work...
 
Quote:

Originally posted by OTazman
I did everything you said but one thing was different, it said that kaffe was not installed, so I continued to follow the easy steps and still said I nned to install a VM on my computer.. so what next?


Thanks in advance,
Sean Dolan

[COLOR=skyblue][COLOR=royalblue]

export JAVA_HOME=/usr/java/j2re1.4.0_01
export PATH=$JAVA_HOME/bin:$PATH

Is /usr/java/j2re1.4.0_01 really the path to your java version?

To test type:

which java

Do you get any output?
If you get output, that should be what goes after JAVA_HOME.
In the second export command (PATH), is JAVA_HOME referenced as #JAVA_HOME or JAVA_HOME as the $, dollar sign, is needed in the second export line not the first.
In the second line, is $JAVA_HOME/bin followed directly by $PATH with no :, colon, or is it followed with a :, colon ($JAVA_HOME/bin:$PATH)?
It needs to be followed by a :, colon.

Did you make sure that when you exported JAVA_HOME, you made sure the cases matched? (As it is case sensitive --for the newbies)

I postulate that one of the above questions will answer and solve your problem.

altoine[FONT=arial][FONT=arial][FONT=arial][FONT=arial]

OTazman August 1st, 2002 07:07 AM

OK I GOT IT =)
 
The export command wasn't working prolly cuz I was doing it wrong, so I did a 'vi' command on the .bash_profile and tried to edit it that way but I didn't know any of the commands, so I opened the .bash_profile in 'KATE' (advanced text editor) anyways I added the export commands under the other export command that was already there, and saved it logged in and out did a 'which java' command and bodda bing bodda boom it was there, I also did a 'java -version' command and that also worked too, so I was very delighted, so I did the 'sh' command on the LimeWireLinux.bin and it installed it with some errors that didn't seem to effect the installation process... hmmm.. ok so just wanted you to stop boggling your minds thanks for the help =)


-peace SED

nDiScReEt August 3rd, 2002 03:04 AM

Re: OK I GOT IT =)
 
Quote:

Originally posted by OTazman
The export command wasn't working prolly cuz I was doing it wrong, so I did a 'vi' command on the .bash_profile and tried to edit it that way but I didn't know any of the commands, so I opened the .bash_profile in 'KATE' (advanced text editor) anyways I added the export commands under the other export command that was already there, and saved it logged in and out did a 'which java' command and bodda bing bodda boom it was there, I also did a 'java -version' command and that also worked too, so I was very delighted, so I did the 'sh' command on the LimeWireLinux.bin and it installed it with some errors that didn't seem to effect the installation process... hmmm.. ok so just wanted you to stop boggling your minds thanks for the help =)


-peace SED

You are a great guy, SED!

Not many people will post their solutions after arriving at them. You keep up the good work! Much love.

altoine

nDiScReEt August 11th, 2002 06:09 AM

Re: this does not works with J2sdk1.4 in my case
 
Quote:

Originally posted by astra
I made all what you described
but with the J2sdk1.4 instead of JRE.
I still have a problem.

[j@jerome bin]$ ./LimeWireLinux.bin
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

Error: Unrecognized JVM specific option `-Xmx50331648'.
Error: Unrecognized JVM specific option `-Xms16777216'.
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)

Stack Trace:
java.lang.NoClassDefFoundError: ZeroGcf
at ZeroGcq.a(source file unknown:line unknown, pc 0x874e049)
at ZeroGcj.<init>(source file unknown:line unknown, pc 0x86d8d74)
at ZeroGcq.<init>(source file unknown:line unknown, pc 0x86fb8a9)
at ZeroGb3.a(source file unknown:line unknown, pc 0x86fe907)
at com.zerog.ia.installer.Main.a(source file unknown:line unknown, pc 0x86a44a5)
at com.zerog.ia.installer.Main.b(source file unknown:line unknown, pc 0x86481c1)
at com.zerog.ia.installer.Main.main(source file unknown:line unknown, pc 0x85b6281)
at java.lang.reflect.Method.invoke(Method.java:native )
at com.zerog.lax.LAX.launch(source file unknown:line unknown, pc 0x82ad9d6)
at com.zerog.lax.LAX.main(source file unknown:line unknown, pc 0x825ebcb)
[j@jerome bin]$ java -version
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
[j@jerome bin]$ echo $JAVA_HOME
/usr/java/j2sdk1.4.0
[j@jerome bin]$

Remove kaffe.

altoine

P.S. rpm -e --nodeps kaffe


All times are GMT -7. The time now is 08:46 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.