How to use "use Application/Browser" with java application?

When I try to start up an application, the “use application/browser” activity detects following.

Application path: “C:\Program Files (x86)\JWS\JavaSoft\JRE\jre1.8.0_311-x64\bin\javaw.exe”
Application arguments: “”“-Xms1664m”" “”-Xmx1664m"" “”-XX:+UseG1GC"" “”-XX:+UseStringDedu… …AppData\Local\Temp"
With at least 50 arguments
Eventually when I try to start the application it gives a null pointer exception.

I tried to start the application with the known link from the shortcut:
“C:\Program Files (x86)\JWS\Java Web Start\javaws.exe” http://LINK:PORT/jws/NAME.jsp
But then I get “could not open target application”.

I also tried to split it and add the http part as an argument, but then i got a message “error loading configuration file” Could not find file javaws.cfg or launcher.cfg. Please reinstall the application.

I found a javaws.cfg with following config in it. But even with combinations of that I can’t seem to be able to let the application start. text in javaws.cfg here under:
.
“..\JavaSoft\JRE\jre1.8.0_311\bin\javaw.exe”
-mx128m -Ddebug=false -Djavax.accessibility.assistive_technologies= -Djavax.accessibility.screen_magnifier_present=false -jar launcher-3.5.6\launcher.jar

I can’t send the application. It is also not publicaly available. But maybe some might have had a simular problem. Or knows exactly what to place in application path and application arguments.

@sallegae,

Hope you have installed Java extension. If not, follow this to install it

For debugging the issue, try this FAQ

Yes extension is installed. And I have no problems once in the application. It’s only starting up the application that is a problem.

A colleague made an exe of the installer and when I point to that exe it works. But it’s not a good practice. Because the application is a 3th party, launching updates.

Ok @sallegae, in that case you can use PowerShell script to open the application and then continue the next activities with other UI Activities.

Try this scrip generated by Copilot

# Define the path to javaws.exe
$javawsPath = "C:\Program Files (x86)\JWS\Java Web Start\javaws.exe"

# Define the URL argument
$url = "http://mywebsitelink.com:398/jws/NAME.jsp"

# Run the application with the URL
Start-Process -FilePath $javawsPath -ArgumentList $url

Tutorial on how to invoke the script.

@sallegae

Go to whatever the application is

And open the properties of it..there it would have the start up arguments its usinng and the path

Its a java application

So generally there would be a jar file which needs to sent as argument and the java application as the app pth…this is in common..

But for your app you can open the proeprties and check which will go where..also start process works same as cmd so in cmd which ever way you can open the app the same is to be follwed in use app/browser activity as well

Or when you open from use app browser just remove the unecesaary arguments or if youd ont kneo try with adding only config etc and check

Cheers