Discord Server Red Security Twitter Donation to Red Security Red Security Youtube Channel Red Security Tumblr Profile
Login or Register to Hide ads and Accessing all features on the forum

Tutorial 

Writing=>Compiling=>Executing in Java without IDE

0 Replies, 1870 Views

In The Name Of Allah
Al-Salam Alekum

I will show you how to write a java programs without using IDE.
We will use CMD and Notepad.

let's start..

First Writing:
Open your Notepad and write your code:
Code:
import javax.swing.JOptionPane;
public class Welcome
{
public static void main( String args[ ] )
{
JOptionPane.showMessageDialog(null, "" );
}
}
Then save it with the class name, Here the name is "Welcome" so we will save it as (Welcome.java)

Next Compiling:
Open CMD and we will compile the file by using javac command:
Code:
javac Welcome.java
this will generate a file with name (Welcome.class).

Finally Executing:
We will use again CMD by using "java + className" command:
Code:
java Welcome

Thanks for reading.


Wa Salam Alekum
Rs
* Thankful to Allah *
Kurdy

Messages In This Thread
Writing=>Compiling=>Executing in Java without IDE - by Mr.Kurd - 07-17-2017, 07:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question What is the difference between ‘throw’ and ‘throws’ in Java Exception Handling? Mr.Kurd 0 5,157 03-20-2020, 08:49 PM
Last Post: Mr.Kurd
Question Why Java Strings are immutable in nature? Mr.Kurd 0 2,593 03-20-2020, 08:47 PM
Last Post: Mr.Kurd
Question What is constructor chaining in Java? Mr.Kurd 0 2,550 03-20-2020, 08:43 PM
Last Post: Mr.Kurd
Question What is the difference between equals() and == in Java? Mr.Kurd 0 2,575 03-20-2020, 08:40 PM
Last Post: Mr.Kurd
  What public static void main(String args[]) stand for in Java? Mr.Kurd 0 2,623 03-20-2020, 08:38 PM
Last Post: Mr.Kurd
Question Why multiple inheritance is not supported in java? Mr.Kurd 0 2,565 03-20-2020, 08:34 PM
Last Post: Mr.Kurd
  Tutorial Taking Screenshot in Java Mr.Kurd 0 2,654 03-09-2020, 05:38 PM
Last Post: Mr.Kurd
  10 java skills HeavensReject 1 3,355 01-12-2020, 05:31 AM
Last Post: Mr.Kurd
Wink Tutorial Downloading video from Youtube using JAVA Mr.Kurd 0 5,289 02-06-2019, 06:33 PM
Last Post: Mr.Kurd
  Tutorial Java and SSH Mr.Kurd 0 3,373 12-16-2018, 08:05 PM
Last Post: Mr.Kurd



Users browsing this thread: 1 Guest(s)