Note that there are some explanatory texts on larger screens.

plurals
  1. POCould not find the main class
    primarykey
    data
    text
    <p>I am trying to run a java program bundled in the jar named easyflow-gui.jar using cmd:</p> <pre><code>java -classpath "." -jar easyflow-gui.jar </code></pre> <p>The working directory is the directory containing all relevant libraries.</p> <p>The content of the Manifest file of the jar file I am trying to run is:</p> <pre><code>Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.3 Created-By: 1.6.0_32-b27 (Sun Microsystems Inc.) Main-Class: easyflow.custom.jgraphx.editor.SchemaEditor </code></pre> <p>The result of this attempt is:</p> <pre><code>Exception in thread "main" java.lang.NoClassDefFoundError: com/mxgraph/util/mxEventSource$mxIEventListener Caused by: java.lang.ClassNotFoundException: com.mxgraph.util.mxEventSource$mxIEventListener at java.net.URLClassLoader$1.run(URLClassLoader.java:217) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:205) at java.lang.ClassLoader.loadClass(ClassLoader.java:321) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:266) Could not find the main class: easyflow.custom.jgraphx.editor.SchemaEditor. Program will exit. </code></pre> <p>Question: which one of the classes is actually not found: the mxEventSource$mxIEventListener or the main class easyflow.custom.jgraphx.editor.SchemaEditor ?</p> <p>Edit 1: I checked the folder and extracted the jars and I find both classes available (bundled into its respective jars in the working dir):</p> <pre><code>$ls easyflow/custom/jgraphx/editor/SchemaEditor* easyflow/custom/jgraphx/editor/SchemaEditor$1.class easyflow/custom/jgraphx/editor/SchemaEditor$2.class easyflow/custom/jgraphx/editor/SchemaEditor.class easyflow/custom/jgraphx/editor/SchemaEditor.java $ls com/mxgraph/util/mxEventSource* com/mxgraph/util/mxEventSource$mxIEventListener.class com/mxgraph/util/mxEventSource.class </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload