I've made a new package in the same project, and I can't seem to run the class in the new package. When I click on Run while in the new class, it doesn't run. Any ideas, on how to run this new class? I'm new to Netbeans and Java. Files look like this:
Does the NewClass
have main
metod? If yes you have 2 options.
Propperties
. And then in Run
node select main class as shown in image blow. 2.) You can run specific file from ide by rigth clickin on file and select run file
as shown in image below.
看起来您的第二个软件包不被视为构建的源,您需要更改项目设置,以便也构建第二个软件包
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.