How to run java program in notepad

Before writing code and run we have to install java JDK. Click here to download Java JDK

Download Java SE JDK.

Install JDK in default setting and check javac.exe present in this dir C:\Program Files\Java\jdk1.6.0_26\bin if its not there, find its dir.

Note:- jdk1.6.0_26 is changing depending on version of Java JDK.

After install JDK follow this steps

Go to Mycomputer and right click on mycomputer, goto properties -> Advanced system settings -> Select Advanced tab -> click on Environment Variables -> click on New

Write following data in New User Variable window

Variable name:path
Variable value:C:\Program Files\Java\jdk1.6.0_26\bin

Note:- Variable value is dir of javac.exe.

Now save above settings.

Now open run -> type cmd -> now cmd window will open.

Type javac in cmd window, if you got following info as show in figure than your JDK software installed properly.

Now open notepad and write following codes

class disp{
public static void main(String arg[]){

System.out.println("Welcome to aboutcodes");


Save notepad in c drive by giving name

Now again open cmd window and change dir to c drive by typing following command

dir c:\

Now type following command to run java program

java disp

Now you see Welcome to aboutcodes on black screen.

you can use other compiler like Netbeans, Eclipse etc.

Ellipse software is used for Java Codes. it can also be used for other languages such as C, C++, PHP, Perl, Python, Ruby, Ada or COBOL.
Download Now

Netbeans used to run java programs.
Download Now

Previous Code:-

List Code:-

Next Code:-

Java Programs:-


  1. thanx for ur information it is reallyyyyyyyy vryy gud

  2. Does every computer have to have JDK installed in order to run my program?


  4. This being valuable information about java programming, i think those who are new to java this can be great lesson to learn for them.

  5. The expansion of internet and intelligence in business process lead the way to huge volume of data. It is important to maintain and process these data to be efficient in data handling. Hadoop Training in Chennai | Big Data Training in Chennai

    1. I have read your blog its very attractive and impressive. I like it your blog.

      Digital Marketing Company in Chennai Digital Marketing Agency

  6. I agree with your thoughts!!! As the demand of java programming application keeps on increasing, there is massive demand for java professionals in software development industries. Thus, taking training will assist students to be skilled java developers in leading MNCs.
    J2EE Training in Chennai
    .Net Training in Chennai
    PHP Training in Chennai

  7. The information you have deliver here is really useful to make my knowledge good. Thanks for your heavenly post. It is truly supportive for us and I have accumulated some essential data from this blog.
    sas training in Chennai|sas course in Chennai|sas training institute in Chennai

  8. Very nice piece of article which can help many developers, thank you for sharing your knowledge with us. Keep sharing.
    PHP training in Chennai||PHP course in Chennai ||PHP training institute in Chennai

  9. Website are the only way to execute a company's projects to their visitors. And it is mandatory to maintain a responsive one as well. Your content explicitly states that. Thanks for sharing this worth able article here. Keep up this good work.

    Web designing course in chennai | Web designing courses | Web design course in chennai

  10. Hi Admin,
    Quite Interesting post!!! Thanks for posting such a useful post. I wish to read your upcoming blog to enhance my skill set in java programming language, keep blogging.
    SAP training in chennai|SAP course in chennai|SAP training|SAP courses in chennai

  11. Helo
    I really enjoyed while reading your article, the information you have mentioned in this post was damn good. Keep sharing your blog with updated and useful information.
    SAP MM Training In Chennai|sap training in Chennai|sap course in Chennai|SAP Training in Chennai

  12. Updating with the current trend is strictly advisable and the content furnished here also states the same. Thanks for sharing this wonderful and worth able article in here. The way to expressed is simply awesome. Keep doing this job. Thanks :)

    JAVA Training in Chennai | JAVA Training Institutes in Chennai | Selenium training in chennai

  13. Updating with the latest technology and implementing it is the only way to survive in our niche. Thanks for making me understand through this article. You have done a great job by sharing this content in here. Keep writing article like this.

    DOT NET Training in Chennai | Best DOT NET Training in Chennai | DOT NET Training Chennai

  14. The main thing which i like about web designing is that itneeds creativity and we need to work differently acccording to our clients need this needs a creativity and innovation.
    web designing course in chennai|web designing training in chennai|web designing courses in chennai

  15. After the website s completed it is very impoprtant to market it. Be it a brand or a website, if you want to reach a large audiece then effective marketive should done and this can be achieved by SEO.
    Seo training in chennai|Seo training|Seo courses in chennai|Seo training chennai

  16. As the world is constantly getting advanced digitally for every brand or a company it is very improtant to mark their presence online. not only to mark their presence they also have to be very active on the web so that they can have a conversation with their clients/customers and solve their problems or improve their service.
    Digital Marketing Training in Chennai|Digital Marketing Course in Chennai|Digital Marketing Chennai

  17. Hi author I actually teach web designing, and after I read this article I was able to clarify a doubt and this helped me understanding a certain concept better and so I could teach my students well. Thank you.
    web designing course in chennai|web designing training in chennai

  18. Digital Marketing is one of the most promising field which is giving a tough tie for traditional marketing methods.
    digital marketing course in chennai|Digital Marketing training in chennai|digital marketing courses in chennai

  19. Hi, actually I'am new to angularJs and infact I'am learning angularjs with online training. I'am having doubt, if you could solve the doubt for me that would be very helpful. The doubt is, how can I reset a “$timeout”, and disable a “$watch()”?
    angularjs training in Chennai|angularjs course in Chennai|Fita Chennai reviews

  20. If you are willing to develop a website but you dont know web development or coding then relax wordpress CMS platform is just for you. Where you can create website all by yourself.
    wordpress training in chennai | Wordpress course in chennai | FITA Academy reviews

  21. We are offering e-commerce web and service in affordable price contact us to hire our service for your Product.......

  22. Your blog is awesome..You have clearly explained about ...Its very useful for me to know about new thingse-commerce..Keep on blogging..
    PHP training in chennai

  23. Thanks for this blog. All screenshots can explain the full blogs easily. This is very easy to understand. Using this screen shots know the details becomes easy.
    CCNA Training in Chennai

  24. Java is programing language which is used in almost all the applications and games which are on the web. Java is being used extensively and it will be used extensively in near future. So getting trained in Java will surely be helpful.
    Java training in Chennai | Java training institute in Chennai | Java course in Chennai

  25. This article is planned to highlight such mix-ups made by new iOS application Developers amid their first iOS venture, keeping in mind the end goal to help up and coming engineers to begin their profession easily.IOS Applications Development

  26. To keep ourselves up to date with the current trend is not an easy task in IT. But we can, through quality and worth able content like this. Thanks for sharing this web page. Please write more articles like this in future.
    PHP training in Chennai | PHP course in Chennai

  27. interesting piece of information, I had come to know about your web-page from my friend pramod, jaipur, let me tell you, your blog gives the best and the most interesting information. This is just the kind of information that i had been looking for, i'm already your rss reader now and i would regularly watch out for the new posts, once again hats off to you! Thanks a million once again, Regards Guidewire training in hyderabad

  28. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it. The angular js programming language is very popular which are most widely used.
    AngularJS Training in Chennai | Angularjs training Chennai

  29. My Arcus offer java training with 100% placement. Our java training course that includes fundamentals and advance java training program with high priority jobs. java j2ee training with placement having more exposure in most of the industry nowadays in depth manner of java

    java training in chennai

  30. Nice post. happy to visit your log. Thanks for sharing.

    web designing courses in chennai

  31. Hibernate Training Institutes in ChennaiHibernate Training Institutes in Chennai Hibernate Online Training Hibernate Online Training Hibernate Training in Chennai Hibernate Training in Chennai Java Online Training Java Online Training

  32. Great article. This is very useful. Keep sharing such a valuable post.

    SEO Training in Vadapalani

  33. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it. The python programming language is very popular and most widely used.
    Python Training in Chennai | Python Course in Chennai

  34. Thanks for sharing this informative content that guided me to know the details about the training offered in different technology.
    Web Designing Course in Chennai | web designing training in chennai

  35. javac command not working!

  36. Very interesting content which helps me to get the in depth knowledge about the technology. To know more details about the course visit this website.
    Digital marketing course in Chennai | Digital marketing training in Chennai

  37. A debt of gratitude is in order for requiring some serious energy share this post. It is truly useful. I propose to visit this site to my group members. Please continue posting this way.
    SEO course in Chennai | SEO Training Institute in Chennai | SEO Training in Chennai

  38. Great blog ! thanks for sharing this awesome articles - Hibernate Training in Chennai

  39. he strategy you posted was nice. The people who want to shift their career to the IT sector then it is the right option to go with the ethical hacking course.
    Ethical hacking course in Chennai | Ethical hacking training in chennai

  40. Thank you for taking time to provide us some of the useful and exclusive information with us.
    SAS Training in Chennai | SAS Training Institutes in Chennai | SAS Courses in Chennai

  41. Thanks for sharing this unique and informative content which provided me the required information.
    Java Training in Chennai | JAVA Course in Chennai

  42. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.
    Dot net training in Chennai | dot net course in Chennai

  43. Updating with the latest technology and implementing it is the only way to survive in our niche. Thanks for making me this article.
    SAS Training in Chennai | SAS Training Institute in Chennai

  44. Really Impressive One, I never thought of making this possible. Well done Such a new stuff to know. Keep posting..,AngularJS Training Institute in Chennai | Best AngularJS Training in Chennai | AngularJS training and placement

  45. I have been reading out a lot of your articles.
    I will certainly bookmark your Blog.
    Free Devops Training
    Hybris Training
    Emc San Training

  46. Wonderful blog.. Thanks for sharing informative blog.. its very useful to me..

    iOS Training in Chennai

  47. The best thing is that your blog really informative thanks for your great information! Keep sharing.
    cloud erp in chennai

  48. Impressive post..!!!
    I can learn so many interesting or informative post through this blog that are helpful for us...Amazing work you have to do on this blog..Keep sharing much more post...devops openings in hyderabad


Add your comments here

Back to Top