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 |
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! |
[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? |
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 ;) |
one and only problem is now, where is my j2sdk directory?
i didin't find it with kfind, and locate :( |
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 |
but.. install didin't do me anything folder like /usr/java/J2SDK.... ?
|
Quote:
./ <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! |
When I try and install 1.5.0, I'm getting a segmentation error (using RH9)
Anyone experienced that? |
java 1.5??
is there such a version??? even if there is... it must be on beta-testing for more experienced users.... :D :D :D where did u find the download? |
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. |
All times are GMT -5. The time now is 12:14 PM. |