Skip to Main Content

Java Programming

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 add dll file in a Jar to create executable file

807607Oct 30 2006 — edited Oct 30 2006
Hi All!

I have one Java file which use one Jar file & three dll file.

I create jar file as described in java tutorial
http://java.sun.com/docs/books/tutorial/deployment/jar/appman.html

1) I created Manifiest.txt by writting :
Class-Path: C:\Flasher\jflashtrial\JFlash.jar
Main-Class: Flaher2

2) I create jar file by:
jar cfm MyJar.jar Manifest.txt *.class
It create MyJar.jar successfully.

After that I used Jar2Exe Wizard to create Myjar.exe

It also create MyJar.exe file, but when I tried to open It , It did open & also didn't give any error message too.

Before this I created one exe file by the same way except; that file does not using any dll or jar file so for that I create my jar file by simply without using Manifest.txt

I wrote:
jar cf MyJar.jar *.class

After that I creat it's exe bu using Jar2Exe, It create its exe file & it's work well.

So for my next try with one jar file & three dll file, what is wrong ?
I saved my exe jar file & dll filea file in a same folder. But still have a problem .

What I did wrong/skip in creating Jar file.

Your any help regarding this topic would be appreciated

Kirti
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 27 2006
Added on Oct 30 2006
1 comment
2,315 views