[Feature-15531] Vision Client on Raspberry Pi – 400 Bad Request from legacyClient.sh

yeah this shell script is a sort of “do-it-yourself” jump start. it could probably use some updates. however if you have a local version of java which works fine add -Dignition.runtimeOverride=true to the command like so:

java -cp /home/iscoadmin/.ignition/cache/launchclient_2D200F2E.jar \
--add-opens=java.desktop/javax.swing.tree=ALL-UNNAMED \
--add-opens=java.desktop/javax.swing.plaf=ALL-UNNAMED \
--add-opens=java.desktop/java.awt.event=ALL-UNNAMED \
--add-opens=java.desktop/javax.swing=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.desktop/javax.swing.plaf.synth=ALL-UNNAMED \
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED \
--add-opens=java.desktop/java.awt=ALL-UNNAMED \
--add-opens=java.base/java.util=ALL-UNNAMED \
--add-exports=java.desktop/sun.swing.table=ALL-UNNAMED \
--add-exports=java.desktop/sun.awt.image=ALL-UNNAMED \
--add-exports=java.desktop/sun.print=ALL-UNNAMED \
--add-exports=java.desktop/sun.awt=ALL-UNNAMED \
--add-exports=java.desktop/sun.swing.plaf.synth=ALL-UNNAMED \
--add-exports=java.desktop/sun.swing=ALL-UNNAMED \
--add-exports=java.base/sun.security.action=ALL-UNNAMED \
--add-exports=java.desktop/sun.awt.shell=ALL-UNNAMED \
-Dia.retarget.token=2D200F2E \
-Dignition.retarget.token=2D200F2E \
-Djavaws.sr.runtimeOverride=true \
-Djavaws.sr.scope=C \
-Dignition.launchts=1771452860271 \
-Djavaws.sr.platform.plugins= \
-Djavaws.sr.platform.edition= \
-Dignition.scope=C \
-Xms64M \
-Djavaws.sr.memory.init=64M \
-Dignition.project=Clock \
-Dignition.memory.init=64M \
-Dignition.screen=0 \
-Dignition.plugins= \
-Djavaws.sr.main=com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook \
-Djavaws.sr.gateway.addr.0=http://10.0.20.90:9088 \
-Dignition.gateway.addr.0=http://10.0.20.90:9088 \
-Djavaws.sr.launchts=1771452860271 \
-Dignition.main=com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook \
-Djavaws.sr.screen=0 \
-Xmx256M \
-Dignition.edition= \
-Dignition.memory.max=256M \
-Djavaws.sr.memory.max=256M \
-Djavaws.sr.project=Clock \
-Dignition.runtimeOverride=true \
com.inductiveautomation.ignition.client.launch.BootstrapSwingFS

Ideally, you can just add this directly to your launchclient.sh.
This script was originally designed for old linux x86 systems, not aarch64, we still technically do not have direct support for aarch64 clients directly, but there is a ticket to do this, ill add this thread to the interested parties.

3 Likes