Skip to main content

How to compile Java program by command prompt

How to compile Java program by command prompt.

If you have written java code and you want to compile java program by command prompt, then you get mind how to compile my java code?? Let's tell you that how to compile code..

If you have written java source code in "Notepad" then.. follow steps:


Step :1 Firstly you have to set path of "jdk (java)" you can see my other post the how to path set.

Step :2 Then open "COMMAND PROMPT".

Step :3 Then go to the drive and folder where your source code stored something like this picture below..


How-to-compile-Java-program-by-command-prompt













Step :4 If you dont know that how to do it?? then check below steps:

Step : 4.1- Firstly type your drive where your code stored something like this "J" drive
then type-  j and ":" then enter.

Step: 4.2- Then type your folder where your source in folder if your folder like "temp5" it is a folder name the type cd command type "cd" space your folder name like "temp5" then enter.

Step : 5 Then you will go in like this J:\temp5>.

Step : 6 Then type javac is compiler of java, c mean's compiler.
Step : 7  Then type like this "J:\temp5>javac yourFilename.java" then enter your code will compiled if not error in your code.
Step : 8 Then run your program type "J:\temp5>java yourFilename" then enter your program will be run on your desktop. See in pictures for better learn.






How-to-compile-Java-program-by-command-prompt













How-to-compile-Java-program-by-command-prompt











 

If you have any problem in compilation of java program by command prompt and you want to know more comment here... 



 

Comments

  1. Do you need to increase your credit score?
    Do you intend to upgrade your school grade?
    Do you want to hack your cheating spouse Email, whatsapp, Facebook, instagram or any social network?
    Do you need any information concerning any database.
    Do you need to retrieve deleted files?
    Do you need to clear your criminal records or DMV?
    Do you want to remove any site or link from any blog?
    you should contact this hacker, he is reliable and good at the hack jobs..
    contact : cybergoldenhacker at gmail dot com

    ReplyDelete

Post a Comment

Popular posts from this blog

Gmail Account Recovery Option | [TRICKS]

How to change Gmail Account Recovery and password in Gmail account. What is the recovery options, and how ??? If you want to change the password or recovery options in your "Gmail account ", then you can very easily of Gmail Account Recovery just a few steps to follow if you are looking at the picture. The moment you think you are now required to change Recovery Option, then the answer is that if you have your personal data and Personal Information in your " Gmail account " and you have forgated  the password, then you have to reset the password by recovery option, what is needed and the subsequent recovery of the written option to reset the password for the new account would be difficult and could also lose your data, so be smart, if you have already created the account, when you are creating the account so you can change the recovery options at the time of created account. There are two types of recovery options: 1. By other email id. 2. By Phone numbe...

Download Facebook Videos on Android Mobiles/Tablets | [EASILY TRICKS]

Download Facebook Videos on Android Mobiles/Tablets | [EASILY TRICKS]. If you want to download Facebook videos on your Android mobiles or Tablets and you're unable to download, so you can easily download after a few steps to follow. NOTE: Before all the steps you have to do SAVE VIDEOS in your facebook id which do you want to download facebook videos, go to video and click option to right corner and click save videos and then you can follow all steps. 1. First of all you have to download app from Google-Play -Store : "Video Downloader for Facebook" .   2. Then open this "SVD app" in your mobile/tablets as picture like this below.                         3. Then click "login with facebook" enter user and password.     4. Then click "SAVE VIDEOS" . NOTE: Before all the steps you have to do SAVE VIDEOS in your Facebook id which do you want to down...

How to Convert Disk MBR to GPT Without Data Loss | [TRICKS]

How to Convert Disk MBR to GPT Without any Data Loss- This is to inform you that technique for solution about window installations. If you are facing problem during window installation and you need convert MBR to GPT disk that convert to easily and follow this steps: Step 1: Download " AOMEI Partition Assistant " software from GOOGLE. Step 2: Then install it. Step 3: Open this software. Step 4: Then follow this steps. Step 5: See in pictures- Select which do you want to convert it. Click convert GPT Step 6: After that follow some steps and convert  MBR TO GPT.