Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

How To Compile A File?


  • Please log in to reply
3 replies to this topic

#1 samuel3

samuel3

  • Members
  • 2,349 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:18 AM

Posted 11 July 2008 - 04:24 PM

Does anyone know how to compile a certain file?

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

BC AdBot (Login to Remove)

 


#2 nigglesnush85

nigglesnush85

  • Members
  • 4,371 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:UK
  • Local time:05:18 AM

Posted 11 July 2008 - 06:19 PM

Hello samuel3,

What type of file are you trying to compile?
Regards,

Alan.

#3 samuel3

samuel3
  • Topic Starter

  • Members
  • 2,349 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:06:18 AM

Posted 12 July 2008 - 04:32 AM

Java file.

#4 nigglesnush85

nigglesnush85

  • Members
  • 4,371 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:UK
  • Local time:05:18 AM

Posted 12 July 2008 - 06:18 AM

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.
Regards,

Alan.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users