I’ve always thought you need execute permissions set in the jars that are in the classpath of your java program. But I found out today that in fact all you need is read permissions. I was a bit surprised at first glance, but I think it makes sense since the JVM only needs to read class files (jvm bytecode) and actually interpret/compile that into OS runnable bytecode. Am I on the right track?
Share
Because the jars aren’t being executed.
the java executable (or javaw) is what needs the execute bit. it is simply reading other files (.jar or .class).