0% found this document useful (0 votes)
19 views17 pages

Final Steps (Assi-1,2,3,4,5)

The document provides steps for creating a multithreading program assignment in NetBeans. It instructs the user to create a project folder, start a new Java project in NetBeans, create a package for the assignment, and then create Java classes for each program by right clicking on the package and selecting "New" and "Java Class". The user can then write the multithreading code in each class file.

Uploaded by

etg23rh1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views17 pages

Final Steps (Assi-1,2,3,4,5)

The document provides steps for creating a multithreading program assignment in NetBeans. It instructs the user to create a project folder, start a new Java project in NetBeans, create a package for the assignment, and then create Java classes for each program by right clicking on the package and selecting "New" and "Java Class". The user can then write the multithreading code in each class file.

Uploaded by

etg23rh1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

Steps for How to write & Save Simple Java Program of

Assignment -1 in Net Beans


1. Create a TYBCA folder in your drive.
2. Open NetBeans Click on fileClick on New ProjectSelect JavaSelect Java
Application
3. Click on nextGiven Project Name as Assignment-1Then below screen display on
screen.

3. 1. Right click on source package


2. Create new java package

Then below screen display on screen.


3. Given package name like Assi_1.
4.Ok
4. Right Click on Assi_1 package folderclick on newclick on java class.
5. Then below screen display on screenGiven class name as a P1 and click on finish.

6. If u want to write P2, P3 program then u just repeat step 4 & 5.


Steps for creating and checking connectivity with

NetBeans & MySQL Using JDBC for Assignment-2 Program in Net Beans

1. Open Net beans IDE (8.0).


2. 1. Click on File
2. New
3. New Project
4. Java
5. Java application
6. Given name of project Like Assignment-2
7. Set path for your program(Project)
8. Uncheck main class radio button
9. ok
3. 1. Right click on source package
2. Create new java package
3. Given package name Like Assi_2
4. ok
4. 1. Right click on Assi_2 package
2. Click on new
3. Select java class.
4. Given name of class Like P1.
5. 1. Right click on library
2. Select your MySQL jdbc driver library
3. Click on add on library
(MySQL connector jar file is display under library)
6. 1. Start Xamp server(Control panel)

2. Start Apache & MySQL service


3. Click on admin button of MySQL for creating database.
4. Click on database and save it.

7 Then write import java.sql.*; statement below our main package in java class.
Then Right click on java file and run your program.
Write the below mention coding in .java file as per image

Output:-
Run:
Driver is loaded
Connection is established
BUILD SUCCESSFUL (total time: 3 seconds)
Steps for How to Create & Save Servlet Program of
Assignment -3 in Net Beans
1. 1. Start Xamp server(Control panel)

2. Start Apache & MySQL service


1. Open Net beans IDE (8.0.2).
2. 1. Check Glassfish Server is installing or not?
Click on WindowServicesClick on server optionand verify that glassfish
server is display under server services or Not.
2. If Glassfish server is already installed in your computer but not display under
server services then right click on server and select ADD Server option.
3. If Glassfish Server is not installed then download Glassfish Server 4.0.
2. Create TYBCA Folder in Your Drive.
Open Net Beans…..
1. Click on File
2. New
3. New Project
4. Java Web
5.Web application
6. Given name of project Like Assignment-3
7. Select Your server as per below image.

8. Click on Next Finish.


3. 1. Right click on source package
2. Create new java package
3. Given package name Like Assi_3
4. ok
4. 1. Right click on Assi_3 package
2. Click on new
3. Select Servlet class.
4. Given name of Servlet.
5. Click on Next.
6. Tick on Add information to deployment descriptor (web.xml) then u see below
screen in your net beans. (Web.xml file is for servlet mapping).
8. Click On Finish…
5. Then u see below mention screen in your net beans ….then we run html file as per
below selection.

6. Output Display on Browser….


7. Finally we write designing code in .html file and writes servlet code in servlet.java
class as per our program requirement.
Steps for How to Create & Save JSP Program of
Assignment -4 in Net Beans
1 Open Net beans IDE (8.0.2).
2 1. Check Glassfish Server is installing or not?
Click on WindowServicesClick on server optionand verify that glassfish server is
display under server services or Not.
2. If Glassfish server is already installed in your computer but not display under server
services then right click on server and select ADD Server option.
3. If Glassfish Server is not installed then download Glassfish Server 4.0.
3 Create TYBCA Folder in Your Drive.
Open Net beans IDE (8.0.2).
1. Click on File
2. New
3. New Project
4. Java
5. Java Web application
6. Given name of project Like Assignment-4
7. Set path for your program(Project)
8. Uncheck main class radio button
9. ok
4. Right Click on Web-Pages folder & Click on new then select JSP Page..
5. Given name of JSP file page as per your requirement and click on finish..

6. Then Below screen display on screen..

Right click on JSP file and run it…


Now u can create and write any JSP program as per your requirement.
7. Below screen display on browser.
Steps for How to Create & Save Multithreading Program of
Assignment -5 in Net Beans
1. Create a TYBCA folder in your drive.
2. Open NetBeans Click on fileClick on New ProjectSelect JavaSelect Java
Application

3. Click on nextGiven Project Name as an Assignment-5Then below screen


display on screen.
4. 1. Right click on source package
2. Create new java package

Then below screen display on screen.

3. Given package name like Assi_5. 4.Ok


4.Ok
5. Right Click on Assi_5 package folderclick on newclick on java class.
6. Then below screen display on screenGiven class name as a P1 and click on finish.

7. If u want to write P2, P3, P4 multithreading program then u just repeat step 5 & 6.

****Thank U****

You might also like