For those trying to install Oanda trading Platform or are having java connection problems with applications.
Try installing other versions of java and switching them, then restart your java application to see if it’s fixed.
I booted into Parrot OS Live USB from Ventoy USB boot I disk I made, try to launch the java app. It worked. So I checked the java version that was installed, booted back into Manjaro, checked the version installed which was the newest version, and downgraded the java version via the CMDs below and my application is working.
Better than trying to learn java debugging in MrCode or VSCodium or hunting the java connect errors online. I’ve had this problem before multi times over different OS’s and it really confused me. So hope this helps future me and some other’s with their Java Connection errors and need to do live charting on linux.
Java CMD to run Oanda app that fails:
java -jar -Xmx512m -Dsun.java2d.d3d=false /home/$USER/.oanda/jar/fxTrade/fxTrade
CMDs to fix connection errors:
java --version java 10.0.2 2018-07-17 Java(TM) SE Runtime Environment 18.3 (build 10.0.2+13) Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.2+13, mixed mode)
sudo archlinux-java status Available Java environments: java-10-jre/jre (default) java-11-openjdk java-17-jdk java-17-openjdk java-7-openjdk java-8-openjdk/jre
sudo archlinux-java set ***$NEW_JAVA__VERSION_FROM_LIST***
Relaunch App and it should be fixed.