• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing a program in an ear file

 
Barry Brashear
Ranch Hand
Posts: 303
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an ear file that contains a jar which contains the entry point program. Call it myProgram.class. How can I set up a bat file to execute
myProgram?
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EAR files (Enterprise ARchive) normally contain Java EE applications that you need to deploy on a Java EE application server. Do you have a JAR file inside your EAR file that contains a standalone Java application?

EAR files are really just JAR files. So you can use the JAR utility to look inside them and extract files from them.

You'll need to extract the JAR file from the EAR, and run the application using the extracted JAR file. You can't directly run an application that's inside a JAR file inside an EAR file.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic