Help - Search - Members - Calendar
Full Version: How To Compile A File?
BleepingComputer.com > Software > Business Applications
   
samuel3
Does anyone know how to compile a certain file?

Im using windows xp, service pack 2, if that helps.
nigglesnush85
Hello samuel3,

What type of file are you trying to compile?
samuel3
Java file.
nigglesnush85
You need to open the command prompt. Start then run then cmd

Once you are in the prompt, navigate to the location of the .java file using the dir and cd commands. Once the prompt is in the same directory as the .java file type javac nameofmyfile.java

This will make a .class file. To run this open the prompt and type java nameofmyfile

You can speed up the process by using the command line here power toy http://www.microsoft.com/windowsxp/Downloa...ppowertoys.mspx then you can just right click the folder the file is in and select open command prompt here.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.