Click here to Skip to main content
16,006,594 members
Home / Discussions / Java
   

Java

 
QuestionCould not find main class [modified] Pin
RossouwDB10-Jul-11 20:12
RossouwDB10-Jul-11 20:12 
AnswerRe: Could not find main class Pin
Gerben Jongerius10-Jul-11 21:40
Gerben Jongerius10-Jul-11 21:40 
GeneralRe: Could not find main class Pin
TorstenH.10-Jul-11 21:52
TorstenH.10-Jul-11 21:52 
GeneralRe: Could not find main class Pin
RossouwDB10-Jul-11 22:37
RossouwDB10-Jul-11 22:37 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 0:17
mveRichard MacCutchan11-Jul-11 0:17 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 1:18
RossouwDB11-Jul-11 1:18 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 2:17
mveRichard MacCutchan11-Jul-11 2:17 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 2:25
RossouwDB11-Jul-11 2:25 
Richard MacCutchan wrote:
-cp option followed by a list of .jar files is your classpath


crud, I knew but forgot that! Now I follow Blush | :O

The omniide is my "main" package, and the omniIDEApp is the entrypoint of my application. Everything is spelled correctly since I have even copied it as is from my Manifest file, but to no avail.

Here is the actual code for my entrypoint class:

/*
 * OmniIDEApp.java
 */

package omniide;

import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

/**
 * The main class of the application.
 */
public class OmniIDEApp extends SingleFrameApplication {

    /**
     * At startup create and show the main frame of the application.
     */
    @Override protected void startup() {
        show(new OmniIDEView(this));
    }

    /**
     * This method is to initialize the specified window by injecting resources.
     * Windows shown in our application come fully initialized from the GUI
     * builder, so this additional configuration is not needed.
     */
    @Override protected void configureWindow(java.awt.Window root) {
    }

    /**
     * A convenient static getter for the application instance.
     * @return the instance of OmniIDEApp
     */
    public static OmniIDEApp getApplication() {
        return Application.getInstance(OmniIDEApp.class);
    }

    /**
     * Main method launching the application.
     */
    public static void main(String[] args) {
        launch(OmniIDEApp.class, args);
    }
}


This code is generated by NetBeans when the project is created.

I am stumped as to the cause of this error! WTF | :WTF:
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 2:41
mveRichard MacCutchan11-Jul-11 2:41 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 2:43
RossouwDB11-Jul-11 2:43 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 2:49
mveRichard MacCutchan11-Jul-11 2:49 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 2:58
RossouwDB11-Jul-11 2:58 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 3:07
mveRichard MacCutchan11-Jul-11 3:07 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 3:12
RossouwDB11-Jul-11 3:12 
GeneralRe: Could not find main class Pin
TorstenH.11-Jul-11 3:13
TorstenH.11-Jul-11 3:13 
GeneralRe: Could not find main class Pin
Richard MacCutchan11-Jul-11 4:53
mveRichard MacCutchan11-Jul-11 4:53 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 19:19
RossouwDB11-Jul-11 19:19 
GeneralRe: Could not find main class Pin
TorstenH.11-Jul-11 21:10
TorstenH.11-Jul-11 21:10 
GeneralRe: Could not find main class Pin
RossouwDB11-Jul-11 21:25
RossouwDB11-Jul-11 21:25 
GeneralRe: Could not find main class Pin
TorstenH.12-Jul-11 0:03
TorstenH.12-Jul-11 0:03 
QuestionPolymorphism problem in java.. Pin
gateway239-Jul-11 6:21
gateway239-Jul-11 6:21 
AnswerRe: Polymorphism problem in java.. Pin
Richard MacCutchan10-Jul-11 5:43
mveRichard MacCutchan10-Jul-11 5:43 
AnswerRe: Polymorphism problem in java.. Pin
jschell10-Jul-11 12:53
jschell10-Jul-11 12:53 
AnswerRe: Polymorphism problem in java.. Pin
Shameel10-Jul-11 22:47
professionalShameel10-Jul-11 22:47 
GeneralRe: Polymorphism problem in java.. Pin
jschell12-Jul-11 10:11
jschell12-Jul-11 10:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.