Prepend your PATH variable with that directory in your .bashrc file.
I am using Knoppix 3.8.1 and it is bundled with Java 1.4.2. I do not know how to uninstall Java 1.4 and since I need the new features of Java 1.5, I decided to install Java 1.5 over it (some of you may think its not a very good idea).
Now, when I run a java -version at the command prompt, it still says 1.4.2. So I explicitly exported the PATH of my new Java 1.5
"export PATH=/home/java1_5/bin"
After that "java -version" replies with 1.5, which is correct. However when I restart the shell, the PATH seems to be reset to its original state and won't recognize my Java 1.5!
Please help!
Prepend your PATH variable with that directory in your .bashrc file.
Redo your symlink in /usr/bin to point to your copy of the java.

OPNsense pfSense 8-Core Atom C3758 2.2GHz 8GB DDR4 64GB SSD 8x NIC QAT AES VPN
$145.00
OPNsense Firewall 8-Core Atom C3758 4GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI VPN
$95.00
OPNsense Firewall 16-Core Atom C3958 16GB DDR4 RAM 64GB SSD 8x 1Gbe QAT AES-NI
$195.00
Barracuda NextGen CloudGen Cloud Based Firewall F280 BNGF280a w/ 8.3.1 Firmware
$89.99
HP 2x 10GB OPNsense Quad Core i5-8500 8GB RAM 3Port Gigabit Firewall AES-NI SSD
$199.95
Fortinet FortiGate 60F FG-60F UTM UTP License Until 2027 Network Security FW VPN
$239.99
Firewalla Gold Plus 2.5gb W/Rack Mount Kit W/Keystones and Original hardware.
$500.00
Netgate SG-2100 pfSense Plus 26.07 Firewall VPN Router - Wiped, Fresh Install
$174.99
Zero Trace Pen: All-in-one Tor Network Anonymous Drive + Cryptocurrency Wallet
$147.00
Check Point 1590 Firewall & w builtin WiFI and builtin LTE sim slot
$95.99