• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing a class in a Jar

 
Srihari Injeti
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to execute a compiled class which is part of a jar from command line. The class has a main method.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create a manifest and get it into the jar also. The manifest is what gives the JVM a clue as to which class to look in to find the main method.
 
Dirk Schreckmann
Sheriff
Posts: 7023
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic