File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes how to run code in netbeans Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "how to run code in netbeans" Watch "how to run code in netbeans" New topic

how to run code in netbeans

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 1000
Jeanne Boyarsky wrote:System.out.println prints to system out which is a console or log file somewhere on your server. It is not the browser.

Also note that it is traditional for class names to begin with an uppercase letter in Java.

Thanks for your guidance, again here is a java code to retrieve data from database:

i want to use this code using netbeans, i add a class file into my project, and than how can i call that class file??
in simple words: how can i run this code using netbeans??

Thanks in advance.
Peter Johnson

Joined: May 14, 2008
Posts: 5838

You should be able to right-click the .java source file and select Run File.

JBoss In Action
Don't get me started about those stupid light bulbs.
subject: how to run code in netbeans