Open .jar

Monkey Forums/Monkey Programming/Open .jar

wiliamtn(Posted 2012) [#1]
Hi friends

is it possible to program a app that open a .jar file?


Kauffy(Posted 2012) [#2]
Since nobody else jumped on this-- I ~think~ a .jar file is just a .zip file with a different extension. If you can find a way to open a .zip, you can open a .jar-- try it and see anyway, or wait for someone more certain to respond. :)


wiliamtn(Posted 2012) [#3]
thanks for answer


Halfdan(Posted 2012) [#4]
Yes you can just open .jar's with a zip program to see its contents, or run it with "java -jar <file.jar>".

Do you want to import the jar in your monkey project? It might be possible for Android target


Samah(Posted 2012) [#5]
@minke: ...or run it with "java -jar <file.jar>".

Only if the Jar's Manifest has a "Main-Class:" property.