Java SE 6 Features

Sang Shin, sang.shin@sun.com, Sun Microsystems, www.javapassion.com



This lab has a set of sample Java SE 6 applications you can play around.  They are provided as "Ready-to-build-and run" NetBeans project.

Expected duration: 60 minutes (excluding homework)




Software Needed

Before you begin, you need to install the following software on your computer. 


OS platforms you can use

Change Log


Lab Exercises


Exercise 1: Build and run "HelloWorld" sample application

In this exercise, you are going to build and run "ready-to-build" sample application. 


(1.1) Open, build, and run "HelloWorld" sample JSP application

0. Start NetBeans IDE. 
1. Open HelloWorld NetBeans project. 

2. Build and run HelloWorld project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "HelloWorld" sample application.

                                                                                                                        return to the top




Exercise 2: Build and run "InvokeScriptFile" sample application

In this exercise, you are going to build and run "ready-to-build" Struts sample application.


(2.1) Open, build, and run "InvokeScriptFile" sample JSP application

0. Start NetBeans IDE. 
1. Open InvokeScriptFile NetBeans project. 

2. Build and run InvokeScriptFile project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "InvokeScriptFile" sample application.

                                                                                                                        return to the top


Exercise 3: Build and run "CallMethodByInvocable" sample application

In this exercise, you are going to build and run "ready-to-build"  sample application.  You will then build the same application from scratch.


(3.1) Open, build, and run "CallMethodByInvocable" sample JSP application

0. Start NetBeans IDE. 
1. Open CallMethodByInvocable NetBeans project. 

2. Build and run CallMethodByInvocable project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "CallMethodByInocable" sample application.

                                                                                                                        return to the top

Exercise 4: Build and run "GetListOfScriptEngines" sample application

In this exercise, you are going to build and run "ready-to-build"  sample application.  You will then build the same application from scratch.


(4.1) Open, build, and run "GetListOfScriptEngines" sample JSP application

0. Start NetBeans IDE. 
1. Open GetListOfScriptEngines NetBeans project. 

2. Build and run GetListOfScriptEngines project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "GetListOfScriptEngines" sample application.

                                                                                                                        return to the top


Exercise 5: Build and run "SearchScriptEngineviaFactory" sample application

In this exercise, you are going to build and run "ready-to-build"  sample application.  You will then build the same application from scratch.


(5.1) Open, build, and run "SearchScriptEngineviaFactory" sample JSP application

0. Start NetBeans IDE. 
1. Open SearchScriptEngineviaFactory NetBeans project. 

2. Build and run SearchScriptEngineviaFactory project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "SearchScriptEngineviaFactory" sample application.

                                                                                                                        return to the top


Exercise 6: Build and run "AccessJavaObjectsFromScript" sample application

In this exercise, you are going to build and run "ready-to-build"  sample application.  You will then build the same application from scratch.


(5.1) Open, build, and run "AccessJavaObjectsFromScript" sample JSP application

0. Start NetBeans IDE. 
1. Open AccessJavaObjectsFromScript NetBeans project. 

2. Build and run AccessJavaObjectsFromScript project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "AccessJavaObjectsFromScript" sample application.

                                                                                                                        return to the top


Exercise 7: Build and run "ImportJavaPackage" sample application

In this exercise, you are going to build and run "ready-to-build"  sample application.  You will then build the same application from scratch.


(5.1) Open, build, and run "ImportJavaPackage" sample JSP application

0. Start NetBeans IDE. 
1. Open ImportJavaPackage NetBeans project. 

2. Build and run ImportJavaPackage project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "ImportJavaPackage" sample application.

                                                                                                                        return to the top

Exercise 8: Build and run "ScriptPad" sample application

In this exercise, you are going to build and run "ready-to-build"  sample application.  You will then build the same application from scratch.


(5.1) Open, build, and run "ScriptPad" sample JSP application

0. Start NetBeans IDE. 
1. Open ScriptPad NetBeans project. 

2. Build and run ScriptPad project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "ScriptPad" sample application.

                                                                                                                        return to the top

Exercise 9: Build and run "Caculator" sample application

In this exercise, you are going to build and run "ready-to-build"  sample application.  You will then build the same application from scratch.


(5.1) Open, build, and run "Calculator" sample JSP application

0. Start NetBeans IDE. 
1. Open Calculator NetBeans project. 

2. Build and run Calculator project. 

Summary

In this exercise,  you have built and run a ready-to-build-and-run "Calculator" sample application.

                                                                                                                        return to the top

Homework Exercise (for people who are taking Sang Shin's "Java Programming online course")


<to be provided>

                                                                                                                     return to the top