BUG: Bad Default Start Menu Program in Setup ProjectsID: Q199033
|
When you wrap a Visual J++ 6.0 application project in a self-extracting executable that has an entry on the Start menu and the Start menu is set to the default properties, the following error occurs when you try to run the program from the Start menu:
WJView Error
ERROR: Could not execute Form1: The system cannot find the file specified.
When you select the Create an entry in the Start Menu check box, the default properties for a self-extracting setup project are as follows:
Command line program=<WinDir>\wjview.exe
Argument= /p /cp:p "<APPDIR>" Form1
The problem occurs because Visual J++ 6.0 does not modify the project's target start location to point to ProjectXX.exe. Visual J++ 6.0 should point to ProjectXX.exe if you specify Windows EXE as the project packaging type. The launch dialog box, as well as any setup project deploying this type of project, always refers to the startup class independent of the packaging type.
To make your setup project create an entry in the Start menu when Windows binaries are deployed, change the default setup properties as follows:
Command line program=<AppDir>\AppName.exe
Argument=""
NOTE: AppName is the name of the Windows application. For example, Project1 is the application name in the example in the MORE INFORMATION section of this article.
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.
Command line program=<WinDir>\wjview.exe
Argument= /p /cp:p "<APPDIR>" Form1
For the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site:
http://support.microsoft.com/support/visualj/
http://support.microsoft.com/support/java/
© Microsoft Corporation 1998, All Rights Reserved.
Contributions by Adele Hunter, Microsoft Corporation
Additional query words:
Keywords : kbide kbInternet kbJava kbVJ600 kbVJ600bug
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 31, 1999