-
![Quote](images/misc/quote_icon.png)
Originally Posted by
xaviers2002
If I got it right the "normal" way to install a progrtam on Debian is: open a root shell, type "dpkg apt-get install" followed by the name of the of the program that was downloaded. Correct?
Thanks
Yes, but Java cannot be installed this way?
Also, how do you install the executable java installation file? I downloaded it, but I'm such an idiot that I don't know how to install it. Any help? Thanks.
-
Senior Member
registered user
It is not that complicate....
Open a root shell; than write "chmod +x" "space" "name of the file" "enter".
ES. "chmod +x j2re-1_4_2_05-linux-i586.bin". It should look like this!!!
Than: ./j2re-1_4_2_05-linux-i586.bin.
Voila'!!! Click enter to go at the end of the page: type yes. Wait to see "DONE" close the shell.
-
Senior Member
registered user
![Quote](images/misc/quote_icon.png)
Originally Posted by
xaviers2002
"export JAVA_HOME=/opt/j2sdk"
Do I have to run this from root or command?
Nothing has happened form root.
Thanks
Well - of course you have to set the java home to the dir, where YOU installed it - perhaps it's /opt/j2sdk, perhaps it's not.
run from root? run AS root?
run from COMMAND? (from what else? from PIZZA?)
JAVA_HOME is a variable, which is frequently used by programs, which use java, like a IDE (eclipse) or ant - a build-tool for java like 'make' for c++.
It should be set for every TERMINAL/ ENVIRONMENT where a program is run, which might be interested in the JAVA_HOME.
If you're root and user xaviers on your system, and the only user, and might use java as root, you would set it in /etc/profile.
If you're only using java as xavier, you would put it to /home/xaviers/.bashrc or ~/.bash_login or ~/.profile.
If you only use java for 2 or 3 times, you wouldn't set it at all, or issue the command in the shell directly.
If you're running java for some years and trying differnt versions parallel, you would set it to /opt/java and generate a symbolic link
Code:
ln -s /opt/j2sdk-1.4.3 /opt/java
# and for testing remove the link, and create a new one:
ln -s /opt/j2sdk-1.5.0-3 /opt/java
and the JAVA_HOME would automatically point to the appropriate directory via the symbolic link.[/code]
-
Senior Member
registered user
"for mzilikazi"
What is the difference between writing "chmod +x" or not?
I have installed java with both method and everything was fine...
Thanks
-
Senior Member
registered user
man chmod.
If you CHange MODe of a file +eXecutable (alternatives: Read Write), you make it executable.
Then you can start xy.bin with './xy.bin'.
Else you have to run it as script: 'sh xy.bin'.
If the file is already executable, chmod +x has no effect.
Of course you cannot make any file executable this way.
You only modify an attribute of the file, indicating that it is excecutable.
If you call 'chmod +x flower.bmp' or 'rollOverBeethoven.wav' - the files aren't executable at all.
You will get a message 'no interpreter' or 'unknown file format' if you try to execute them.
-
I am further confused.
So, where do I put the java executable file when I download it? Then what do I do to install it?
Thanks.
P.S. Do I use this similar process for installing Real Player because Real Player is not available via apt, is it?
-
Senior Member
registered user
Use the instructions I've already posted.
Go here:
http://java.sun.com/j2se/1.4.2/download.html
Scroll down
Get this:
self-extracting file (j2re-1_4_2_05-linux-i586.bin, 13.72 MB)
Save it to your home directory.
chmod +x j2re-1_4_2_05-linux-i586.bin
./j2re-1_4_2_05-linux-i586.bin
Hit <enter> to get to the bottom of the agreement.
Type 'yes'
-
![Quote](images/misc/quote_icon.png)
Originally Posted by
mzilikazi
Use the instructions I've already posted.
Go here:
http://java.sun.com/j2se/1.4.2/download.html
Scroll down
Get this:
self-extracting file (j2re-1_4_2_05-linux-i586.bin, 13.72 MB)
Save it to your home directory.
chmod +x j2re-1_4_2_05-linux-i586.bin
./j2re-1_4_2_05-linux-i586.bin
Hit <enter> to get to the bottom of the agreement.
Type 'yes'
Thank you. I got it to work.
Is there anyway I can make Mozilla Firefox work with the java too? Right now java only works when I use konquerer.
Similar Threads
-
By ThE_R_o_B in forum Hardware & Booting
Replies: 1
Last Post: 04-18-2005, 04:22 AM
-
By nlight40 in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 12-16-2004, 09:21 AM
-
By xaviers2002 in forum General Support
Replies: 1
Last Post: 07-23-2004, 02:53 AM
-
By sjlinux in forum General Support
Replies: 8
Last Post: 02-24-2004, 11:59 AM
-
By celtic_kiwi in forum Customising & Remastering
Replies: 2
Last Post: 09-18-2003, 11:56 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
![Knoppix NSM 1.2 picture](/store/img/g/btwAAOSwWpVlAOZn/s-l225/Knoppix-NSM-1-2.jpg)
Knoppix NSM 1.2
$8.00
![Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture](/store/img/g/I8UAAOSwdHdgiQtc/s-l225/Knoppix-Live-GNU-Linux-System-9-1-on-Bootable-CD-D.jpg)
Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$9.99
![KNOPPIX 9.1 LINUX INSTALL & LIVE DVD picture](/store/img/g/I3EAAOSwdEll-z0J/s-l225/KNOPPIX-9-1-LINUX-INSTALL-LIVE-DVD.jpg)
KNOPPIX 9.1 LINUX INSTALL & LIVE DVD
$9.99
![Linux Knoppix 4.0.2 Installation Disc picture](/store/img/g/jvgAAOSw2kVl3ru~/s-l225/Linux-Knoppix-4-0-2-Installation-Disc.jpg)
Linux Knoppix 4.0.2 Installation Disc
$29.99
![Knoppix Linux Bootable OS v8.6](/store/img/g/m9EAAOSwwL5fs9mY/s-l225/Knoppix-Linux-Bootable-OS-v8-6-Original-Live-Opera.jpg)
Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$20.30
![Hamshack Live DVD-ROM picture](/store/img/g/Or0AAOSwsZpkY8PH/s-l225/Hamshack-Live-DVD-ROM.jpg)
Hamshack Live DVD-ROM
$8.00
![Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA picture](/store/img/g/u1wAAOSwhBJljLXq/s-l225/Acer-Aspire-One-9-inch-Netbook-ZG5-512MB-RAM-8GB-S.jpg)
Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA
$79.99
![Knoppix 3.4 Linux installation CD picture](/store/img/g/UqAAAOSwPf1mNj1O/s-l225/Knoppix-3-4-Linux-installation-CD.jpg)
Knoppix 3.4 Linux installation CD
$10.00
![Knoppix Linux Bootable OS v8.6](/store/img/g/m9EAAOSwwL5fs9mY/s-l225/Knoppix-Linux-Bootable-OS-v8-6-Original-Live-Opera.jpg)
Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$19.95