monitor file activity
+ Reply to Thread
Results 1 to 4 of 4

Thread: Compiling Java Programs

  1. #1
    Join Date
    Oct 2008
    Posts
    8

    Question Compiling Java Programs

    Hi all. I've recently started to learn how to code in Java and have made a couple of successful attempts at simple stuff using the Eclipse editor. My programs run nicely in there no problem. When I run > cmd and try to use javac (i.e. javac HelloWorld.java) to compile the program I'm getting an error: 'javac' is not recognized as an internal or external command, operable program or batch file.' Can anyone tell me what I'm missing please? Many thanks in advance, Magoo.

  2. #2
    Join Date
    Oct 2008
    Posts
    4

    I'll Give My Thoughts

    From what I have already done in Java, to be able to compile a program you need to compile a program in Eclipse, select the project in the pane on the left hand side. Then select Project->Rebuild Project from the menu. Compilation errors are displayed in a window at the bottom of the Eclipse frame. Click on an error message, and the cursor moves to the offending line in the edit window.
    Or you can try this:
    [URL="http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-USfficial&hs=GVp&sa=X&oi=spell&resnum=0&ct=result&cd=*&q=compiling+eclipse+programs&spell=*"]http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla:en-USfficial&hs=GVp&sa=X&oi=spell&resnum=0&ct=result&cd=*&q=compiling+eclipse+programs&spell=*[/URL]
    Last edited by blacksabbath; 10-24-2008 at 06:00 PM. Reason: I forgot to put [/URL] at the end of the link :D
    *2% of teens have moved on to rap.
    If you are part of the 8% who still listen to "real music",
    copy and paste this into your signature

  3. #3
    Join Date
    Oct 2008
    Posts
    8

    Smile Another blonde moment from Magoo...

    Thankyou very kindly Mr. Sabbath Whilst exploring and following your s***estion it quickly became apparent that I'd experienced another 'blonde' moment. It's times like these when I think: 'if only I had read that before I sent the post'. Is everyone aware that javac (the java compiler) does not download with the J2SDK environment package and is not included in the download of Eclipse either? I guess now I've downloaded this it should cure my problem. Thanks again for your input Blacksabbath. Much appreciated

  4. #4
    Join Date
    Sep 2005
    Posts
    2,050
    If from command prompt, you'll need to change directory to the folder javac is in ("cd path").
    Who needs drugs when you have electrons?

+ Reply to Thread

Similar Threads

  1. Any Hacking Needs/programs
    By HeX CoDeR in forum Viruses and Trojans
    Replies: 32
    Last Post: 09-28-2007, 12:46 PM
  2. Question About Programs??
    By bikers314 in forum Programming
    Replies: 2
    Last Post: 08-17-2007, 11:53 AM
  3. P2P programs
    By hmartine in forum Internet Privacy
    Replies: 2
    Last Post: 08-06-2007, 03:34 PM
  4. Programs
    By ub3r_n00b in forum Viruses and Trojans
    Replies: 6
    Last Post: 01-19-2006, 05:49 PM
  5. programs
    By tcoopii in forum Internet Privacy
    Replies: 1
    Last Post: 02-09-2005, 02:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts