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 example.java


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

javac example.java
java disp

Now you see Welcome to aboutcodes on black screen.

you can use other compiler like Netbeans, Eclipse etc.

Eclipse
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
Netbeans used to run java programs.
Download Now



Previous Code:-

List Code:-

Next Code:-

Java Programs:-

137 Comments

  1. thanx for ur information it is reallyyyyyyyy vryy gud

    ReplyDelete
    Replies
    1. Great article comes from inspiration and frequently reading the latest news and articles about a subject and keep up the good work in this website. Thanks for sharing! web designing in jalandhar

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

    ReplyDelete
  3. domain.runhosting.de

    ReplyDelete
  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.

    ReplyDelete
  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

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

      Digital Marketing Company in Chennai Digital Marketing Agency

      Delete
  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

    ReplyDelete
  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.
    Regards,
    sas training in Chennai|sas course in Chennai|sas training institute in Chennai

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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.
    Regards,
    SAP training in chennai|SAP course in chennai|SAP training|SAP courses in chennai

    ReplyDelete
  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.
    Regards,
    SAP MM Training In Chennai|sap training in Chennai|sap course in Chennai|SAP Training in Chennai

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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()”?
    Regards,
    angularjs training in Chennai|angularjs course in Chennai|Fita Chennai reviews

    ReplyDelete
  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

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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

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

    web designing courses in chennai

    ReplyDelete
  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

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

    SEO Training in Vadapalani

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  35. javac command not working!

    ReplyDelete
  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

    ReplyDelete
  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.
    Thanks,
    SEO course in Chennai | SEO Training Institute in Chennai | SEO Training in Chennai

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

    ReplyDelete
  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

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

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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

    ReplyDelete
  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

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

    iOS Training in Chennai

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

    ReplyDelete
  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

    ReplyDelete

  49. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well as giving..
    Android App Development Company

    ReplyDelete
  50. Thanks for your information and valuable time, nice article, i am very glad to read about this.
    Java Training in chennai

    ReplyDelete
  51. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
    web design Company
    web development Company
    web design Company in chennai
    web development Company in chennai
    web design Company in India
    web development Company in India

    ReplyDelete
  52. Being new to the blogging world I feel like there is still so much to learn. Your tips helped to clarify a few things for me as well

    iOS App Development Company
    iOS App Development Company

    ReplyDelete
  53. These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
    Fitness SMS
    Salon SMS
    Investor Relation SMS

    ReplyDelete
  54. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
    Android Training in Chennai
    Ios Training in Chennai

    ReplyDelete
  55. Thanks for sharing the wonderful post.It is very interest post i like very much.This will help lot of user to update their knowledge.Thanks for sharing. keep sharing more blogs.


    Core Java Online Training

    ReplyDelete
  56. it is really amazing...thanks for sharing....provide more useful information...
    Mobile app development company

    ReplyDelete
  57. Helpful post. I would like to read more about java coding. Keep on sharing like this.
    Regards,
    SAS Training in Chennai | SAS course in Chennai

    ReplyDelete
  58. Hi, I am really happy to found such a helpful and fascinating post that is written in well manner.. Really very informative post you shared here. Keep sharing this type of informative blog. If anyone wants to become a Java professional learn Java Training in Bangalore. Nowadays Java has tons of job opportunities for all professionals...Big Data Hadoop Training in Bangalore | Data Science Training in Bangalore

    ReplyDelete
  59. Java is high level programming language .Due to its stability and scalability, you can find Java on mobiles, desktops, large scale applications etc. Java is also gaining big in the field of Internet of Things (IoT).
    Java training center in chennai

    ReplyDelete
  60. It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command.



    Java Training in BTM Layout


    Java Training in Marathahalli

    ReplyDelete
  61. You have provided an nice article, Thank you very much for this one. And i hope this will be useful for many people.. and i am waiting for your next post keep on updating these kinds of knowledgeable things...
    Texting API
    Text message marketing
    Digital Mobile Marketing
    Sms API
    Sms marketing

    ReplyDelete
  62. It is a very nice article including a lot of viral content. I am going to share it on social media. Get the online crackers in chennai.

    ReplyDelete
  63. Thanks for sharing such informative article. Know about Know about English to Tamil from techfizy.

    ReplyDelete
  64. Thank you so much for sharing this great blog.Very inspiring and helpful too.

    Python Training in Chennai
    AngularJS Training in Chennai

    ReplyDelete
  65. Are you searching for SAP Hybris Online Training from certified professional expert ?

    ReplyDelete
  66. I like the post format as you create user engagement in the complete article. It seems round up of all published posts. Thanks for gauging the informative posts.
    cara menggugurkan kandungan

    ReplyDelete
  67. Incredible post. Articles that have significant and savvy remarks are more agreeable, at any rate to me. It’s fascinating to peruse what other individuals thought and how it identifies with them or their customers, as their point of view could help you later on.

    PSD to Wordpress
    wordpress website development

    ReplyDelete
  68. Those guidelines additionally worked to become a good way to
    recognize that other people online have the identical fervor like mine
    to grasp great deal more around this condition.


    java Training in Bangalore



    java training in chennai

    ReplyDelete
  69. I am hoping the same best effort from you in the future as well. In fact your creative writing skills has inspired me.

    white label website builder

    ReplyDelete
  70. I read this article. I think You put a lot of effort to create this article. I appreciate your work.
    thesis Writing Service

    ReplyDelete
  71. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
    Best Java Training Institute Chennai

    ReplyDelete
  72. I truely excited to be here.You have explained everything very clearly.Iam much more impressed.the person who created this post is a genius and knows how to keep the readers connected.Yiioverflow is a web development company.We have well expert team in Angular JS, Ionic, Yii Framework, Node JS, Laravel, PHP, MySQL, and WordPress.If you want a developer visit.. https://yiioverflow.com/


    ReplyDelete
  73. The young boys ended up stimulated to read through them and now have unquestionably been having fun with these things.
    amazon-web-services-training-in-bangalore

    big-data-hadoop-training-institute-in-bangalore

    ReplyDelete
  74. Those guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.



    Digital marketing in chennai

    ReplyDelete
  75. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    aws training in chennai

    ReplyDelete
  76. My partner and I stumbled over here different website and thought I might as well check things out. I like what I see so now I’m following you. Look forward to checking out your web page repeatedly. Digital Marketing Training in chennai

    ReplyDelete
  77. My rather long internet look up has at the end of the day been compensated with pleasant insight to talk about with my family and friends. JAVA Training in chennai

    ReplyDelete
  78. Pretty blog, so many ideas in a single site, thanks for the informative article, keep updating more article.
    Webdesining course in chennai

    ReplyDelete
  79. Nice article.Thanks for sharing this information.
    Java training in Chennai

    ReplyDelete
  80. Nice Article Very Helpful ! Thanks for sharing ! Also check
    Tutuapp APK

    ReplyDelete
  81. Yeah without coding there is no web development and so coding plays a very important role in creating a website.

    best seo company in chennai

    top seo company in chennai

    digital agency in chennai

    seo services in chennai

    seo experts in chennai

    ReplyDelete
  82. This is just an amazing guide . Thank you so much for sharing your valuable thoughts with us always.


    ReplyDelete
  83. Thank you so much for sharing this information, it is easy to learn while reading such articles. As, the information you provide is easy to understand and also, gives a detail explanation of the topic. I would love to read more of your articles because they provide great knowledge that no one else provides.
    Digital Marketing Company
    Off Page seo
    Digital marketing course in Delhi
    Digital Marketing Institute in Delhi
    Quicken support phone number

    ReplyDelete
  84. Great piece of content. I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business. Know more and become an expert in this field by joining
    digital marketing course in delhi. digital marketing course in delhi
    Digital Marketing has a flourishing future! It not only gives you an individual identity, but also helps you grow professionally.

    ReplyDelete

  85. Great piece of content. This is really very useful for me. The amazing topic you described here. The writing style is very impressive and easy to understand. I usually find such a good content. I never comment on any article but this one something different. I can't stop to comment myself. last time I read some good post at timesera .Here i am sharing some posts which completely very amazing. Read it short inspirational quotes

    ReplyDelete
  86. Thanks for sharing this wonderful blog. Helpful article ! Kindly visit us @ Chocolate gift box

    ReplyDelete
  87. A very good post and thanks for sharing it with us!

    low cost web design services

    ReplyDelete
  88. Very Interesting and wonderful information keep sharing this post kindly check
    qooapp install pc

    ReplyDelete
  89. Information from this blog is very useful for me, am very happy to read this blog Kindly visit us @ Christmas Gift boxes | Wallet Box

    ReplyDelete
  90. Very nice post. it is very useful and informative post. keep more like this.
    Digital Marketing Services in Chennai
    SEO Services in Chennai

    ReplyDelete

Add your comments here

Back to Top