Major error when trying to runa compile script on a mac.

heres the error:

kevin-roses-computer:~/Desktop/nexus kevinrose$ ./compile.sh

Compiling Randoms

javac: invalid flag: Randoms/*.java

Usage: javac <options> <source files>

where possible options include:

-g Generate all debugging info

-g:noneGenerate no debugging info

-g:{lines,vars,source}Generate only some debugging info

-nowarnGenerate no warnings

-verboseOutput messages about what the compiler is doing

-deprecationOutput 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

-versionVersion 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:noneGenerate no debugging info

-g:{lines,vars,source}Generate only some debugging info

-nowarnGenerate no warnings

-verboseOutput messages about what the compiler is doing

-deprecationOutput 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

-versionVersion 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 iScar PLugins

javac: invalid flag: iscarplugins/*.java

Usage: javac <options> <source files>

where possible options include:

-g Generate all debugging info

-g:noneGenerate no debugging info

-g:{lines,vars,source}Generate only some debugging info

-nowarnGenerate no warnings

-verboseOutput messages about what the compiler is doing

-deprecationOutput 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

-versionVersion 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 Plugins

error: cannot read: plugins/*.java

1 error

Heres the file im tring to run.

echo Compiling Randoms

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Randoms/*.java

echo Compiling Scripts

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Scripts/*.java

echo Compiling iScar PLugins

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar iscarplugins/*.java

echo Compiling Plugins

javac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar plugins/*.java

All help would be appricated.

[5114 byte] By [krrose27a] at [2007-11-27 5:28:08]
# 1
Hey! It's the lets-hack-runescape-dude.How have you been?Oh I see. Posting the same questions on other forums http://www.mac-forums.com/forums/showthread.php?p=400264Well that sure is surprising.... not so much.
cotton.ma at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 2

Sorry. It not lets hack. Its lets make the hack work on my mac. Lol.

Not even my code, dont want it. Im just tying to get the thing to run on my ******* mac.

If u dont belive that its been hacked rscheata.net.

Plus im not that guy any more. I acctually can code java now. Built an asteroids game. Just never have had to runa damb compile thing like that before. I likeeclipse. All i have todo is press the green button to get my programs to work. When ready just export as a jar an double click.

Runescapes booring. Just wanna use te app so i can script for the bot. Practice java. Nut that damb script and the other one dont fing work.

krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 3
> Runescapes booring. Just wanna use te app so i can> script for the bot. Practice java. Nut that damb> script and the other one dont fing work.Have you considered spending more time in English class?"Nut that damb script" ?
cotton.ma at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 4
No, more time in no mis click the keys class. Also the it's not 4'oclock in the morning class, and the ummm theirs more i think.
krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 5
cotton.m , do u postven when u have no clue whats wrong or can't help? Why do u post then?
krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 6
Any clue why this isnt working?
krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 7
I was talking to someone and they said acs dont support the wildcard operator * for commands? Is he rihgt? If so is this the error? is their a way to get around it?
krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 8

> I was talking to someone and they said acs dont

> support the wildcard operator * for commands? Is he

> rihgt?

Nope.

It wouldn't be the Mac, it would be the particular shell you're using. But any common shell supports it. If the wildcard is the problem, then either you've switched to some bizarre shell or you've changed the options on your shell to not expand it.

It'd be interesting to see the shell script.

jverda at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 9
jverd the script im trying to run is at the bottom of the first post. The error is at the top.Im using the standered terminal on my mac. Do you see anything that could be causing tha error? What should i do? any ideas at all?
krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 10

Hey i made some progress. I upgraded my java to a special developer relase. 1.6.0_ad

i now get this when i run the script posted at the bottom of the first post.

kevin-roses-computer:~ kevinrose$ cd /Users/kevinrose/Desktop/nexus/

kevin-roses-computer:~/Desktop/nexus kevinrose$ ./compile.sh

Compiling Randoms

javac: invalid flag: Randoms/*.java

Usage: javac <options> <source files>

use -help for a list of possible options

Compiling Scripts

javac: invalid flag: Scripts/*.java

Usage: javac <options> <source files>

use -help for a list of possible options

Compiling iScar PLugins

javac: invalid flag: iscarplugins/*.java

Usage: javac <options> <source files>

use -help for a list of possible options

Compiling Plugins

error: error reading plugins/*.java; plugins/*.java (No such file or directory)

1 error

krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 11
And what do you not understand about that error message?
jverda at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 12
the fat that it should run. That follows compiling rulers and should run. Thats why that makes no sense.
krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 13
Well, then I guess your shell is just out to get you and it's lying when it's telling you those files aren't there. Call a therapist or a priest for it.
jverda at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 14
i understand the last one but the ones above giving me a systmax error which the shouldnt.
krrose27a at 2007-7-12 14:50:11 > top of Java-index,Java Essentials,Java Programming...
# 15

Ah, I see.

Add this, right before the javac:echo 1

echo Randoms/*.java

echo 2

ls Randoms

echo 3

Randoms/*.java

It does seem like the * is not getting expanded by the shell. I don't know why that would be. Either you're using a weird shell or you've changed your shell's options.

jverda at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...
# 16

I added that amd ram it

kevin-roses-computer:~/Desktop/nexus kevinrose$ ./compile.shRandoms/*.java.java

Compiling Randoms

javac: invalid flag: Randoms/*.java

Usage: javac <options> <source files>

use -help for a list of possible options

Compiling Scripts

javac: invalid flag: Scripts/*.java

Usage: javac <options> <source files>

use -help for a list of possible options

Compiling iScar PLugins

javac: invalid flag: iscarplugins/*.java

Usage: javac <options> <source files>

use -help for a list of possible options

Compiling Plugins

error: error reading plugins/*.java; plugins/*.java (No such file or directory)

1 error

kevin-roses-computer:~/Desktop/nexus kevinrose$

Are mac terminal weird or something? Anyone know?

krrose27a at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...
# 17
> I added that amd ram itNo, because none of that output is there.> Are mac terminal weird or something? Anyone know?Works fine for me.
jverda at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...
# 18
Jverd u use a mac?What java? So the code works for u on mac? what did u test it on.
krrose27a at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...
# 19
jverd. I just did something.If i issue the commands directly into the terminal likejavac -cp .:././jars/impsoft.jar:././jars/swt.jar:././jars/jython.jar:././plugins Randoms/*.javait works fine.Ok s any clue why the sh file would cause it notto work?
krrose27a at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...
# 20

I know very little about the Mac but normally in a Unix script you need to tell the script which process to use to process the commands. Since the wild card expansion needs a shell to interpret it, I would expect to see your script have as first line something like

#!/bin/sh

Message was edited by:

sabre150

sabre150a at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...
# 21
> normally in a Unix script you need to tell the script which process > to use to process the commandsYou can redefine the invoking shell in the first line of a command file, but you do not have to if you do not want to change the executing shell.
BIJ001a at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...
# 22

If there is no file to expand a name, the star name does not get expanded.

Random/*.java gets expnaded to the expected list if Random is there and there is at least ine file matching *.java is beneath. Otherwise Random/*.java does not get expanded and stays as is - making the compiler unhappy.

BIJ001a at 2007-7-21 21:29:35 > top of Java-index,Java Essentials,Java Programming...