Skip to main content

Posts

Showing posts with the label Java

How to path set in java to cmd (command prompt)

There are to learn for path set of virtually in cmd command prompt. Which is used for temporally set path at the time of compile and run code. It is a techniques for good programmer and developer. If you are a good developer and you have own java source code then you want to compile code on other pc's if you dont want to set permanently then you can path set in java to cmd temporally so it's need. Some steps follow here: Step 1: You have to install java in your system(PC). Step 2: Then open COMMAND PROMPT go to start then type cmd and enter. Step 3: Then go to where your source code stored in your drive and folder. Step 4: Then type command "set path=C:\Program Files\Java\jdk1.7.0_45\bin". Step 5: If dont want to type then go to your c drive where your java install like program files>java>jdk>bin something like copy to path and paste on cmd after this set path =paste here. Step 6: Then you can compile and run easily. ...

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

How to write first program in java

How to write first program in java First program in java message on display in console screen. If you are a beginner in java so you should have to learn java programming language beginner to good java developer or software developer. If you have to first write first program in java.  ////////////Print- hello this is my first java program////////////////////// import java.lang.*;   /////////this is default package it's not need to import but you can class Firstprogram {     public static void main(String arg[])         {         System.out.println("this is my first program");     } } If you have any problem then comment here for better solution.