VMware Horizon Community
littlef00t
Contributor
Contributor

ThinApp Java Application with Dynamic VM Arguments

I am currenty in the process of evaluating ThinApp and have a Java application that I am trying to package and distribute via ThinApp.

My java application requires a URL to be specified as a java VM -D parameter when the application is run.  The VM argument is specified in a config file that is loaded/read at runtime.

My problem is that the VM argument can differ depending on the user running the application.

I can use ThinApp to package my application and it runs fine, but once it has been built/packaged, there is no way for me to change the VM argument dynamically when the ThinApp'd application is run.

Do anyone have any suggestions or best practices for how to handle this problem?

Any help would be greatly appreciated Smiley Happy

0 Kudos
2 Replies
TobyFruthParson
Enthusiast
Enthusiast

Use a VBscript to harvest user information and pass it to the virtual bubble?

Toby Fruth, Sr. Specialist, The Parsons Corporation
littlef00t
Contributor
Contributor

I found out that the command line arguments for my Java application could be included included in a configuration file that is read when the application is executed.

So using Toby's idea, I created a VBS script that copies an externally editable configuration file (located in my ThinApp package's bin directory) to the virtual environment when my packaged application is executed.

I am now able to build my ThinApp packaged application while maintaining the ability to configure its runtime options.

0 Kudos