Issue

JExpress doesn't find my main() class when I click the Search button on the Java classes panel.

Suggestions
If any of your classes reference an interface or abstract class, then the Java runtime library generates a NoClassDefFoundError unless you include all the directories/jar/zip files for your app in the classpath that starts JExpress.

If you're running on Windows, then you can load the JExpress.properties file into a plain text editor and modify the -cp switch so it includes all the directories/jar/zip files for your app. You'll find JExpress.properties in the JExpress subdirectory of the directory where you installed JExpress.

If you're running on a Unix machine, except Mac OS X, then you can load the jex file and modify the -cp switch as described above. You'll find the jex file in the directory where you installed JExpress.

If you're running on Mac OS X, then you'll need to modify the classpath for JExpress. Select the JExpress icon and then select "Show Package Contents". Double click on the Contents folder and then double click on the Info.plist file. Modify the classpath as described above and then save your changes.

If you prefer, you can simply type in the full name, including any package name, for the class that contains the main().

Status
Resolved
Applies to
All
Platforms
All
Topics
main, Java classes panel, search for main

All information is provided "as is", without warranty of any kind, and subject to change. DeNova uses its best efforts to provide complete and accurate information. DeNova disclaims all warranties, either explicit or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall DeNova or its suppliers be liable for any damages whatsoever, including direct, indirect, incidental, consequential, loss of business profits or special damages, even if DeNova or its suppliers have been advised of the possibility of such damages.