Results 1 to 5 of 5
  1. #1
    zenitis's Avatar
    zenitis is offline Member
    Join Date
    May 2010
    Posts
    33
    Rep Power
    0

    Default Multiple compiling from DOS

    I want to compile a sub folder of java files.

    i use something like that

    cd C:\Program Files\torcs\champ2009client-java\src\champ2009client
    set PATH=%PATH%;C:\Program Files\Java\jdk1.6.0_30\bin
    javac -d ...

    I want in the final command to compile the whole folder with java files. Any idea??

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Multiple compiling from DOS

    If the doc for the javac command does not show a way to do it, I don't know if you can do it.

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Multiple compiling from DOS

    All of the files will be compiled if they relate to each other and you compile one of them. Otherwise, you might have to consider using something like Apache Ant, in which you can create a build file that compiles everything for you and execute it from the command line!

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,932
    Rep Power
    8

    Default Re: Multiple compiling from DOS

    Can't you just do javac *.java?

    Or: javac - Java programming language compiler
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: Multiple compiling from DOS

    Yeah, actually, that probably works :P Duh. Thanks :D

Similar Threads

  1. Compiling
    By yavo in forum New To Java
    Replies: 1
    Last Post: 12-24-2011, 01:23 PM
  2. One process open multiple threads on multiple CPUs
    By kfcnhl in forum Threads and Synchronization
    Replies: 2
    Last Post: 12-12-2011, 08:27 AM
  3. multiple Data from Jsp that having same name of multiple input tage to servlet
    By rahul9323.2007@gmail.com in forum Advanced Java
    Replies: 0
    Last Post: 07-29-2011, 01:00 PM
  4. Running multiple threads on multiple CPU cores?
    By Dosta in forum Threads and Synchronization
    Replies: 2
    Last Post: 09-19-2010, 03:48 PM
  5. Compiling Multiple Files
    By Chasingxsuns in forum New To Java
    Replies: 4
    Last Post: 02-12-2010, 01:22 PM

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
  •