Has anyone tried running the Cucumber-jvm cli without using maven?
If I try to execute the below command I am getting this error:
java cucumber.api.cli.Main
Error: Could not find or load main class cucumber.api.cli.Main
I even tried this:
java -cp "/Users/jreijn/.m2/repository/info/cukes/cucumber-
core/1.2.5/cucumber-core-
1.2.5.jar:/Users/jreijn/.m2/repository/info/cukes/gherkin/2.12.2/gherkin-
2.12.2.jar:/Users/jreijn/.m2/repository/info/cukes/cucumber-
java/1.2.5/cucumber-java-
1.2.5.jar:/Users/jreijn/.m2/repository/info/cukes/cucumber-jvm-
deps/1.0.5/cucumber-jvm-deps-1.0.5.jar" cucumber.api.cli.Main
I am getting the same error.
Related
My java program is running fine on my Eclipse IDE, but when am trying to run the same ".java" file using my command prompt it is showing me an error as shown in the fig.
Error: Could not find or load main class EulerianPathDirectedEdgesAdjacencyList
Caused by: java.lang.NoClassDefFoundError: com/euler/EulerianPathDirectedEdgesAdjacencyList (wrong name: EulerianPathDirectedEdgesAdjacencyList)
While am running the same code in my Eclipse IDE its working fine!
Please let me know, how to solve this.
Thanks!
Try running the command : java com.euler.EulerianPathDirectedEdgesAdjacencyList from the same directory where class file got created after running the previous javac command
I'm trying to run this Java GUI application but I'm not sure how to get it to run. The project is located here: https://gitee.com/gangshushu/v7/tree/master/admon_gui/one-jar.
My initial attempt was:
java -jar one-jar-ant-task-0.97.jar
But I end up with the error:
no main manifest attribute, in one-jar-ant-task-0.97.jar
Doing some search around, Failing to run jar file from command line: “no main manifest attribute”, I ended up running:
java -cp one-jar-ant-task-0.97.jar Main
But I end up with another error message:
Error: Could not find or load main class Main
Caused by: java.lang.ClassNotFoundException: Main
Searching around gave me some information overload here: What does "Could not find or load main class" mean?
How do I run this Java program? This is my first time trying to run a jar file, and I'm a little stuck.
Am I trying to run the Java program the wrong way?
Your main class is in a package, you need to specify in what package to find your main class. Try the following command line:
java -cp one-jar-ant-task-0.97.jar com.beegfs.admon.gui.program.Main
I try to execute
spark-submit ***.py
then I got
Error: Could not find or load main class
org.apache.spark.deploy.SparkSubmit
After looking reference of others, I tried to locate the error inside. This is where error came from
exec /usr/local/jdk1.8.0_201/bin/java -cp '/opt/spark-2.3.2-bin-hadoop2.7/conf/:/opt/spark-2.3.2-bin-hadoop2.7/jars/*' -Xmx1g org.apache.spark.deploy.SparkSubmit ***.py
and I still got the same error.
Error: Could not find or load main class
org.apache.spark.deploy.SparkSubmit
Do you know the reason?
Here are my Environment Variables:
J2REDIR=/usr/local/jdk1.8.0_201/jre
J2SDKDIR=/usr/local/jdk1.8.0_201
JAVA_HOME=/usr/local/jdk1.8.0_201
JRE_HOME=/usr/local/jdk1.8.0_201/jre/
I tried to run DependencyParserDemo.java in Stanford NLP parser.
I use Win7, jdk-10.0.1.
In command line:
Javac -cp stanford-parser.jar DependencyParserDemo.java
Works fine, DependencyParserDemo.class generated.
But when I run:
Java -cp stanford-parser.jar DependencyParserDemo
It shows:
Error: Could not find or load mian class DependencyParserDemo
Caused by: java.lang.ClassNotFoundException: DependencyParserDemo
Maybe the classpath setting is wrong?
You also need the location of the new class in your classpath.
Java -cp stanford-parser.jar;. DependencyParserDemo
I've a "spring boot app" application.
I'm executing my software with "gradle bootRun" and It works correctly for all developers.
To make the jar or war I've used maven and currently I'm using gradle.
With both methods to generated jar or war the execution of software from this artifacts isn't working propertly in one of hundreds of use cases.
The error is:
Error: Error while starting plugin CheckGebaeudeVersicherungsSystemIoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.IntersectsIoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.no_overlaps_2_1_6_IoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
Error: Error while starting plugin org.interlis2.validator.plugins.no_overlaps_2_2_0_IoxPlugin
Error: ch/interlis/iox_j/validator/InterlisFunction
Error: ch.interlis.iox_j.validator.InterlisFunction
This seems to be an error of a missing dependency.
This error is not because of something on the code. In eclipse with execution and debug, all is working properly!
What's the difference in execute between "gradle bootRun"/"mvn spring-boot:run" and the execution with java commad (traditional "java -jar jar/war")?