I know this question has been asked a lot, but I have tried a few suggestions and am still getting this error.
I am running the jar as follows:
java -jar MyJar-1.0.jar com.me.ldap.ActiveMain
,
where my ActiveMain.java file looks like this:
package com.me.ldap;
public class ActiveMain {
public static void main(String[] args) throws Exception {
...
}
}
I have also tried simply java -jar MyJar-1.0.jar
with the same Error: Could not find or load main class
error. I've also looked into the class path option but I don't think that applies.
I am creating it in Intellij as a Maven project. Maven
> Lifecycle
> package
.