LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-28-2007, 08:30 AM   #1
techdawg270
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 16

Rep: Reputation: 0
Installing Java SDK and Eclipse


I have a tar.gz file for the install of Eclipse and rpm.bin for both Java JRE and Java SDK. This will be my first command line install, so I was wondering if somebody might be willing to walk me through it.
 
Old 06-28-2007, 08:50 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
For the jre and jdk rpm.bin files;

chmod +x <the name of the rpm.bin file here>
./<the name of the rpm.bin file here>

FYI: if this is the 32-bit version (i586) of the jdk then the jre is included no reason to install both.

If you are not root when running both commands the second command will create the binary rpm for installation later but the rpm file will not be installed.
 
Old 06-28-2007, 09:53 AM   #3
techdawg270
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 16

Original Poster
Rep: Reputation: 0
How do I change directories to my Downloads folder? I figured I could just run the command cd /home/Downloads, but it does not work. The folder is in Dane's Home on my desktop. Another thing, if I did a full install that included the developer's applications, does that mean I already have the necessary development kits to run and compile Java and C++ code?
 
Old 06-28-2007, 11:40 AM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Your home directory is /home/username not /home, so try: cd /home/Dane/Downloads

If that fails then do a search for the file(s);

locate <the full downloaded file name here>

Quote:
Another thing, if I did a full install that included the developer's applications, does that mean I already have the necessary development kits to run and compile Java and C++ code?
For the most part yes...

Last edited by Lenard; 06-28-2007 at 11:43 AM.
 
Old 06-28-2007, 03:37 PM   #5
techdawg270
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 16

Original Poster
Rep: Reputation: 0
Ok I figured out the tar.gz files. That was rather easy, but I am still struggling with these rpm.bin files. I think I am typing the commands right and this is what I get.
[root@localhost Downloads]# chmod +x j2sdk-rpm.bin ./j2sdk-rpm.bin
[root@localhost Downloads]# chmod a+x j2sdk-rpm.bin ./j2sdk-rpm.bin
[root@localhost Downloads]# exit
exit
I tried it the other way too because thats what it said to do on the Java site. It doesn't give me any error messages but nothing happens.
 
Old 06-29-2007, 05:00 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
What???? j2sdk-rpm.bin???? The latest from Sun is; jdk-6u1-linux-i586.rpm.bin
Where are you getting java from???

http://java.sun.com/javase/downloads/index.jsp

http://java.sun.com/javase/6/webnote...ml#install-rpm
 
Old 06-29-2007, 10:00 AM   #7
techdawg270
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 16

Original Poster
Rep: Reputation: 0
Ok now I am trying to install jdk-6u1-linux-i586.rpm.bin and although I do not get any error messages, nothing seems to happen.
 
Old 06-29-2007, 10:35 AM   #8
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
After typing: ./jdk-6u1-linux-i586-rpm.bin you should see the License Agreement and you have to press the spacebar a number of time to get to the end then accept the agreement. Here is a step by step after downloading;

Quote:
$ ls -al jdk-6u1-linux-i586-rpm.bin
-rw-rw-r-- 1 lenard lenard 60680996 Jun 29 11:25 jdk-6u1-linux-i586-rpm.bin

$ chmod +x jdk-6u1-linux-i586-rpm.bin
$ ls -al jdk-6u1-linux-i586-rpm.bin
-rwxrwxr-x 1 lenard lenard 60680996 Jun 29 11:25 jdk-6u1-linux-i586-rpm.bin

Since I do not need to install the package I added the switch (-x) to the command;
$ jdk-6u1-linux-i586-rpm.bin -x
Sun Microsystems, Inc. Binary Code License Agreement

for the JAVA SE DEVELOPMENT KIT (JDK), VERSION 6

SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY "AGREEMENT"). PLEASE READ THE AGREEMENT

<snipping>

For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.

Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u1-linux-i586.rpm
Extraction of RPM Done.

Done.

$ ls -al jdk-6u1*
-rw-r--r-- 1 lenard lenard 61134405 Mar 14 06:58 jdk-6u1-linux-i586.rpm
-rwxrwxr-x 1 lenard lenard 60680996 Jun 29 11:25 jdk-6u1-linux-i586-rpm.bin
Why I do not need to install the rpm package;

$ rpm -qa --qf="%{n}-%{v}-%{r}.%{arch}.rpm\n" jdk
jdk-1.7.0-ea.x86_64.rpm
$ java -version
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b14)
Java HotSpot(TM) 64-Bit Server VM (build 1.7.0-ea-b14, mixed mode)
 
Old 07-03-2007, 09:02 AM   #9
techdawg270
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 16

Original Poster
Rep: Reputation: 0
Now I have run into another problem. This is the error I am getting.
Do you agree to the above license terms? [yes or no]
y
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u1-linux-i586.rpm
error: can't create transaction lock on /var/lib/rpm/__db.000

Any suggestions on why this is?
 
Old 07-03-2007, 04:33 PM   #10
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Means you were not root (or equivalent) when you typed the command is all, not a big deal. You should have the rpm package available for installation, as root type;

rpm -Uvh jdk-6u1-linux-i586.rpm
 
Old 07-03-2007, 05:41 PM   #11
techdawg270
LQ Newbie
 
Registered: Jun 2007
Distribution: Fedora 7
Posts: 16

Original Poster
Rep: Reputation: 0
thanks Lenard..you helped me out a lot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing JAVA SDK and Eclipse Developing Environment for testing kushalkoolwal Debian 3 03-20-2006 01:11 AM
Problems installing Java SDK 1.5.0 harshnoise Programming 2 02-19-2006 03:30 PM
Installing JAVA SDK 1.3 on RedHat7.3 jenze76 Linux - Software 2 08-15-2004 10:31 AM
JAVA:problem in installing ECLIPSE SDk on LINUX nedian123 Programming 1 06-26-2004 09:37 PM
Installing Java SDK 1.4.2 grrr........... hadding Linux - Newbie 1 11-09-2003 07:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 11:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration