I have a
java application that has an Icon on the Windows 98/NT desktop.
Icon properties has the following:
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")
With my application closed, I am able to double-click on one of these ".frm" files (In "My Computer" or Windows Explorer) and my application starts and opens the ".frm" file.
So far, so good.
Here is what it cannot do:
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 and open this file.
What I get so far is a box that says "Could not find the main class. Program will exit!".
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 the information after javaw.exe and trying to open the "test.frm" which because it is not a class file, it it not surprising that it cannot find a main class.
Note: This works fine in Windows 2000.
Thanks for your help.
[This message has been edited by Scott Matthews (edited December 07, 2001).]