When running an .sh file the terminal is "ignoring" the *

For some reason if i type ./mac-compile.sh
i get
kevin-roses-computer:~/Desktop/nexus kevinrose$ ./mac-compile.shCompiling Randomsjavac: invalid flag: Randoms/*.javaUsage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
Compiling Scripts
javac: invalid flag: Scripts/*.java
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-cp <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-endorseddirs <dirs> Override location of endorsed standards path
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-version Version information
-help Print a synopsis of standard options
-X Print a synopsis of nonstandard options
-J<flag> Pass <flag> directly to the runtime system
kevin-roses-computer:~/Desktop/nexus kevinrose$
but if i execute the command
the first one in the file
kevin-roses-computer:~/Desktop/nexus kevinrose$ javac -classpath .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Randoms/*.java
kevin-roses-computer:~/Desktop/nexus kevinrose$
and it has worked. Any clue why its ignoring the *
here is the contents of the .sh file.
echo Compiling Randoms
javac -classpath .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Randoms/*.java
echo Compiling Scripts
javac -classpath .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Scripts/*.java

You posted this question last week and I recall posting a plausible answer which I'll expand on here.
Javac shows this behaviour when the shell script file doesn't have the correct end of line characters. This can happen when the file is generated on one platform and transferred across to Mac OS X. Since the script file is fairly short, it would be easy to retype it into TextEdit and then save a new version.
Be sure to change the file permissions by using chmod in Terminal:
chmod 777 filename
Bob

Similar Messages

  • Error when opening itunes : iTunes has stopped working ''A problem caused the program to stop working correctly''. When I repaired damaged files the problem still exists and also after uninstalling and redownloading and installing itunes. I have windows 8

    Error when opening iTunes : iTunes has stopped working '' A problem caused the program to stop working correctly''.
    When I repaired damaged files the problem still exists and also after uninstalling, redownloading and reinstalling iTunes.
    My pc is working with windos 8.
    Is there a solution?

    Hey there Rodney274,
    It sounds like you are getting an error from iTunes when you launch it. I would try the troubleshooting in this article named:
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Start with troubleshooting for 3rd party plug ins section, then the rest of the article if needed:
    Start iTunes in Safe Mode
    Open iTunes in Safe Mode to isolate any interference from plug-ins or scripts not manufactured by Apple.
    Hold down Shift–Control while opening iTunes. You should see a dialog that says "iTunes is running in safe mode" before iTunes finishes starting up.
    Click Continue.
    See if the issue you're experiencing persists in Safe Mode.
    If you have the same issue while iTunes is in Safe Mode, proceed to the "Create a new user account" section. If you don't experience the same issue, follow these steps to remove third-party plug-ins.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • HT1338 I am trying to upload photos onto e.bay from i photo. When I click choose file the I photo icon comes up but when i select it, instead of taking me in to the photo library it just downloads the iPhoto icon ! Help

    I am trying to upload photos onto e.bay from i photo. When I click choose file the I photo icon comes up but when i select it, instead of taking me in to the photo library it just downloads the iPhoto icon ! Help

    Export copies of the photo(s) from iphoto onto your desktop and use that to upload to ebay

  • When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    Did you ever install Acrobat? It is not installed automatically with CS, but requires an extra installation step.

  • When i open a file the pictures show at bottom, but when I click on a pic it only shows a triangle with a ! in the center

    when i open some files the pictures show at bottom, but when I click on a pic to open it only shows a triangle with a ! in the center

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • HT3281 I HAVE DOWNLOADED SONGS INTO ITUNES. WHEN I GO TO FILE THE SYNC IPOD IS NOT HIGHLIGHTED. I HAVE SYNC SONGS SEVERAL TIMES BEFORE

    I have downloaded songs into ITUNES and when I go to FILE the SYNC IPOD sign is not highlighted.
    I believe I have previously used this method to sync to my Ipod!

    Will the media file play with Quicktime Player? If it will then it's an iTunes issue. If it won't then you need to delete the file and download it a second time.

  • Error when running a bat file

    Can someone tell me what this error means; "ORA-12560: TNS:protocol adapter error"
    I had Oracle XE on my Windows XP Pro SP3, but I also install the EE of Oracle which I haven't setup yet. Originally when I run this .bat file by double clicking on it, "setup_distran_database.bat", everything worked fine. But now, I am getting tghe above error. Not sure if it was because I installed Oracle EE.
    This is the .bat file:
    *@ECHO off*
    *:: Ayo Ojikutu*
    *:: Using Murach's Oracle SQL and PL/SQL*
    *:: and Mike Murach & Associates, Inc. example*
    *:: Nov 11, 2011*
    *:: Uses SQL*Plus utility to run the SQL scripts that create*
    *:: and populate the tables in the AP, OM, and EX schemas.*
    *:: If necessary, edit the username/password*
    sqlplus system/passwordhere @setup_distran_database*
    *:: Display a message about the log file*
    ECHO.
    ECHO For details, check the setup_distran_database.log file in the current directory.
    ECHO.
    *:: Display 'press any key to continue' message*
    PAUSE

    "ORA-12560: TNS:protocol adapter error"
    Not sure if it was because I installed Oracle EE.Most probably yes, Windows has the last installed product environment. Try setting XE environment before running sqlplus, something likeset ORACLE_SID=XE
    set ORACLE_HOME=<XE Oracle Home>
    set PATH=<XE Oracle Home\bin>;%PATH%
    sqlplus .....

  • Does any one know what the matrix.dms is? And why it is in my picture folder? When I open this file the unarchiver takes over and I see my entire hard drive when I scroll down I see the matrix.dms file with in the unarchiver.

    Hello everyone. Does anyone know that the matrix.dms file is? And why it may have came to be in my picture folder? When I opened the file the unarchiver took over, then I saw my files in the unarchiver window. I then scrolled down and I saw the same matrix.dms file within the unarchiver window. I made a video of what saw when I tried to open the file, so as to aide in your understanding of reason for my perplexion at this file. Thank you for your help. https://www.youtube.com/watch?v=2QeWH9hRnro&feature=youtu.be

    Hi EMT-B,
    It sounds like you have done all the troubleshooting needed to narrow down your issue with the iPhone camera to hardware. Based on the information you have provided, it appears your iPhone needs to be serviced. The following link should help you get started with the process and has links with additional information on topics such as warranty and service pricing, battery replacement, and express replacement service.
    Apple - Support - Service Answer Center
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipho ne
    You may need to change the country when you get to the page.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Issue with date formula when running a report on the 1st day of the month

    We have a formula that compares last month data against last year last month, the report runs on the 1st of every month although the report errors when it tries to run in January being the first month of the new year it tries to look for a month begining with Zero instead of looking back at decemeber which would be 12.
    Does anyone any solutions for this issue?
    Thanks,
    Chris
    Example of some formula's we have tried but none seem to work.
    if {@MonthName} = "December" then year({CDCCHD.CDOPDT}) in year(currentdate)-1 to year(currentdate)-2 else year({CDCCHD.CDOPDT}) in year(currentdate)
    OR
    (if {@Last Full Month Name}= "December" then year({CDCCHD.CDOPDT})= year(currentdate)-2 or
    {CDCCHD.CDOPDT} in lastyearytd else {CDCCHD.CDOPDT} in lastyearytd or
    {CDCCHD.CDOPDT} in yeartodate)
    OR
    ({CDCCHD.CDOPDT} in dateserial(year(currentdate)-1,month(currentdate),01)-1 to dateserial(year(currentdate)-1,month(currentdate)-1,01) or
    {CDCCHD.CDOPDT} in lastfullmonth)
    OR
    if {@monthname} = "December" then {CDCCHD.CDOPDT} in dateadd("m", -28, (currentdate)) to (currentdate)-14 else {CDCCHD.CDOPDT} in dateadd("m", -14, (currentdate)) to (currentdate)

    Chris,
    Give these formulas a try...
    Beg of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate) - 1, #1/1/1900#)
    End of Last Month
    DateAdd("m", DateDiff("m",#1/1/1900#, CurrentDate), #1/1/1900#)
    Beg December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -2, 12,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate) -1, 12,1)
    End December of Last Year
    IF DatePart("m",CurrentDate) = 1
    THEN DateSerial(DatePart("yyyy",CurrentDate) -1, 1,1)
    ELSE DateSerial(DatePart("yyyy",CurrentDate), 1,1)
    Note that the "End" formulas produce a value that shows midnight of the following day that you would normally expect to see... For example, if you are expecting to see 12/31/2009, it will show 1-1-2010.
    The reason is that the formulas come out to be midnight of the day shown... So a range of 12/1/2009 - 1/1/2010 will include 12/31/2009's data but none of 1/1/2010... (12/1/2009 - 12/31/2009 would actually cut off 12/31/2009).
    If for some reason your data is stored w/o time values then an adjustment would need to be mande.
    HTH,
    Jason

  • Why I get an error when running a sequence using the LabVIEW operator interface ?

    I have a simple TestStand sequence calling LabVIEW vis that is giving me an error when I run it with the .exe version of the LabVIEW operator interface and I set TestStand to run the vis using the 8.2.1 runtime engine instead of the development adapter. I made a change in the operator interface to open a vi programatically and get the value of a control, this vi is also used in the TestStand sequence I am trying to run. Could this be causing my problem ?
    Thanks

    Hello Verdulken,
    I have a few additional questions:
    Does your application function correctly when running the LabVIEW operator interface you have created as a VI in the LabVIEW development environment (i.e. does this problem only occur when the LabVIEW operator interface is run as an executable)?
    What is the error that you are receiving?
    Regarding the VI that you open programmatically, do you open it in a visible manner (i.e. use the Show front panel when called option from VI Properties)?If so, do you also close this VI after it finishes (i.e. use the Close if originally closed option from VI Properties)?
    Does the error occur on the step that calls this very same VI again later in the sequence?
    Does your application function correctly if you use the development adapter for all of your calls?
    Thank you in advance for this information,
    Matt G.
    National Instruments
    Applications Engineering

  • AME CC 2014 (latest) when I import a file, the last pre-set I used is automatically applied to the file

    And I can't seem to find a way to stop this behavior.
    If I control click on the preset below the file in the Queue Pane and select remove, it deletes the preset and the file from the Queue.
    Any help appreciated.
    thanks
    MtD

    I seem to recall the previously, when I imported a file into AME, no preset was applied until I selected one. Is that incorrect?
    Or is the correct workflow to select the preset, then import the file?
    As it is now, I have one extra step if I happen to not want the preset that was applied on import, I need to delete it - after adding the preset I do want. Seems an odd way to work to me.
    MtD

  • When displaying a pdf file, the scrollbar in ffx4 never moves

    whenever i open a pdf file in ffx 4, the scrollbar on the side never moves when i scroll down the file. the scrollbar only moves when the cursor is positioned in the scrollbar area and it just jumps to where it must be in the file. however, the scrollbar never works when scrolling. the problem has been persisting since at least ffx4b9 and it really is a surprise that mozilla just can't fix it! tried reinstalling ffx, reinstalling plugin, reinstalling adobe reader, you name it, but it just never works!!!

    Not solved

  • WDA Personalization bug when running multiple instances of the same WDA component

    I have found an issue relative to WDA personalization that it seems to be a bug for me.
    Scenario:
    In my scenario, I have a Web Dynpro component A which has two usages of the same Web Dynpro Component B (USAGE1 and USAGE2).There is a WDA application APPL_A defined to fire WDA component A. I have defined a component configuration COMP_CONF1 for WDA component B and an application configuration APP_CONF1 for WDA application APPL_A. This application configuration applies the same component configuration COMP_CONF1 to both usages USAGE1 and USAGE2.
    Runtime behaviour:
    At runtime, I execute application APPL_A using the application configuration APP_CONF1. When I personalize something in the USAGE1 of WDA component B, the effects does not appear in USAGE2 until a page refresh is done. Obviously, as both usages uses the same component configuration at rutime the effects of personalization should be applied to both, but WDA configuration framework fails to apply the changes instantaneously to USAGE2.
    Have you expermiented this behaviour? Is there any workaround for this?

    I have found an issue relative to WDA personalization that it seems to be a bug for me.
    Scenario:
    In my scenario, I have a Web Dynpro component A which has two usages of the same Web Dynpro Component B (USAGE1 and USAGE2).There is a WDA application APPL_A defined to fire WDA component A. I have defined a component configuration COMP_CONF1 for WDA component B and an application configuration APP_CONF1 for WDA application APPL_A. This application configuration applies the same component configuration COMP_CONF1 to both usages USAGE1 and USAGE2.
    Runtime behaviour:
    At runtime, I execute application APPL_A using the application configuration APP_CONF1. When I personalize something in the USAGE1 of WDA component B, the effects does not appear in USAGE2 until a page refresh is done. Obviously, as both usages uses the same component configuration at rutime the effects of personalization should be applied to both, but WDA configuration framework fails to apply the changes instantaneously to USAGE2.
    Have you expermiented this behaviour? Is there any workaround for this?

  • I am getting errors that indicate the the licence has expired when running an executable file on another computer

    I am trying to run a compiled program as an exe on another computer. After several days it now comes up and indicates that the licence has expired.
    The code was compiled using labview 2009 sp1 and ran for several years until now. There is no other labview product on the computer.

    What makes you think that a license has expired?  NI provides LabVIEW Run-Time license for free.  The only licenses that may occur is some toolkits require a deployement license.  Some of these tool kits are things like DSC, Vision, and ECU Measurement just to name a few.  It doesn't sound like this is the issue if it was running for years so I don't know what could have happened.  It would help if you showed a screen shot of the license expired dialog, or even the license manager to show what things are installed and what aren't.
    Has the PC had any changes since the issue?  Changing network devices like adding a wireless card, or changeing ethernet devices can cause the PC ID to change, and then the license will need to be reactivated.  This can be done again through the license manager but without more information like what actually happening, I can only guess.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Error when running a  report on the E Busniess Suit

    hi
    i have succesfully installed the oracle e-busniess suit 11i but when i submit a request to run a report it gave me error and when i view the log file i says install printer.

    Most of the reports are configured to print output to a printer. Please see the link below to configure a printer:
    http://becomeappsdba.blogspot.com/2006/09/configuring-printer-in-oracle_28.html
    Operating system specific instructions may vary but you will have an idea what to do.

Maybe you are looking for