Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (13.1k points)
Can anyone help me how I can able to run the jar file in Java?

1 Answer

0 votes
by (26.7k points)

Basically, before running the file first, make sure that your main class is available or not in the manifest.mf file. Then, you can use the below command:

java -jar filename.jar

I hope this will help.

Want to become a Java Expert? Join Java Training now!!

Want to know more about Java? Watch this video on Java Tutorial for Beginners | Java Tutorial:

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 11, 2019 in Java by Ritik (3.5k points)
0 votes
1 answer
asked Oct 17, 2019 in Java by Shubham (3.9k points)
0 votes
1 answer
+3 votes
1 answer

Browse Categories

...