PDA

View Full Version : jar and jad


Mihai
07-29-2008, 12:56 AM
i know that i can use winrar to "decompile" and "zip" back the jar and i know that the jad is kind of description of the content of jad ( info file ? ) , anyway, my question is after i recompile the jar and set the size of jar in jad and upload it to my webserver how come it is saving as a zip from there to the phone ? Is ther a trick ? do i miss something ?

Thank you

ess
07-29-2008, 03:41 PM
JAR files are almost identical to ZIP files...but you should always use java -jar command to create jar files.

Here is a tutorial on how to create JAR files
http://java.sun.com/docs/books/tutorial/deployment/jar/build.html

As for creating JAD files, I would suggest that you use JADMaker available at
http://www.download.com/JADMaker/3000-2417_4-10725641.html

Cheers
~E

Mihai
07-29-2008, 11:59 PM
my jad is sending me to my jar file in a zip format , is this because in my httpd file i did not put :
AddType text/vnd.sun.j2me.app-descriptor .jad

AddType application/java-archive .jar
? or because it is not compiled good after i open it in winrar explorer without extracting?

boy
08-15-2008, 05:05 AM
hello everyone ! i'm new commer :thumbsup: