BUG: Bad default Start menu program in setup projects (199033)
The information in this article applies to:
This article was previously published under Q199033 SYMPTOMS
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.
CAUSE
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.
RESOLUTION
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.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbBug kbide kbJava kbpending KB199033 |
---|
|