Jump to content

Running a Cached Java Web Start Application


Recommended Posts

I had a shortcut to an application cached by Java Web Start and wanted to automate the login process.

It took me way to long to figure out the correct format for the second parameter. Maybe this post will save you some time.

ShellExecute("C:\Program Files\Java\j2re1.4.2_05\javaws\javaws.exe", '"@C:\Program Files\Java\j2re1.4.2_05\javaws\cache\indirect\indirect14878.ind"')

The second parameter is a bit hard to read. It is:

[single quote, double quote, (the parameter as shown in the orignal Shortcut Target properties),double quote, single quote]

The tricky part is that javaws requires this parameter in quotes as does SellExecute().

When my Java version was upgraded last week, the ShellExecute() failed.

I fixed it by changing paramer 1 from "javaws" to what is shown above to use the correct, older version of javaws.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...