Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to deploy an application in an "execute" file?

mónicaAug 6 2010 — edited Aug 6 2010
Hello,

I have developed an application in Java from JDeveloper 10g (10.1.3.5.0).
In this application I have:
- Classes in java.
- Connection to DB and offline database sources.
- Proxy Web Service. It is a Web Service's consumer.

I would like to deploy this application in an "execute" file. I don't know if it would be a .jar, .ear or .war... Which type of file I have to generate? And how can I generate from JDeveloper? There any special considerations to deploy it?

I have tried to deploy in a *.JAR* file with the following steps:

Highlight the project, right click->New
General->Deployment Profiles: JAR File - Simple Archive
Save as TestApplication.deploy
Fill in dialog
JAR Options –> Main class name: net.casetech.otsig.jdevintro.TestApplication
Right click .deploy file->Deploy to JAR file
Run it: java -jar TestApplication.jar

In a *.WAR* and *.EAR* file:
Very similar to previous steps. But I don't know how con I execute these types of files.

But it doen't run the application. For this reason, I think that maybe it isn't a correct "execution" file...

Thank you and regards.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2010
Added on Aug 6 2010
2 comments
907 views