java - The magic behind the executable jar? -


Jar is a convenient way to use Java, because each class can be included in a jar.

I use the NLL as follows, and it uses the Jar -jar option.

 Java-square $ ANTLRDIR / ANTLER-3.2.JANTLR_KODG 

And, this is the command that calls the closure. Instead of calling Clojure.jar, use the -jar option - this is in CP, and calls some 'function'.

 java-cp $ CLOJURE_JAR: $ CLASSPATH Closer.lang script CLOJURE_CODE.clj 

question

  • What is the magic behind this method? What is 'clojure.lang.Script'?
  • Can Entry be called in the same way? If so, what is the name that should be used (like some clojure.lang.Script)?
  • About the jar file with other languages: Closer / Scala? How should I know the name that should be called?
  • What is the difference between two methods? Pros and Cons?

• What is the magic behind this method? What is 'clojure.lang.Script'?

clojure.lang.Script is the class with the main method that is running jar executable.

• Can Entry be called with it in the same way? If so, what is the name that should be used (like some clojure.lang.Script)?

Entryr jar can be said in the same way you will know the name of the main category (which is in the MANIFEST.MF file in Marie.)

• done with other languages About Jar File: Closer / Scala? How should I be given the name that should be named?

I do not know ... maybe depending on language.

• What is the difference between two methods? Pros and Cons?

Executable jar is very easy to launch users (especially in Windows) just double click on the jar file.

• In this post, I was told that -If all ignore CP and $ CLASSPATH. Why is it like this? Is there any reason for this?

There is no doubt that the Sun's people used to do this for security reasons.

• I was also told why CP option is $ CLASSPATH why? Is there any good reason for this?

-Cup option overrides $ CLASSPATH This is the full purpose of this option.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -