install a java application

时间:2018-03-22 23:41:32

标签: java jar

I have small understanding problem. Why do I ever need to INSTALL (under Windows) a java desktop application (aka Intellij), if I can make a fully self-independent JAR? What are the use cases when it makes sense?

I am not expecting a full-blown answer here, I really just would like some pointers, because my Google-fu is not helping me, not sure how to formulate a correct query

EDIT I know how to run Intellij and use Java... Just asking about the point of ""installation""

2 个答案:

答案 0 :(得分:0)

To run a java application from jar file, you only need to install Java Runtime Environment. Nothing nearly as heavy as IntelliJ. You would install an IDE such as IntelliJ to develop said jar file.

Edit

The jar that you develop cannot run on any platform without a JVM (Java Virtual Machine). So if you don't install the JRE, you can't run your jar file.

答案 1 :(得分:-1)

Just like in many cases, installation is nothing but a wizard to help you to have your files in the right place. I bet a lot of software just do that too. Many people don't wanna handle individual files to run their applications (sometimes you move or delete them without notice)