0

I wouldlike execute my javaproject with "java crypter-v1.jar" but i have "Error: Could not find or load main class Crypter-V1.jar"enter image description here

Wipsy
  • 1

1 Answers1

0

Add main class to MANIFEST.MF (replace with your package):

MANIFEST.MF

Manifest-Version: 1.0
Main-Class: *package*.ClassWithMain

Then run

jar cfm crypter-v1.jar MANIFEST.MF *package*/

Then run it as

java -jar crypter-v1.jar
asbrodova
  • 36
  • 9