DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Coding
  3. Java
  4. Getting Started with JCODER

Getting Started with JCODER

kevin cheung user avatar by
kevin cheung
·
Aug. 25, 08 · Interview
Like (0)
Save
Tweet
Share
19.22K Views

Join the DZone community and get the full member experience.

Join For Free

Today Java is used widely across the internet but it is also an invisible force behind many of the applications and devises that power our day-to-day lives. Mobile phones, handheld devises, games and navigation systems can all be Java driven.

To start developing Java applications, people tend to use Eclipse. However, for beginners, it would be easier for them to learn Java using a Lightweight Java IDE. This article will teach users to setup Java development environment and develop a basic program using JCODER.

In this tutorial, you will learn how to -

  • Download and install Java Development Kit (JDK) on Windows platform

  • Set up Java programming environment

  • How to type, compile and run a HelloWorld program in Java by using command prompt

  • Download and install JCODER

  • How to type, compile and run a HelloWorld program in Java by using JCODER

 


Download JDK

1. Go to http://java.sun.com/javase/downloads
2. Locate JDK 6 Update 6 and click the Download button next to it. This includes the Java Runtime Environment (JRE) and command-line development tools.
3. Select Windows for Platform. Check the box I agree to ... and click the button Continue.
4. Click directly on the file name under either Windows Online Installation or Windows Offline Installation to download with your browser.
5. Click Save to save it to disk e.g. under C:\download\.
6. After download is completed, locate the file in your directory.


Install JDK

1. Double-click on the downloaded file to start the installation.
2. Read the license agreement and then click Accept.
3. Note that the default installation path for JDK is C:\Program Files\Java\jdk1.6.0_06\ and that for JRE is C:\Program Files\Java\jre1.6.0_06\. Click Next to proceed.
4. The installation will take several minutes. Click Finish after the installation is done.


Set up Java Programming Environment

1. In Windows, go to Control Panel and double-click System.

2. Select Advanced tab and click Environment Variables.

3. Under System variables box, select the variable Path and then click the button Edit.

4. Go to the end of the Path variable. Type a semi-colon and then your JDK bin path,
e.g. ;C:\Program Files\Java\jdk1.6.0_06\bin . Click OK.



5. You are ready to write, compile and run a HelloWorld java program now!


HelloWorld in Command Prompt

1. Create a directory e.g. C:\project\ in Windows Explorer. Then create a file named HelloWorld.java there.

2. Open the file HelloWorld.java with any text editor e.g. Notepad. Type the following code and save the file.

public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}



3. Open a Command Prompt window by clicking Start > Run... and type cmd.




4. In Command Prompt, type in cd \project and then type in dir. This will show the content under this directory and you will see the file HelloWorld.java listed.

5. By using the command javac, you are about to compile java files. Now, type in javac HelloWorld.java to compile it.




6. After compilation completed, type in dir again and you will see there is a HelloWorld.class created.




7. By using the command java, you are about to run java programs. Now, type in java HelloWorld to execute it. This will print out the line Hello World! in the command prompt.

 

Introduction to JCODER

Here we are going to introduce you JCODER - a powerful Integrated Development Environment (IDE) for Java developers, supporting a rich set of project management tools with an intelligent and comprehensive Java editor, and lots of productivity enhancing debugger features and much more.

JCODER Official Website >>>


Download and Install JCODER

1. Go to http://www.jcoder.com/download.html
2. Click on either Location 1 or Location 2 to download the installer.
3. Click Save to save it to disk e.g. under C:\download\.
4. After download is completed, locate the file in your directory. Double-click on the downloaded file jcoder_en.exe
5. Click Next to proceed the Setup. Note that the default installation path is C:\Program Files\PremiumSoft\JCODER.
6. Click Install to continue with the installation.
Click Finish to launch JCODER. Get yourself ready to start building Java projects in a more sophisiticated way!


HelloWorld in JCODER

1. Launch JCODER in your computer.

2. In menu, click Tools > JDK Profiles.



3. You should see that JCODER has automatically obtained the JDK installed path as the default JDK profile such that you need not bother about the settings.

Note: During installation, JCODER will trigger an initial scan throughout the system path to obtain the JDK installed path. If more than one JDKs are found, the first found one would be added.




4. Close the JDK Profile box. And now we are about to create a HelloWorld project in JCODER. On Start Page, click Create Project.




5. Choose the template Java Application in the New Project box. Then, click Next.



6. Give a name to the project e.g. HelloWorld.



7. Click Next until you reach the last step and click OK to complete the project creation.

8. You will see the project is created and shown in the Workspace under Project Manager.



9. Double-click on the Main.java under the tree structure of Project Manager. The file will then be opened in the Editor on the right.

10. In Main.java, type the following line: System.out.println("Hello World!"); and press Ctrl+S to save the file.


11. In menu, click Build > Build Project.



12. You will see the results of the compilation process in the Output window.

3. If no error encountered during project building, we can proceed to run the project. In menu, click Run > Execute.



14. In the Run window, your HelloWorld program runs successfully with the line Hello World! printed.

Java Development Kit Java (programming language) Download Integrated development environment

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 5 Software Developer Competencies: How To Recognize a Good Programmer
  • File Uploads for the Web (2): Upload Files With JavaScript
  • Use AWS Controllers for Kubernetes To Deploy a Serverless Data Processing Solution With SQS, Lambda, and DynamoDB
  • 5 Best Python Testing Frameworks

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: