From the course: Oracle Java Foundations

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

NetBeans intro: Demo

NetBeans intro: Demo - Java Tutorial

From the course: Oracle Java Foundations

NetBeans intro: Demo

(thoughtful music) - [Joe] Exercise 2: Creating a new project and Java class. In this exercise, we'll create a new Java application using NetBeans using the Java Application wizard under Java with Ant category. We'll name it ShopApp, and we'll create a main class called duke.choice.ShopApp. We'll print "Welcome to Duke Choice Shop!" message from the main method and run the application. Looking at NetBeans, once we have NetBean started, we can create a new project by going to the icon for a new project or we can use the File menu. We're going to create a new project, will be Java with Ant Java application, and we'll click Next. And we say we're going to call this ShopApp. Notice I have a couple already, so I'm going to call this ShopApp Exercise to distinguish it. The other ones are solutions I have and the other demos that I'll be doing. We also want a ShopApp application with a main. There we go. Click Finish, and it creates the basic project for us. There it is. So it gives us a…

Contents