Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


Tutorial Writing=>Compiling=>Executing in Java without IDE filter_list
Author
Message
Writing=>Compiling=>Executing in Java without IDE #1
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
Die  But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
[Image: p_237m2jx1.png]
Click for Free VPN

Reply

RE: Writing=>Compiling=>Executing in Java without IDE #2
Solid tips. I'm not a fan of languages that make building and/or executing from CLI (in terminal; outside an IDE) a pain in the ass or virtually impossible (e.g. Java and C#), so I'm in favor of teaching others how to avoid dedicated environments for a single language.
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

[+] 2 users Like Inori's post
Reply

RE: Writing=>Compiling=>Executing in Java without IDE #3
(07-17-2017, 08:17 PM)Inori Wrote: Solid tips. I'm not a fan of languages that make building and/or executing from CLI (in terminal; outside an IDE) a pain in the ass or virtually impossible (e.g. Java and C#), so I'm in favor of teaching others how to avoid dedicated environments for a single language.

Aside from web development and Arduino, I do all my development in ZSH with nano.

Screw heavy IDEs


(11-02-2018, 02:51 AM)Skullmeat Wrote: Ok, there no real practical reason for doing this, but that's never stopped me.

[+] 2 users Like Blink's post
Reply

RE: Writing=>Compiling=>Executing in Java without IDE #4
(07-17-2017, 08:17 PM)Inori Wrote: Solid tips. I'm not a fan of languages that make building and/or executing from CLI (in terminal; outside an IDE) a pain in the ass or virtually impossible (e.g. Java and C#), so I'm in favor of teaching others how to avoid dedicated environments for a single language.
it's hard to do this outside IDE. but if you learned this you can make a compiler tools yourself, or use it in rats.
Die  But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
[Image: p_237m2jx1.png]
Click for Free VPN

Reply

RE: Writing=>Compiling=>Executing in Java without IDE #5
A very informative tutorial! Let's see more?
[Image: a319ef9581853.560e3236d2b0b.png]

Reply

RE: Writing=>Compiling=>Executing in Java without IDE #6
(07-17-2017, 08:47 PM)Exiled Wrote: A very informative tutorial! Let's see more?

Thanks you, I Will try making more.
Die  But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
[Image: p_237m2jx1.png]
Click for Free VPN

Reply

RE: Writing=>Compiling=>Executing in Java without IDE #7
(07-17-2017, 08:24 PM)Ender Wrote:
(07-17-2017, 08:17 PM)Inori Wrote: Solid tips. I'm not a fan of languages that make building and/or executing from CLI (in terminal; outside an IDE) a pain in the ass or virtually impossible (e.g. Java and C#), so I'm in favor of teaching others how to avoid dedicated environments for a single language.

Aside from web development and Arduino, I do all my development in ZSH with nano.

Screw heavy IDEs

Bonus points for Nano, it doesn't get enough recognition as far as terminal editors go.
It's often the outcasts, the iconoclasts ... those who have the least to lose because they
don't have much in the first place, who feel the new currents and ride them the farthest.

[+] 2 users Like Inori's post
Reply

RE: Writing=>Compiling=>Executing in Java without IDE #8
Why would you not use an IDE for Java? It's object oriented and even has code completion built-in. Stick with bash if you want to go without an IDE. It really makes no sense.

Reply

RE: Writing=>Compiling=>Executing in Java without IDE #9
(07-17-2017, 11:01 PM)titbang Wrote: Why would you not use an IDE for Java? It's object oriented and even has code completion built-in. Stick with bash if you want to go without an IDE. It really makes no sense.

This is for the purpose of learning. I use NetBeans.
Die  But Don't Lie
“Oh Abu Dharr! Don’t look at the smallness of the sin but look at the one you disobeyed.” Prophet Muhammad (pbuh)
[Image: p_237m2jx1.png]
Click for Free VPN

Reply

RE: Writing=>Compiling=>Executing in Java without IDE #10
(07-17-2017, 11:01 PM)titbang Wrote: Why would you not use an IDE for Java? It's object oriented and even has code completion built-in. Stick with bash if you want to go without an IDE. It really makes no sense.

Object orientation has nothing to do with the IDE you use.

Also, ZSH is better than BASH.


(11-02-2018, 02:51 AM)Skullmeat Wrote: Ok, there no real practical reason for doing this, but that's never stopped me.

[+] 1 user Likes Blink's post
Reply







Users browsing this thread: 3 Guest(s)