What is the difference between a Java compile time library and a runtime library?

What is the use of professionals?

I'm actually in NetBeans' Project Properties > java application library We have two tabs, one for compile time library and run-time library. It seems that we can add libraries independently of each other

Solution

The UI and terminology of the libraries Properties dialog box are very confusing

The help button on the dialog box will provide you with some considerable information

The compile - time library list may be a subset of the run - time library list

Considering this situation

You can import classes from the source code library "widgets. Jar" widgets. The class file in jar is from the jar file 'XML Jar 'reference symbol If your source code is not from XML Jar import class, you can define the compile time library list to contain only widgets jar.

When you try to run a project, you may need to include XML. XML in the list of runtime libraries Jar to prevent classnotfoundexception

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>