Answer the question
In order to leave comments, you need to log in
Why does the 'e' flag and manifest with the 'Main-Class' attribute cannot be specified together! error occur?
hello.
Probably I will ask a simple question, BUT still:
folder structure
-src
- Prometheus
First.class
Manifest.txt
wrote sh
javac Prometheus/First.java
java -cp . Prometheus.First
#jar cvfm first.jar Manifest.txt -C Prometheus/ .
jar cfme First.jar Manifest.txt Prometheus.First Prometheus/First.class
java -jar First.jar
@worker01:~/IntelliJIDEAProjects/prometheus_example_node_exporter/src$ ./compile.sh
Hello World New!!!
'e' flag and manifest with the 'Main-Class' attribute cannot be specified
together!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question