Jars

Is it possible to extract the classes from a jar file?
[61 byte] By [java4life87a] at [2007-10-3 3:30:17]
# 1
Yes, it is.
DrClapa at 2007-7-14 21:24:10 > top of Java-index,Java Essentials,Java Programming...
# 2
Is there anyway to make it not possible to extract the classes?
java4life87a at 2007-7-14 21:24:10 > top of Java-index,Java Essentials,Java Programming...
# 3
What would be the point of that? It would make the jar file useless.
DrClapa at 2007-7-14 21:24:10 > top of Java-index,Java Essentials,Java Programming...
# 4
Suppose you gave a program of you to somebody, you wanted them to run it, but you wouldn't want them to see the classes in the jar. You know what I mean?... Just Curious ...
java4life87a at 2007-7-14 21:24:10 > top of Java-index,Java Essentials,Java Programming...
# 5

I thought that's what you meant. Well, if one computer program (the Java classloader) can open the jar file (to execute the classes in it) then another computer program can also open it.

And since the jar file format is specified to be equivalent to the zip format, and there are plenty of programs available that are able to open zip files... draw your own conclusion.

DrClapa at 2007-7-14 21:24:10 > top of Java-index,Java Essentials,Java Programming...