score:1
what i would do is: create a dummy project in your netbeans and export it as a runnable jar. then take your manifest and the dummy-project manifest and compare it.
manifests are really a pain in the code. they need to be absolutely correct formatted. take care on trailing whitespaces, missing/additional empty rows etc...
maybe check the java version, you are using. make sure, that your command line uses the same one, like setup in your environment variables. maybe there are doubled declarations...
which java.exe is associated with *.jar files in windows explorer? try exactly this java.exe to run your jar from the cli. same issue then?
good luck!
Source: stackoverflow.com
Related Query
- Jar file created with Eclipse: Could not find the main class: UI.MainWindow. Program will exit
- "Could not find the Main class" when opening a .jar file
- "Could not find the main class" error when running jar exported by Eclipse
- Generated Runnable jar: Could not find the main class
- Error: Could not find or load main class Java, because class file anme and class name are different?
- Selenium WebDriver Java code doesn't execute on eclipse: Could not find the main class
- Could not find the main class x. Program will Exit
- Error When Compiling on Eclipse Luna with JavaCC - Could not find or load main class javacc
- "Error: Could not find or load main class Average" When Using Referenced Assembly in Java Code
- Error: Java Virtual Machine Launcher. Could not find the main class
- Why this error "Could not find or load main class" appears when I execute the main class in a spring boot project in eclipse
- eclipse java file shows question mark, cause Could not find or load main class
- when my system changed maven project giving error Error: Could not find or load main class
- Could not find or load the main class after build
- Java - Could not find the main class - reinstall didn't work
- In Eclipse, why am I getting the error "Error: Could not find or load main class Coordinator.java"?
- Eclipse Error: Could not find or load main class
- Could not find or load main class org.apache.catalina.startup.Bootstrap
- Scala Error: Could not find or load main class in both Scala IDE and Eclipse
- Maven/Eclipse: Could not find any META-INF/persistence.xml file in the classpath
- "Could not find main method from given launch configuration" error when exporting jar from Eclipse
- Could not find class 'android.webkit.WebResourceResponse' when running HelloCordova on Android 2.2
- Could not find or load main class in STS/Eclipse
- Mac Terminal: Could not find or load main class CLASSNAME
- Error: Could not find or load main class sun.applet.AppletViewer
- Error: Could not find or load main class org.testng.remote.RemoteTestNG
- Error: Could not find or load main class in Eclipse
- Could not find or load main class com.google.appengine.tools.development.DevAppServerMain
- Running Ant Build.xml getting: Java Virtual Machine Launcher: Could not find the main class. Program will exit
- Error: Could not find or load main class com.google.gwt.dev.Compiler while compiling a GWT project
More Query from same tag
- xtext ide not loading library
- eclipse run/debug launch configs in ws/.../.launch do not show up in config dialog
- insert and receive the data from MySQL through Android using PHP
- Changing activities on end phone call
- no integration graph view in eclipse sts 4?
- Discouraged access Eclipse library
- Finding the origin of JAR files from source code to determine frameworks used?
- Add a test method to existing test case by highlighting the method name in Eclipse
- How to make javadoc.jar take priority over javadoc in sources.jar?
- notepad.exe is not opening in tomcat but works in eclipse
- Eclipse forgot all my projects?
- How to use IWorkspace ws=ResourcesPlugin.getWorkspace() of Eclipse in normal Java project?
- Header File Doesn't Recognize typedef from a Different Header File
- Installing jdk without sudo?
- Java method parameter names from a JAR file in Eclipse
- eclipse mac installation of boost is wrong due to 'Library not loaded' 'image not found'
- How can I install httpclient and other libraries in Java so I can use them in Eclipse?
- Java File Tree Error (FileTreeModel cannot be resolved to a type)
- How to move Eclipse project from one Github repo to another?
- java project not working after ant build
- How to figure out proxy address and port number
- strrchr() will only change the haystack and ignore the needle plus won't return anything
- The import javax.servlet can't be resolved
- BigDecimal notation eclipse plugin or nice external tool
- Copy compiled binary files to remote system
- dataset .net cannot resolve on java web service client
- Unresolved import in pydev
- Tools for Eclipse 2.0 plugins upgrade
- java.lang.UnsupportedOperationException: clientBuilder.sslSocketFactory(SSLSocketFactory) not supported on JDK 9+ While using Java 8 in m y eclipse
- Signals when debugging