Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Java Development Environment Installation

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 217
    Comment on it

    Java Is a platform Independent Language, but the JDK Java Development Kit is used to developed wide range of applications. Java Development Kit includes some other like JRE and JVM for the complete development. JRE Java Runtime Environment as a Part of JDK which consists of the JVM.


    JRE Java Runtime Environment Provides the minimum requirement to run a java application with classes and supporting files.It also consists of Java Virtual Machine (JVM). A Java Virtual Machine (JVM) provides specification and implementation to run any java enables to run any java program.


    whenever, a javac command is triggered to run java program through command prompt the file is passed as an argument to the javac command. If the file contains any compile time error then the compilation get failed otherwise if there will not be any then if will continue the compilation, and the .class file is created. The generated class file contains the code which is easier to be executed. And after the compilation of the class file the desired output is displayed on the console.


    lets take an example of java program and the commands to run in command prompt:

    class examples
    {
         public static void main(String[] args)
         {
              System.out.println("Hello World!!");
         }
    }
    

    command to execute are as :

    c:>cd examples

    c:\examples> echo %path% //Sets the path of JDK bin

    c:\examples> javac examples.java

    c:\examples> java examples

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: