Tip:
Highlight text to annotate it
X
Welcome Friends. This is my first youtube tutorial.
Today I am gonna teach you how to use notepad++ to run your java code.
For this you need to download jdk from oracles website. This step is easy.
Just need to go to the oracle website and download it. Here jdk7 is available.
I have been using jdk6 for some time now hence I would prefer jdk6.
You need to download this. I have jdk 6 already installed on my system.
The next step should be to set your environment variables. Now in order to set up your environment
variable. Go here and search for environment.
Here you see edit system environment variable. Now search for environment variables and click
edit system environment variables. Here click on Environment Variables.
Go to path jdk path. This is the path you need to add over here.
press Ok and You are done. Now you need to download Notepad++.
You can download it from notepad plus plus dot org.
I am going to use the installer version you can use the zip version if you like.
just save it. It has been downloaded.
Now you just need to install it. This process is quite fast and takes about
1 or 2 seconds. Notepad++ has been installed. Now obviously you need to write some java
code but before that we need to download a plugin.
For that you to go to plugin plugin manager Show Plugin Manager and search for N p p E
x e c. This will take couple of minutes.
here you see this is asking to restart notepad plus plus. Click yes.
now you just need to click on the new icon and write some sample code.
I am here writing a hello world program for you.
Now I will write a hello world program. Now you need to save it.
I will name it hello world. choose .java extension and save it.
I am going to save it in D directory. Now we need to run this file.
For running this file press F6. This will open a command window.
Now whatever command you type here it will be executed. first you need to change the
directory to the directory where you have saved the file.
Then you need to compile you java code. then you need to run it.
The good thing is all this can be done in a single step.
Now Press F6 The application has compiled and run also.