Running .jar file issue

I am trying to run a file.jar on the client’s computers, the Fixlet runs completely fine, but it doesn’t show the application.
dos "C:\Program Files (x86)\Java\jre1.8.0_161\bin\java.exe" -jar "C:\temp\file.jar"

if I double click it from the downloaded folder. it runs fine.
any suggestions?

Remember the BigFix client runs in the Local System context, not in a user context, so it depends what that JAR does. If it tries to interact with the user or needs some configuration in the user profile etc then it won’t work.

Thank you
Would use RunAsCurrentUser.exe fixes that?
if not. any suggestion how to get some interaction app to collect data from the user?

We don’t suggest that exe anymore. Take a look at https://developer.bigfix.com/action-script/reference/execution/override.html specifically the “RunAs”