VisualBuilder
  Home > Java > Tutorials > Simple programming - Java Tutorial
Tell a friend
Link to us
Total Members
      Members: 84661
     
Sitemap Forum Chat
Home
Java Tutorial Home
1 . What is Java?
2 . Benefits of using Java
3 . What do you need for Java?
4 . Setting up Java
5 . Simple programming
6 . How the HelloWorld java application works?
7 . Simple Programming part 2 - HelloWorld2
8 . Object Oriented Basics
9 . Designing Java applications using Object Orientation
 
 
Java Home
Java Members (27605)
Java Member Articles ( 40 )
Java Discussion (273)
Java Q & A ( 125 )
- Java Ask Question
- Java Questions
- Java Unanswered Questions
Java Resources
Java Source Code (1095)
Java Articles (550)
Java Blogs (116)
Java Jobs (793)
Java Components (84)
Java Books (372)
Java Websites (126)
Java News (103)
 
GROUPS
.NET
ASP.NET
.NET
C#
ASP
Visual Basic
Java
Java
JSP
EJB
Other
Delphi
C++
Ajax
UML
JavaScript
PHP
Web Design
Web Hosting
SQL Server
Oracle
Project Management
More Groups

 
LEARNING CENTER
TUTORIALS
.NET
.NET Tutorial
ASP Tutorial
ASP.NET Database Tutorial
ASP.Net Security,Internationalisation And Deployment
ASP.NET Tutorial
C# Tutorial
Web Development
Flex Tutorial
HTML Tutorial
Learn AJAX Tutorial
PHP Tutorial
Software Development
Database Tutorial
SQL Tutorial
UML Tutorial
Java
Ant Tutorial
EJB 3 Tutorial
Hibernate Tutorial
Java Tutorial
Java Web Component Tutorial
Java XML Tutorial
JDBC Tutorial
JDK1.5 Tutorial
JSF Tutorial
JSP And J2EE Design Tutorial
JSP Tutorial
Spring Tutorial
Struts Tutorial

RESOURCES
Q & A (451 )
Source Code (3275 )
Articles (359 )
Books (372 )
Components (1596 )
News (892 )
Websites (1207 )

SUBMISSIONS
Submit Article
Submit Website
Submit News
Submit Source Code
Submit Component

COMMUNITY
Members Directory
Discussion Forum
Chat

SITE
About Us
Sitemap
Search
Contact Us
Link To Us
Feedback
Tell a Friend
Partners
Advertise

Java Tutorial
 Simple programming
  << Prev: Setting up Java Next: How the HelloWorld java application works? >>


Now we will use Notepad to write a simple application,HelloWorld and execute it
• Create a text file with content as below:


 "Hello


• Save file with same name of the class and .java extension. In this case,file name is HelloWorld.java
• Compile the source code


Open the Command console window:
1. Press Start button
2. click Run…
3. Type cmd and press OK. This will display a screen similar to the one below
 


"command


Jump to the folder storing the source code file


 "visualbuilder


Use the javac command with input is the source code file name to compile


 "javac


This output console above shows that no error occurred during compiling code. After compiling code,you also can see into the source folder for the new file created with name as HelloWorld.class


• Run the compiled code,type the command java with input is name of the class file. You will see result as below,the greet Hello Java World is printed out:


"print




  << Prev: Setting up Java Next: How the HelloWorld java application works? >>
Java Tutorial Home
Give feedback and win a prize.

 
   Printer Friendly
   Email to a friend
   Add to my Favourites    
  Download PDF version
   Report Bad Submissions
   Submit Feedback
 
  Delicious   Digg   Technorati   Blink   Furl   Reddit   Newsvine   Google Click each image to add
this page to each site.
 
 
Welcome Guest Signup
MEMBER'S PANEL
EMAIL
PASSWORD
Forgot your password?
New User? Click Here!
 
Resend Activation Email!
 
SEARCH
 
 
 
ADVERTISEMENT
Partner List
Code Project
ASP Alliance
More
 
 
 
 

Home | Login | About Us | Contact Us | Privacy Policy | Advertising