Not sure why you want to set the path for it. Have you tried: update-alternatives --config java
How are you installing java? With java-package?
Every time I upgrade to a new version of java, I forget how to set the PATH variable.
I know you can use export, but I've manually editted the PATH var so as to remove the old path setting from
/usr/java/j2sdk1.4.2_08/bin/java
to
/usr/java/jdk-1_5_0_04/bin/java
TIA,
AJG
Not sure why you want to set the path for it. Have you tried: update-alternatives --config java
How are you installing java? With java-package?
Well, I'm installing the self-extracting *.bin from java.sun.com
The instructions say to download it whereever, say /root
Then, cd to the dir you want to extract it to, say /usr/bin/java and execute the *.bin creating a subdir there.
Now, I want all the users on this server to use the new executables for java, javac, appletviewer and javadoc versions 1.5
I think I remember now, all I did in the past wasto edit the path line and then reboot orCode:kwrite /etc/profileBTW, is there a way to see the current path without opening the file /etc/profile?Code:source /etc/profile
Also, to uninstall the old jdk, do I simply remove its dir from the path and delete that dir and all its subdirs?
TIA,
AJG
Have you seen this? http://serios.net/content/debian/jav...va-package.php
The point with java-package is that you create a .deb with it which can then be (un)installed with dpkg.
For a single user I sometimes just export the path manually with PATH=/some/new/path:$PATH && export PATH but you said you don't want this so how about:
sed -i 's/sbin/sbin:\/some\/new\/path/' /etc/profile
You can choose something else than sbin of course, I didn't even check if it's mentioned only once. Or you can echo the path somewhere.
OK, I'll have to look at your link. However, I seem to remember having a problem the first time I installed java with a *.deb
Sun Micro provides the *.bin and a *.rpm so i used alien to convert the *.rpm to a *.deb and tried to install it with kpackage. However, the *.deb generated was incomplete. I figured alien couldn't handle such a large file....
Thanx for the help,
AJG
I didn't see a question there so I neglected to answer, perhaps I should have. Did it work? As you probably noticed java-package uses the bin from sun as well, so it isn't that different except that you get a deb out of it.
Thanx for your concern. However, I have to wait until I get back to school after Labor day to play around with this.
Regards,
AJG
That was fast![]()

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$174.99
Clear Touch Interactive Module CTI PCMOD PC55 ST i5 6core,8GB DDR4,256GB SSD NEW
$225.00
NEW* AMD Athlon 64 X2 4850e 4GB WinXP + DOS Custom Retro Gaming PC & 50+ Games
$295.00
Intel Core i9-9900 SRG18 3.10GHz 16MB 8-Core LGA1151 CPU Processor
$177.21
AMD Ryzen 7 9800X3D 8-Core 16-Thread AM5 Zen 5 Desktop Processor NEW
$395.00
AMD RYZEN 7 9800X3D 8-Core, 16-Thread Desktop Processor
$379.00
Intel Core i9-9900 SRG18 3.10GHz 8-Core Desktop CPU Prcoessor LGA1151
$165.00
Intel Core i3 10th 9th 8th 7th 6th 4th 3rd & 2nd Gen Mixed CPU LOT of 227 Units
$2163.00
Lenovo IdeaCentre AIO 24IRH9 23.8” Intel Core I5-13420H 2.1GHz 8GB RAM 256GB SSD
$409.99
Panasonic CF-SV8 Let's note SV8 Laptop Core i5 8GB RAM 256GB SSD 12.1in Japan
$183.50