BleepingComputer.com: How To Compile A File?

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.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Compile A File?

#1 User is offline   samuel3 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 2,217
  • Joined: 13-June 08
  • Gender:Male

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.

#2 User is offline   nigglesnush85 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 4,371
  • Joined: 07-January 07
  • Gender:Male
  • Location:UK

Posted 11 July 2008 - 06:19 PM

Hello samuel3,

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

Alan.

#3 User is offline   samuel3 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 2,217
  • Joined: 13-June 08
  • Gender:Male

Posted 12 July 2008 - 04:32 AM

Java file.

#4 User is offline   nigglesnush85 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 4,371
  • Joined: 07-January 07
  • Gender:Male
  • Location:UK

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users