Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2011
    Posts
    11
    Rep Power
    0

    Default How to compile into usable applications

    This is a really noobish question, but the "javac" command for compiling applications doesn't work on my command prompt for some reason so is there some way to compile using Eclipse.

  2. #2
    sunde887's Avatar
    sunde887 is offline Moderator
    Join Date
    Jan 2011
    Location
    Richmond, Virginia
    Posts
    3,069
    Blog Entries
    3
    Rep Power
    8

    Default

    There should be something like build in eclipse. However, you can compile on the command line with javac if you have the classpath set, or you use the classpath flag.

    Java Code:
    javac -cp . filename.java
    will compile the java source file filename.java in the current directory.

    Here is a video to download and install and set up the classpath as well.

    TheNewBoston – Free Educational Video Tutorials on Computer Programming and More! Java Programming Tutorial – 1 – Installing the JDK

  3. #3
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    try typing this first:
    Java Code:
    path %PATH%;"C:\Program Files\Java\jdk1.6.0_24\bin"

  4. #4
    Join Date
    Apr 2011
    Posts
    11
    Rep Power
    0

    Default

    Thank you both! I am so glad that now I can do it from command prompt. I just feel so much smarter when doing things from command prompt.

  5. #5
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    Hehe, well someday you're going to get tired of all that manual labor and use Eclipse ;)

Similar Threads

  1. Web applications
    By etisc in forum New To Java
    Replies: 1
    Last Post: 01-02-2011, 04:28 PM
  2. Online applications
    By JavaSoftware in forum New To Java
    Replies: 3
    Last Post: 11-19-2010, 10:37 AM
  3. Converting String to Usable code
    By xael in forum New To Java
    Replies: 4
    Last Post: 09-21-2010, 10:08 PM
  4. Replies: 3
    Last Post: 03-19-2009, 05:01 AM
  5. Launching applications without an IDE
    By this_is_phil in forum New To Java
    Replies: 6
    Last Post: 05-24-2008, 08:54 AM

Tags for this Thread

Posting Permissions

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