Compile files in a subdirectory

Hey guys!!
I have a question. Is there a option in javac that it not only compiles the *.java files in my current directory but also in the subdirectories.
e.g. I am in c:\java\test and I type javac *.java then it compiles every java-file in c:\java\test. but when I also wanna compile all files in c:\java\test\lalala and c:\java\test\lilili and c:\java\test\lololo...etc...is there a option???
cheers,
Tom

@argfiles is a good solution if your class files are in different directories:
javac [ options ] [ sourcefiles ] [ @argfiles ]
Arguments may be in any order.
options: Command-line options.
sourcefiles: One or more source files to be compiled (such as MyClass.java).
@argfiles: One or more files that lists options and source files. The -J options are not allowed in these files. List the file names in a file, separated by blanks or line breaks. Then use the list file name on the javac command line, preceded by an @ character.
See the javac documentation for further details:
C:\j2sdk1.4.0_01\docs\tooldocs\win32\javac.html

Similar Messages

  • Formatting Failed:  Compiler File Error

    Hello...
    Yesterday I got my crossgrade disks from Apple, so I upgraded my G4 Powerbook with the full Studio Pro upgrade, then made sure I had all current patches.
    When I opened up one of my DVD Studio Pro projects and clicked Burn, It failed with a dailog box that said "Formatting failed, Building was not successful, See log" so I looked at the log and it said in red "Compiler File Error"
    This project worked fine before I upgraded... So, for grins, I started from scratch and rebuilt the project and reimported the assets. Now I had just recompressed the video/audio with the new compressor as well... Anyway, same result. Also, when it fails, the OS-X window pops up that you normally get once you insert a blank DVD and you can choose an app or hit ignore.
    Can't figure this out... Any help would be greatly appreciated.
    Dave
    Powerbook G4   Mac OS X (10.4.3)  

    Once I upgraded, I recompressed the video (its about 14 min, and uses Dolby, not AIFF)... When I opened DVD Studio Pro, it prompted me that assets had changed, I said ok, then tried to burn and go the error. I then tried deleting the PAR folder, no help. So, I just closed the project, hit NEW and recreated the project (it was rather simple) and then tried to burn... Same error.
    I burned this same DVD two days ago under the old pre-universal version and it worked fine. I only recompressed because I heard that the new version performed much better.
    Sorta lost on this one... I don't see any reason why it shouldnt work. The log only says the one line and gives no other help.

  • Compiling files with the 'package'-statement

    Hi,
    I have a problem compiling files that uses the 'package'-statement:
    I have 2 files ClassA.java and ClassB.java. ClassA uses objects of type ClassB. When I compile ClassA.java the compiler also automatically compiles ClassB.java. No problem so far.
    But when I add "package mypackage" to ClassA.java and ClassB.java and then try to compile ClassA.java with the command "javac -d . ClassA.java" I get the compile-error "Class mypackage.ClassB not found". This would mean that I would have to compile all my files separately?
    Can anybody tell me what I am doing wrong?
    Thx,
    Jan

    I was still working on it, but I think I have it now :-)
    Let me try to summarize what I think/hope that I understand:
    I have the following files in package mypackage:
    C:\src\mypackage\ClassA.java
    C:\src\mypackage\ClassB.java
    with ClassA using ClassB.
    I want to compile them into C:\classes\mypackage\ClassA.class and C:\classes\mypackage\ClassB.class
    I change directory to C:\classes and then give the command
    >javac -d . ..\src\mypackage\ClassA.java
    This didn't work at first because my classpath wasn't set correctly. To make it work I had to add C:\src to my classpath. Which surprised me a little because I thought that the classpath was only used to find *.class files and not by javac to find *.java files?
    If anybody has something to add to this, please feel free to do so.
    Jan

  • What is a Compiler File Error?

    I'm getting this error message when I try to burn my DVD.
    "Starting DVD Build ALLINTHEFAMILY...
    Compiler File Error"
    It happens right away. What's wrong?

    I think there is a bug in DVDSP4 and Apple needs to address this ASAP. The workable fix is to delete the DVDSP4 preference files.
    I was having the described problem, and I've seen numerous discussions of the issue on blogs and groups all over the net. In any case, when you have this "Compiler File Error" message, exit DVDSP, navigate to user->library->preferences->com.apple.dvdstudiopro.plist and toss that puppy in the trash. Empty the trash. Restart DVDSP and burn without further problems...at least until next time!
    Hey APPLE! Wake up and fix this for us!!! Thank you!
    In Service of Mankind,
    -Ruth

  • How do you fix a "compiler file error" in DVD Studio Pro?

    I've tried to burn a DVD from a project file in DVD Studio Pro a couple times now and get a "Compiler File Error" each time. What does it mean and how do I fix it?
    Thanks.

    where are you assests from? did you use compressor to create a mpeg2 and dolby audio file? did you export self contained and bring into compressor? or a reference movie? What were your orginal seq settings? More details.

  • How to load compile file

    I have been using third party software called Gauss in my java application. I compile Gauss file using Gauss compiler and then store compiled file ("xyz.e.gcg") in particular directory. After loading all Gauss related DLL into memory using System.loadLibrary(), I can execute this compiled file by passing relative and/or full path to Gauss native API (i.e. executeCompiledFile(String string)) which in turn load file into memory. This stand alone java program works fine. But with JAWS, since i don't know full/relative path of compiled file, i am not able to load compile file ("xyz.e.gcg") from jar file into memory. I am able to load all other resource files(i.e. *.gif, *.jpeg) and all required DLL from corresponding jar files into memory.
    How can i extract full/relative path of compiled file from jar file and pass it on to third party API.
    I used class loader to extract path of compiled file from jar file but that path doesn't work. I get following path for compiled file from class loader.
    file:/C:/Lukens/ToolKit/Toolkit%20for%20JAWS/resources.jar!/resources/toolkit/sva/proc_estimations_final.e.gcg
    Thanks
    Prashant

    You could read the compiled file from the jar (using java), and write a copy to a temporary file and then execute the temporary file copy.
    See also http://forum.java.sun.com/thread.jsp?forum=38&thread=443358

  • Compiler File Error

    I am unable to burn DVDs in DVDSP2. I get the same message each time: Compiler File Error. I have tried compressing as MPEG2, I have tried moving media to boot drive and I have tried re-loading Compressor and DVDSP and upgrading before opening. I have tried everything suggested here to solve this issue but have been unsuccessful so far. Any thoughts?

    I used the "DVD: Best Quality 90 minutes" presets in Compressor (Dobly Digital Pro 2.0 and MPEG-2 2.6Mbps 2-pass). By "gaps in the timeline" do you mean the FCP timeline? If so, no, there is only one movie.
    The project does not build at all. I click BURN, the INITIATE dialog box appears and closes immediately. The log then shows COMPILER FILE ERROR.

  • Continuous 'Compiler File Error'

    I've tried to burn various projects recently and each time I am getting a 'Compiler File Error' message. Can anybody advise what I should do to get rid of this. It's a real pain!
    Basically I have various projects which I'm unable to build it at all. Here's a run down on what's happening from the log...
    Starting DVD Build...
    Compiler File Error (in red)
    Build Cancelled
    Formatting Finished
    Building was not successful. See log. (in yellow)
    And there's nothing about this error message in the Help guide either.

    I had the very same problem. I simply moved the DVD Studio Pro prefs file found in system library>prefrences to my desktop. DVDSP will automaticly create a new pref file. If it fixed the problem you can trash the old pref file. This worked for me.

  • Compiled file is older than the Autosequen​ce sourcefile

    Our lab is converting it's computer operating systems from Windows 2K to Windows XP. I have installed XP on a test mule and am able to use Diadem under my own profile. The problem I'll detail below arises when another lab user logs in under another user ID when an autosequence is selected.
    The error is:
    The compiled file that has been created is older than the Autosequence sourcefile. Please check your computer clock!
    There is nothing wrong with the computers clock.
    Appreciate your assistance.
    SW

    Wait! For not a not
    Hi SW
    Ahhh.. I'm assuming you are using AUT and NOT VBS files. I'm also assuming that the AUT files are located on a different computer (server?). If that is the case, and the server clock is slightly ahead of your local computer clock DIAdem gets worried. The AUT get precompiled into an AUC file, DIAdem checks the data of the AUC file version the computer clock if it greater then the time/date on the local computer clock, you've exposed a singlarity in the universe!
    To fix this delete the AUC files on the server and run the application again.
    If this doesn't work let me know
    Tom

  • Compiler File Error - DVDSP4

    I'm having a problem with DVDSP4 and burning DVDs.
    I now receive a "Compiler File Error" when attempting to burn a DVD. This is the first time I've encountered this problem. It occurs before the burn process actually starts. Does anyone know what causes this, and if there is a known work-around?
    Currently running OSX 10.4.7, DVDSP 4.03, on a G5...
    Thanks in advance.
    G5   Mac OS X (10.4.7)  

    Thanks for the help all! Sorry I didn't think of using the search. I browsed through the first 5 pages or so, and didn't find what I was looking for, but it never occured to me to actually search for it... d'oh!
    At any rate, the Compiler error still occurs when I use the "Burn" feature, but I was able to Build & Format successfully. There was no preference file to delete (I'm assuming this is because none of the preferences have been changed, thus a seperate file was never created), but I did repair permissions, to no avail. I tried a reboot a number of times as well.
    Thanks again, I'll keep searching to try and solve my problem.
    G5   Mac OS X (10.4.7)  

  • Error compiling file?!

    Hello,
    For the third time I tried now to render a Quicktime (photo jpg and also h264) but somewhere on the last frames it skips the render with the message "error compiling file" - unknown error...
    Does anybody has any idea why and what to do ?
    Thanks :)
    pearl

    AAMinistries which Adobe software or service is your inquiry in relation too?  What are you currently attempting to accomplish?

  • Pop-Up Colors in Compiled File

    Using RH HTML x5, generating HTML help. Once I click a pop-up
    it changes color. However, when I compile, the compiled version
    still shows the changed color. I want all pop-ups to return to the
    unvisited color (blue) in my compiled file. How do I accomplish
    this?

    Hi there
    CHM user here. Your history is just that.
    Your history. The file should be dandy on any new machines.
    For what it's worth, I tend to code the CSS for all my CHM
    files so the links never change color.
    Cheers... Rick

  • Compiling files with nested directory structure

    I'm getting "resolve symbol" errors when I try to compile source files which
    are in the child directory whose dependent on files from it's parent
    directory. Here's my current directory structure:
    src
    -->a
    ---->b
    ------>util
    What I'm trying to do is compile files which are in the 'util' directory.
    Some of these files use some of the classes in the 'b' directory. My
    compile statement is the following:
    java -d class -classpath src src\a\b\util\aFile.java
    Files in the 'util' directory has a import a.b.* statement on top, but I
    don't think that's the problem, let alone necessary.
    Any assistance would be appreciated.

    Files in the 'util' directory has a import a.b.*
    statement on top, but I
    don't think that's the problem, let alone necessary.You must import classes that you use if the classes are not in the same package. The classes in src\a\b should have a package statement as the first line of source code and I am guessing it should be "package a.b;" Likewise, the classes in src\a\b\util should have a "package a.b.util" line. It's hard to guess what you have in mind. If you have the package statements, then the classes in a.b.util can import a.b.whatever. This will work.

  • Help ! ever seen this in DVD Studio Pro : 'Compiler File Error' ?

    Help !
    This is a strange problem :
    Evertime I try to burn a disc, it says :
    Starting DVD Build DVD_
    Compiler File Error
    Build cancelled
    Formatting finished.
    Building was not successful. See log.
    Now I tried several different projects and it does it on multiple computers.
    Only explenation would be something I did in my DVD menu, or assets.
    If I burn it on my powerbook though, it works perfectly....
    Harry Potter was busy, so please help me, I'm getting desperate...
    Have the latest update, the latest OS, en DVD Studio Pro 4.2

    Welcome to the boards.
    Take a look at the log as it is compiling and see where the compile stops/crashes. Also download MPEG streamclip and open up the last VOB in the build folder in MPEG Streamclip. (VOB ares here, you will have different VOBs of course and numbers but look at the last one that has something in it) http://dvdstepbystep.com/vts.php It will show you the last part was compiled properly so you can look at the asset in the DVD SP project.
    Some things to look for
    1.) Gaps in the timeline in the audio or video. In fact I just had this happen. The project compiled fine in an older version of DVD SP (4.03) BUT would crash out at 4.2. Turns out there was a gap I had missed (doh!) somehow and cleaning it up would then cure then problem.
    2.) Did you make the audio AC3? What rates were the video encode? High rates can cause the compile errors.

  • DVD Studio Pro: Compiler File Error

    Hi there,
    I'm running DVD Studio Pro 4.2.1 on Mac OS X 10.5.8, and until now, I've been successfully burning DVD projects. But suddenly, when I try to burn a DVD, I keep getting a message stating that the "build failed" due to a "compiler file error." Any clue how to solve this? My sound file is a .ac3, and my video is a .m2v.
    Thanks!

    It could be a number of things. Generally, you should try renaming your m2v and then re-importing it and setting it into the track it is in. Also, try trashing the PAR files (check your preferences for the location of these) which get created when you import an asset.
    Finally, try simply re-encoding the footage and going from there (add a new name for it too...)

Maybe you are looking for