Installing Java2 RE from .bin
I chmod' it ran it and everything....it printed on the screen a bunch of inflating creating etc etc.....now what do i do...i tried a search....but couldn't find it......i need java cause i wish to try this program http://www.tanveer.freeservers.com/p...shDownload.htm
Is there another script to execute after this or something? Garry :D |
Oh by the way i found a zip file which was created after all the inflating extracting stuff named javaws-1_2_0_01-linux-i586-i.zip i extracted it and it had a script file 'install.sh' i ran that and it asked this and i don't know where to go on: (above was all that licensing agreement stuff)
Code:
Do you agree to the above license terms? [yes or no] Garry :D |
Whatis that program?
Anyway, which version do you have? It should have deflated into the directory into which it was. So if: Java.whatever.bin was in: /home/files/Java.whatever.bin and you ran it from there, it should have decompressed there, and now you should move the decompressed folder to /usr/loca/bin/java with: mv /path/to/decompressed/folder /usr/loca/bin/java And set your $PATH. What distro? Cool |
Is the folder named 'j2re1.4.1_01' i'm running Mandrake 8.2...
Oh and i have heard this $PATH thing alot and i have an idea what it is, but how would i go on setting it? Garry :D |
Oh and it's some graphic program which i found on tucows i found it interesting and wanted to try it, and it said i needed java, so i thought might aswell install it :)
Garry :D |
Cool...
You might have either a .bash_profile in your ~ directory to edit your $PATH or you might have /etc/profile to edit your path, either one is fine. As for the folder, yes it probably is, so here is the command to move it (remember you must be root and that you are in the directory that this file exists): mv j2re1.4.1_01 /usr/local/bin/java Just like that, you can copy and paste if you'd like. Some people like to move the folder and have the name remain the same, no problems there, you will just have to follow with a symlink to /usr/local/bin/java afterwards, or adjust what you place in your $PATH to show the j2re1.4.1_01 as your java folder. Oh and 1 more thing, you will actually want to add the bin subdirectory in the j2re1.4.1_01 folder. SO... Enter the j2re1.4.1_01 folder, make sure you have a /bin directory there, if so, and if you choose to use my moving option then add this to your $PATH: /usr/loca/bin/java/bin Cool |
I'm sorry MasterC but i kinda lost you after the move thing ;)
I moved the folder via command to /usr/local/bin/java, now i am lost... very very sorry hehe.... Garry :D |
he he he, no problem, sometimes I move fast if I think I am boring you with details...
Ok, so you have it moved then, cool. Now see if you have either (or both) /etc/profile AND/OR ~/.bash_profile You can just look for them, no need to do a search. Cool |
Yep got em both...
Garry :D |
Ok so let's go for /etc/profile as it will work for all users that way...
Add the bold to your similar looking line: Code:
# Set the default system $PATH: /usr/local/bin/java/bin Cool |
This is my profile....i don't know where to put it, sorry....
Code:
# /etc/profile -*- Mode: shell-script -*- |
No wait i know where to put it now :p sorry again....once i put it in...how can i test if java works?
|
Ok very very sorry, i know where it goes, but i don't know how to insert it....geeeez i should concentrate more...
|
No problem, it's not a biggie ;)
Open up a text editor, and place the following line in your file: PATH="/usr/local/bin/java/bin" Just below: if [ "$UID" -ge 500 ] && ! echo ${PATH} |grep -q /usr/games ; then export PATH=$PATH:/usr/games fi Just under the fi place the line I have above, just as it is. Then post what you did just to make sure it's all ok. To paste, just highlight the text here, and click the middle mouse button on the area to paste into. Cool |
Ok done..here we go....
Code:
# /etc/profile -*- Mode: shell-script -*- |
All times are GMT -5. The time now is 06:15 AM. |