The way to do it is javaws -J-DsocksProxyHost=127.0.0.1 -J-DsocksProxyPort=8080 iLO-jirc.jnlp.
Or configuring the required socks proxy with javaws -viewer
Neither work for me with the java Dell iDrac (similar to your case), I had to use proxychains for make it works. Like this
javaws viewer.jnlp launch with no config (will not work)
- Get the full generated command with
ps aux | grep java
- You will get something like this
/usr/lib/jvm/java-8-jdk/jre/bin/java -classpath /usr/lib/jvm/java-8-jdk/jre/lib/deploy.jar -Djava.security.policy=file:/usr/lib/jvm/java-8-jdk/jre/lib/security/javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.home=/usr/lib/jvm/java-8-jdk/jre/bin -Djava.security.manager -Djnlpx.origFilenameArg=viewer.jnlp -Djnlpx.remove=false -Dsun.awt.warmup=true -Xbootclasspath/a:/usr/lib/jvm/java-8-jdk/jre/lib/javaws.jar:/usr/lib/jvm/java-8-jdk/jre/lib/deploy.jar:/usr/lib/jvm/java-8-jdk/jre/lib/plugin.jar -Djnlpx.splashport=46417 -Djnlpx.jvm=/usr/lib/jvm/java-8-jdk/jre/bin/java com.sun.javaws.Main viewer.jnlp
- Install and configure
proxychains
- Then just add
proxychains in front of it
-
proxychains /usr/lib/jvm/java-8-jdk/jre/bin/java -classpath /usr/lib/jvm/java-8-jdk/jre/lib/deploy.jar -Djava.security.policy=file:/usr/lib/jvm/java-8-jdk/jre/lib/security/javaws.policy -DtrustProxy=true -Xverify:remote -Djnlpx.home=/usr/lib/jvm/java-8-jdk/jre/bin -Djava.security.manager -Djnlpx.origFilenameArg=viewer.jnlp -Djnlpx.remove=false -Dsun.awt.warmup=true -Xbootclasspath/a:/usr/lib/jvm/java-8-jdk/jre/lib/javaws.jar:/usr/lib/jvm/java-8-jdk/jre/lib/deploy.jar:/usr/lib/jvm/java-8-jdk/jre/lib/plugin.jar -Djnlpx.splashport=46417 -Djnlpx.jvm=/usr/lib/jvm/java-8-jdk/jre/bin/java com.sun.javaws.Main viewer.jnlp
You might need to re-download viewer.jnlp twice because the token inside expire fastly.
Some other observations
Sometimes the generated command by javaws have a weird option like -Djnlpx.vmargs=LURzb2Nrc1Byb3h5SG9zdD1sb2NhbGhvc3QALURzb2Nrc1Byb3h5UG9ydD05MDUxAA==
It's base64 encoded params for some weird inception jnlpx stuff give -DsocksProxyHost=localhost-DsocksProxyPort=9051