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:-

65 Comments

  1. thanx for ur information it is reallyyyyyyyy vryy gud

    ReplyDelete
  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

Add your comments here

Back to Top