make jar file
-
I want to write a c++ program to convert a j2me source folder to a jar file. How should i do?is jar file is same as a zip file? Thanks for any answer!
-
I want to write a c++ program to convert a j2me source folder to a jar file. How should i do?is jar file is same as a zip file? Thanks for any answer!
cqwangdonghua wrote:
I want to write a c++ program to convert a j2me source folder to a jar file. How should i do?
jar is not only a file format but also a tool that produces jar files: http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jar.html[^]
cqwangdonghua wrote:
is jar file is same as a zip file?
Basically, yes.
-
cqwangdonghua wrote:
I want to write a c++ program to convert a j2me source folder to a jar file. How should i do?
jar is not only a file format but also a tool that produces jar files: http://java.sun.com/j2se/1.3/docs/tooldocs/win32/jar.html[^]
cqwangdonghua wrote:
is jar file is same as a zip file?
Basically, yes.
Thanks!:) I know the jar is a tool to create jar format file.But I don't want use it.Since jar file is same as zip format file,so I can zip a src folder and change the filename to create a jar file.But when use I winzip and winrar to do this work today,it do not work. Is jar file not same as zip?what's wrong with it?
-
Thanks!:) I know the jar is a tool to create jar format file.But I don't want use it.Since jar file is same as zip format file,so I can zip a src folder and change the filename to create a jar file.But when use I winzip and winrar to do this work today,it do not work. Is jar file not same as zip?what's wrong with it?
-
Thanks!:) I know the jar is a tool to create jar format file.But I don't want use it.Since jar file is same as zip format file,so I can zip a src folder and change the filename to create a jar file.But when use I winzip and winrar to do this work today,it do not work. Is jar file not same as zip?what's wrong with it?
cqwangdonghua wrote:
Since jar file is same as zip format file,so I can zip a src folder and change the filename to create a jar file
No, JAR is a compression format, which is indeed similar in that Zip is a compression format; JAR uses a different algorithm for compressing the files. You will either need to implement the JAR compression algorithm in your application or locate a library to do so. Check Suns website, as memory serves they have a lib you can use from C++. I believe the original respondent to your question provided you a link to Suns website. Good luck
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley: