• Post Reply Bookmark Topic Watch Topic
  • New Topic

Where is Main program when running a jar file?  RSS feed

 
Siegfried Heintze
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I downloaded the source code from http://sourceforge.net/projects/jiu/ and found this little bat file called run-jiuawt.bat containing a single line:



I did a and found a a dozen main programs!

Which main program am I running when I run run-jiuawt.bat?

Thanks,
Siegfried

 
Stephan van Hulst
Saloon Keeper
Posts: 7969
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Open MANIFEST.MF file in the META-INF folder in a text editor. The Main-class entry should let you know.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16057
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Stephan says, there is a META-INF/MANIFEST.MF file inside the JAR file that specifies what the main class is.

For more details, see: Packaging Programs in JAR Files in The Java Tutorials.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!