![]() ![]() ![]() Save that change and you should now see the specific error about disappear. This error would mean that you'd need to add the following line to the module MyApplication definition (where "MyApplication" will be a name based on your own project) found within your "module-info.java" file: requires java.xml (package is declared in module java.xml but module MyApplication does not read it)" Open the files which report errors and you'll probably find that some of the import statements at the top of your Java files now report an error such as this: Open the "module-info.java" file and then check your project for error markers (the angry red circles on the file icon, showing that the file contains a parsing or compilation error). You'll now find a new file "module-info.java" in the default package of your project (under "Source Packages"/""). In the dialog which appears, check the details and click the "Next" button and then confirm that you're happy to move entries out of the classpath and into the modulepath if offered. To fix this, right-click on your Java project in Apache Netbeans 10 and then select "New" and then "Java Module Info.". The existing Java project imported from Netbeans 8 will not have any knowledge of the module system introduced in Java 9, so initially you'll have no way to add a module requirement. ![]() In order to make the new package visible to your project, you'll need to configure your project so that it includes the module name "" (found at the top of the Javadoc page for the package). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |