LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-25-2004, 04:57 PM   #1
Larke
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora Core
Posts: 16

Rep: Reputation: 0
j2sdk install


I tried install j2sdk1.4 ... to fedora, i move rpm.bin file to /usr/java and then i did install (./j2sdk*.bin), i tried rpm -iv j2sdk-1.4.2_04* . it says that: package j2sdk-1.4.2_04-fcs is already installed

i can't find it, i tried locate j2sdk-1.4.2_04 and none of files was found.

and install didin't do me some folder in /usr/java
 
Old 04-25-2004, 05:05 PM   #2
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
rpm? Does the file ends with .rpm or .bin? If it end with .bin, use ./:

./ <j2sdk-yadda-yadda-yadda>.bin

Nonetheless, check the installation instruction:

Complete guide:
http://java.sun.com/j2se/1.4.2/install-linux.html

rpm:
http://java.sun.com/j2se/1.4.2/insta...ml#install-rpm

Good luck!

Last edited by Mega Man X; 04-25-2004 at 05:07 PM.
 
Old 04-25-2004, 05:32 PM   #3
Larke
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora Core
Posts: 16

Original Poster
Rep: Reputation: 0
[root@ java]# ls -l
total 67524
-rw-r--r-- 1 root root 34694346 Feb 24 18:09 j2sdk-1_4_2_04-linux-i586.rpm
-rwx--x--x 1 root root 34363042 Apr 26 00:36 j2sdk-1_4_2_04-linux-i586-rpm.bin
[root@dna250-151 java]# ./j2sdk*.bin

Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
0
0
Extracting...
UnZipSFX 5.40 of 28 November 1998, by Info-ZIP (Zip-Bugs@lists.wku.edu).
replace j2sdk-1_4_2_04-linux-i586.rpm? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
inflating: j2sdk-1_4_2_04-linux-i586.rpm
Done.


[root@ java]# ls -l
total 67524
-rw-r--r-- 1 root root 34694346 Feb 24 18:09 j2sdk-1_4_2_04-linux-i586.rpm
-rwx--x--x 1 root root 34363042 Apr 26 00:36 j2sdk-1_4_2_04-linux-i586-rpm.bin


[root@ java]# rpm -iv j2sdk*.rpm
Preparing packages for installation...
package j2sdk-1.4.2_04-fcs is already installed
[root@ java]#


i tried to install it (again) in two different folder, but it says that its already installed..

weird?
 
Old 04-25-2004, 05:39 PM   #4
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Ah, I see, so then it's installed, it's just not set to your PATH. Type this:

PATH=$PATH: /<put the hole path to your j2sdk/bin here/
export PATH

then type:

java -version

to see if it's working
 
Old 04-25-2004, 05:59 PM   #5
Larke
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora Core
Posts: 16

Original Poster
Rep: Reputation: 0
one and only problem is now, where is my j2sdk directory?
i didin't find it with kfind, and locate
 
Old 04-25-2004, 06:19 PM   #6
fransemail
Member
 
Registered: Mar 2004
Posts: 72

Rep: Reputation: 15
Set CLASSPATH

You must set CLASSPATH local variable for running and compiling Java sources. For example you can insert this lines in your .bash_profile:

CLASSPATH=:/usr/java/j2sdk1.4.2_03/jre/lib/jsse.jar:/usr/java/j2sdk1.4.2_03/jre/lib:
export CLASSPATH

I had installed j2sdk from rpm and works well
 
Old 04-25-2004, 06:26 PM   #7
Larke
LQ Newbie
 
Registered: Apr 2004
Distribution: Fedora Core
Posts: 16

Original Poster
Rep: Reputation: 0
but.. install didin't do me anything folder like /usr/java/J2SDK.... ?
 
Old 04-30-2004, 02:52 AM   #8
Mega Man X
LQ Guru
 
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 65
Quote:
Originally posted by Larke
but.. install didin't do me anything folder like /usr/java/J2SDK.... ?
It usually installs where you ran the executable. If you ran

./ <j2sdk-yadda-yadda-yadda>.bin

at /home/user/, then j2sdk will be at /home/user/j2sdk_version. I (and many others) usually move j2sdk to /usr/local and run it from there, so it will be installed at /usr/local/j2sdk<version>. This helps to keep the system more organized. Check where you run the installation first, the directory will be there... You could always use "whereis" or "slocate" to find files too

Good luck!
 
Old 05-13-2004, 01:48 AM   #9
Burge
LQ Newbie
 
Registered: Nov 2003
Location: AU
Distribution: Redhat9
Posts: 1

Rep: Reputation: 0
When I try and install 1.5.0, I'm getting a segmentation error (using RH9)

Anyone experienced that?
 
Old 06-02-2004, 04:43 PM   #10
realtowz
LQ Newbie
 
Registered: Jun 2004
Location: Athens, GR / Reykjavic, IS
Distribution: Red Hat 9 (Shrike)
Posts: 7

Rep: Reputation: 0
java 1.5??


is there such a version???

even if there is... it must be on beta-testing for more experienced users....




where did u find the download?
 
Old 06-25-2004, 02:11 PM   #11
prashant chavan
LQ Newbie
 
Registered: Jun 2004
Location: mumbai - INDIA
Distribution: Fedora Core 1/ Mandrake 10.1
Posts: 3

Rep: Reputation: 0
j2sdk1.4.2_04 software and othe near versions uses the default directory /usr/java so better move the file u want to install in the /usr directory. we havt to set the CLASSPATH as follows==>
first edit the file .bashrc which is present in u'r home directory.it is hidden so to check type in the terminal ls -a command.u will see the file.

now edit the file using any editor and add the following lines as follows

export JAVA_HOME=/usr/java/j2sdk1.4.2_04
export PATH=$JAVA_HOME/bin:$PATH

that's it
now compile the java programs using javac -program name.java
it works if any problem mail me.
have a nice try.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to install J2SDK 1.4 on Mandrale 9.2? hitsum Mandriva 5 08-06-2005 07:51 PM
"cannot execute binary file" when install j2sdk jin007 Linux - Software 3 06-27-2005 02:05 PM
j2sdk is already installed ...? happy78 Linux - Software 4 06-08-2004 05:37 PM
j2sdk install issues on Redhat 9 iceman42 Linux - Software 5 03-05-2004 12:46 AM
J2SDK install problem on Mandrake 9.1 gervin Linux - Newbie 5 01-06-2004 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:27 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