Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Install Java on Linux question  RSS feed

 
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I copied the install instruction below. The question is: in which directory should I issue the installation script? According to step 3 it is the directory in which the script is located. According to step 2 it should be /usr/java which may not contain the script.
Thanks
Bruce
Installation of Self-Extracting Binary

1. Check the download file size
2. Change to the directory you want to install into. For example, if you want to install the software in the /usr/java/ directory, then execute: cd /usr/java
3. Run j2re-1_3_1_<version number>-linux-i386.bin and agree to the license it displays.
Launch the installation script by using the following commands from the directory in which the script is located:
chmod a+x j2re-1_3_1_<version number>-linux-i386.bin
./j2re-1_3_1_<version number>-linux-i386.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 install the JRE in a directory called jre1.3.1_<version number> in the current directory.
 
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just move the bin file to wherever you want to install it. Then run the script. I just keep all of that stuff together.

HTH,
[ January 22, 2002: Message edited by: Jason Kretzer ]
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just downloaded j2sdk-1_3_1_02-linux-i386.bin to the /usr folder. I login as root and issue the following:
<Usr> # chmod a+x j2sdk-1_3_1_02-linux-i386.bin
But nothing happens. It just returned back to <usr> #.
Then I issue
<usr> # ./j2sdk-1_3_1_02-linux-i386.bin
Still nothing happens. Then I do:
<usr> # chmod a+x j2sdk-1_3_1_02-linux-i386.bin ./j2sdk-1_3_1_02-linux-i386.bin
still nothing happens.
Can anyone help?
Thanks.
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry I got it work.
 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah the bin file when ran like ./jdk.bin will produce an RPM file. This RPM file can be installed like so:
rpm -ivh jdk.rpm
Then you simply edit your home directory .bash_profile and add the path to the jdk binaries and you should be set. Its pretty easy on Linux to get the JDK up and running.
Frank
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!