Netbeans 7 - problem in output window
Good day everyone!
My problem in Netbeans 7 was when I run my java program it will not display an output...Here's my simple source code:
public class DisplayingText
{
public static void main(String[] args)
{
System.out.println("Is this s a bug...?");
System.out.println("Please fix it");
}
}
By the way I can run the program if i will change the location of the Java Project to C:\Program Files\Java, BUT HOW WILL I RUN MY JAVA PROJECT IN MY "DOCUMENTS"?
Questions:
1. Do you think I need to configure the Netbeans 7 to run my java program in the NetbeansProjects of Documents?
NetbeansProjects locaction: C:\Users\Gesan G Sarupan\Documents\ NetbeansProjects
2. Do you think an antivirus and firewall could also be a factor that it will not display an output? Anent to this, how about my MS-DOS version?
Notes: *I already set the path in Environment Variables and watched a lot of tutorials in Youtube how to make and compile a java project…
*Antivirus: COMODO
*OS: Windows 7
*System type: 32 bit
*MS-DOS: Version 6.1.7600
Please e-mail me @ gesan.gomez.sarupan@gmail.com or post your reply. I’ll be waiting…
Thanks in advance for the help.
Peace.
Quest for an answer why my program will not display an output in Netbeans 7
hi pkjana and Tolls.
*To Tolls:
1. When i run the program the messages in the output window were:
run:
BUILD SUCCESSFUL (total time: 0 seconds)
*To pkjana:
I already tried that procedures but still it will not display an output.
By d way here are my steps in making a Java Project using Netbeans 7...Please comment..Tnx
1. Click File
2.Select "New Project"
3.Under Categories, I selected "Java" then chose "Java Application" under Projects.
4.Click the "Next" button.
5.I activated all the check boxes.
Note: by d way i also tried not to activate "Create Main Class" and "Set as Main Project" then just type the main method which is "public static void main(String[] args)"...
6.Then click the "Finish" button.
7. Create a package under "Source Packages" of my project
8. Right click on the package and add a java class
*Note: by d way i also tried to create "Java Class" and the "Java Main Class" under default package of my project...
9. write your code
public class DisplayingText
{
public static void main(String[] args)
{
System.out.println("New to Netbeans 7");
System.out.println("Is this s a bug...?");
System.out.println("By d way i also tried reinstalling netbeans and jdk");
System.out.println("Please fix it or ain't really understand the error...whatsoever");
}
}
10. right click on the file and click on Run
*By the way I also tried to "Clean and Build" my Project
:(whew): same error...no display in Output Window
For the moment, i just saved all my Java Projects to C:\Program Files\Java because it will not display an output if i will save my Java Project to C:\Users\Gesan G Sarupan\Documents\ NetbeansProjects
I'm so grateful for the reply...I'm still searching for an answer why it will not display an output...
Thanks and Peace.