Results 1 to 9 of 9
Thread: .exe to .jar?
- 06-01-2011, 01:30 PM #1
Member
- Join Date
- Jun 2011
- Posts
- 4
- Rep Power
- 0
.exe to .jar?
Hi!
I'm pretty sure this is in the wrong directory, but then again, I'm completely new to Java.
There are many ways to convert .jar to .exe, but for some reason I cannot find how to do it the other way around...
What I'm trying to do is convert .swf to .jar. I already found a way to convert .swf to .exe but now I'm stuck...
Thanks in advance!
- 06-01-2011, 01:51 PM #2
What do you expect to be in the jar file and how do you want to use it?
You can add ANY file to a jar file, .exe included. But then what?
- 06-01-2011, 01:55 PM #3
Member
- Join Date
- Jun 2011
- Posts
- 4
- Rep Power
- 0
Well, basically, I want the file to be a MIDlet so my phone (an HTC) can run it.
- 06-01-2011, 02:01 PM #4
No idea what a phone will run. Its possible, but not likely.
- 06-01-2011, 02:17 PM #5
Member
- Join Date
- Jun 2011
- Posts
- 4
- Rep Power
- 0
Well, there's a .jar file on my phone that it can perfectly run, so I thought I might as well try...
- 06-01-2011, 02:21 PM #6
It all depends what is in the jar file. Any file can be placed in a jar file. What do you think would happen if you put a doc file or an html file in a jar file and put it on your phone?
- 06-01-2011, 02:41 PM #7
Member
- Join Date
- Jun 2011
- Posts
- 4
- Rep Power
- 0
The .jar file (which installs the MIDlet onto my phone when ran) contains a META-INF folder and a bunch of class files.
- 06-01-2011, 03:35 PM #8
That sounds like what an executable jar file would contain. The JVM reads the manifest file in the META-INF folder and uses that info to call one of the classes.
- 06-01-2011, 03:39 PM #9
OP, In case if you are interested, have a look : Using JAR Files: The Basics
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks