[go: up one dir, main page]

0% found this document useful (0 votes)
45 views1 page

Sample Basic Program:: System - Out.println ("Hello")

The document outlines the basic steps for installing and using Java: install the JDK from Oracle, set the JDK path in environment variables, verify the Java version using "java -version", save Java files with a .java extension, compile files with "javac filename.java", run files with "java filename", and create packages and classes in Eclipse. It provides an example "Hello World" Java program.

Uploaded by

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

Sample Basic Program:: System - Out.println ("Hello")

The document outlines the basic steps for installing and using Java: install the JDK from Oracle, set the JDK path in environment variables, verify the Java version using "java -version", save Java files with a .java extension, compile files with "javac filename.java", run files with "java filename", and create packages and classes in Eclipse. It provides an example "Hello World" Java program.

Uploaded by

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

Take Away Points of Core Java Basics (Day 5)

Install JDK version from Oracle Website or it comes by default when Weblogic is
installed.

Set the jdk path in the environment variables in ComputerProperties

Eg : Path variable : C:\Program Files\Java\jdk1.7.0_80\bin

In Command prompt , verify the java version using command java version

Save the java file with .java (eg : First.java)

Compilation command : javac First.java

Run command : java First

Directory path can also be set by using set CLASSPATH=C:\Users\IBM_ADMIN\Desktop

In Eclipse :

o Create a package File New Java Project

o In src create class and directly program can be run by right Click Run As
Java Application

For compilation with package names : javac d . First.java

Sample Basic Program :

class A{

public static void main (String[] args) {


System.out.println("Hello");

You might also like