| Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML | ||||
|
||||
|
|
||||
| Tutorial Categories: Ajax
| Articles
| JSP
| Bioinformatics
| Database
| Free
Books |
Hibernate
| J2EE
| J2ME
| Java
| JavaScript
| JDBC
| JMS
| Linux
| MS
Technology |
PHP
| RMI
| Web-Services
| Servlets
| Struts
| UML
|
|
Java project Java projects contain the resources needed for Java applications, including Java files and class files. Java projects are used to create Java packages. When you create a new Java project, the environment is set up for Java development. The Java project contains information about the type hierarchy and Java elements. This information is kept current as changes are made. A Java builder is associated with the project so the Java source is incrementally compiled, automatically, as it is updated. Web, EJB, and application client projects can also contain the resources needed for Java applications. The Java builder will incrementally compile the resources within these projects as the resources are updated. Java packages can be exported as JAR files and included in the build path for other project types, or in the class path for application servers. Each Java project maintains additional information about the type hierarchy and the references and declarations of Java elements. This information is constantly updated as the user changes the Java source code; it is not dependent on the builder. Java project organization You can organize Java projects in two different ways:
Depending on the file organization that you choose when creating the project, the class files are either stored along with the Java files in the project folder or, if you are using source folders, the class files are stored in a separate output folder. The builder will also copy non-Java resources (for example, GIF files) into the output folder. If you have non-Java resources that should not be copied into the output folder, for example a readme file, you can create an ordinary folder and store the resources there. Creating a Java project
Creating a new Java package To create new Java packages in the Package Explorer:
Note: the default (unnamed) package always exists and does not need to be created. Creating a new Java class Use the New Java Class wizard to create a new Java class. There are a number of ways to open this wizard:
or
or
or Click the Open The New Wizard button. In the left pane, select Java, and in the right pane, select Class.
![]() or Select the container where you want the new class to reside. Then, select from the menu bar File > New > Class.
![]() This wizard helps you to create a new Java class in a Java project:
![]() Create new methods
Visit http://java.boot.by for the updates. |
|
|
|||||||
|
|||||||
|
Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com. |
|||||||
|
Copyright © 2004. All rights reserved. |
|||||||