1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to? i need a little help

Discussion in 'Support' started by roadwarriortim, Dec 26, 2011.

  1. roadwarriortim

    Joined:
    Dec 26, 2011
    Messages:
    3
    Likes Received:
    0
    yea , just finished watching a java video in which the .java and .class files where compiled using the dos window in regular dos , using a ( [C:\extras\lesson1\fig02_01] ) javac *.java command to complile the two files in the same folder and it word however when i tried it i got a unknown command ? it did not recognize a javac command does anyone happen to know how to do this?
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,287
    Likes Received:
    39
  3. mfarah

    Joined:
    Nov 2, 2009
    Messages:
    226
    Likes Received:
    5
    java.exe is the Java interpreter, which is part of the JRE (Java Runtime Environment). It allows you to run Java classes. Windows comes with its own version of the JRE.

    The JDK (Java Development Kit), on the other hand, contains java.exe, javac.exe (the actual compiler that reads in a .java file and outputs a .class file) and other dev-oriented stuff. The JDK does not come with Windows - you have to download it from Sun's Oracle's site.
     
  4. roadwarriortim

    Joined:
    Dec 26, 2011
    Messages:
    3
    Likes Received:
    0
    yes thats true and i can do a javac and create a class but can not follow it with a java command because it can not open the jvm.cfg exe file ?? do you have a lot of knowledge about this topic?
     

Share This Page