i'm new at java language. I try to make my first program that refer from Youtube. but when i click "run" button, it won't work. I don't know why but all the build or the code is successful. Maybe i have some little some mistake there..(?) Can anyone help? enter image description here
Asked
Active
Viewed 2.5k times
3
-
Goto *superuser* ... This site is programming only. – Jonas Wilms Sep 12 '17 at 15:31
-
1@Jonasw Questions about tools specific to programming (such as an IDE) are on topic for [so]. – Bernhard Barker Sep 12 '17 at 15:36
-
I'm not sure we can really help you with only the information you provided. Can you provide us with (1) the exact steps you took to end up at this point, (2) the code you're trying to run, (3) a few screenshots showing the problem? – Bernhard Barker Sep 12 '17 at 15:38
2 Answers
7
This happened to me recently. Right-click the project, Properties, Build->Compiling, Un-check "Compile on Save." This happened after I opened another project when I already had one loaded. Not sure if that was the root cause. Unfortunately, when I toggled Compile on Save back on the project would not run or debug.

Sean Anderson
- 614
- 8
- 20
0
in left side panel there was project panel. inside this panel your project exist.select project and left click on it.it open menu. in menu there is run option will there.
but before running project just make sure that your class has been set as main class.
f6 is short cut to run project in netbeans.

Saurabh Sevak
- 1
- 1