I have an application that has an Icon on the Windows 98/NT desktop with the following icon properties:
Target:
"C:\Program Files\ROC\JRE13\bin\javaw.exe" -Xbootclasspath/p:boot.jar -jar Design.Jar
Start In: "C:\Program Files\Roc\Formation\Design
When I double-click on the Icon things work great:
My application starts and I am able to select/open files which are used in my application. (For reference, the files that I use all end with a file extension of ".frm")
So far, so good.
Here's where it is Not working:
I want to be able to have the user go to into "My Computer" (or Windows Explorer) and be able to drag a file or file(s) onto the Windows desktop icon and have it pull up my appilcation up and open the dragged file(s).
What I get so far is a box that says "Could not find the main class. Program will exit!". Note: Please do not dwell on the error message, please continue on as to what is causing the error.
For reference in the following, pretend I am dragging a file named "test.frm" on to the desktop icon.
What it looks like it is doing to me is the following:
It looks like it is ignoring some of the parameters on the Icon Target line and doing the following:
.....\javaw.exe test.frm
When I want it to do the following:
...\javaw.exe -Xbootclasspath/p:boot.jar -jar Design.Jar test.frm
It seems to be skipping everything after the first exe file and ignoring the additional command line arguments.
Again, the above works fine in Windows 2000. What is the solution to make this work in Windows 98 & NT.
Thanks for your help.