Windows applications make a distinction between libraries (DLLs) and applications (EXEs). Does Java make an equivalent distinction?
Windows applications make a distinction between libraries (DLLs) and applications (EXEs). Does Java make
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Kind of.
Most Java programs are stored in a .jar file.
If the .jar has a
mainmethod specified, it can be called similarly to a .exe where it starts the program execution. You can do this withjava -jar program.jar.But any .jar file can be loaded from another one and the code within it loaded, similarly to a .dll. This can be done even if the ‘library’ jar has a
mainmethod, it just won’t be called automatically.