[groovy-user] Groovy JSR-03 on OSX doesn't run.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[groovy-user] Groovy JSR-03 on OSX doesn't run.

Jonathan Duty
When I try to run groovy jsr  03 on Mac OSX, I get the following error

: bad interpreter: No such file or directory

It looks its a problem with the  shell script that actually  runs  
groovy.  When I run it in debug mode:

aa-1-4-16:~/Desktop/groovy-1.0-jsr-03/bin pmp$ bash --debug groovy
: command not found
: command not found
: command not found
: command not found
: command not found
'roovy: line 23: syntax error near unexpected token `{
'roovy: line 23: `warn() {



This only  occurs in JSR03.  JSR 02  works fine.

~Jonathan



Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] Groovy JSR-03 on OSX doesn't run.

Warner Onstine-3
Strange, I'm running it on OS X.

What version of OS X? Which JDK?

-warner

On 11/15/05, Jonathan Duty <[hidden email]> wrote:

> When I try to run groovy jsr  03 on Mac OSX, I get the following error
>
> : bad interpreter: No such file or directory
>
> It looks its a problem with the  shell script that actually  runs
> groovy.  When I run it in debug mode:
>
> aa-1-4-16:~/Desktop/groovy-1.0-jsr-03/bin pmp$ bash --debug groovy
> : command not found
> : command not found
> : command not found
> : command not found
> : command not found
> 'roovy: line 23: syntax error near unexpected token `{
> 'roovy: line 23: `warn() {
>
>
>
> This only  occurs in JSR03.  JSR 02  works fine.
>
> ~Jonathan
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] Groovy JSR-03 on OSX doesn't run.

Guillaume Laforge
Administrator
In reply to this post by Jonathan Duty
Could you please double check the line endings of the startup scripts?

Guillaume

On 15/11/05, Jonathan Duty <[hidden email]> wrote:

> When I try to run groovy jsr  03 on Mac OSX, I get the following error
>
> : bad interpreter: No such file or directory
>
> It looks its a problem with the  shell script that actually  runs
> groovy.  When I run it in debug mode:
>
> aa-1-4-16:~/Desktop/groovy-1.0-jsr-03/bin pmp$ bash --debug groovy
> : command not found
> : command not found
> : command not found
> : command not found
> : command not found
> 'roovy: line 23: syntax error near unexpected token `{
> 'roovy: line 23: `warn() {
>
>
>
> This only  occurs in JSR03.  JSR 02  works fine.
>
> ~Jonathan
>
>
>
>


--
Guillaume Laforge
http://glaforge.free.fr/blog/groovy
Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] Groovy JSR-03 on OSX doesn't run.

Jonathan Duty
Not sure I understand what you are asking for.  I look at the startup  
script in a text editor and it looks fine.


On Nov 15, 2005, at 3:43 PM, Guillaume Laforge wrote:

> Could you please double check the line endings of the startup scripts?
>
> Guillaume
>
> On 15/11/05, Jonathan Duty <[hidden email]> wrote:
>
>> When I try to run groovy jsr  03 on Mac OSX, I get the following  
>> error
>>
>> : bad interpreter: No such file or directory
>>
>> It looks its a problem with the  shell script that actually  runs
>> groovy.  When I run it in debug mode:
>>
>> aa-1-4-16:~/Desktop/groovy-1.0-jsr-03/bin pmp$ bash --debug groovy
>> : command not found
>> : command not found
>> : command not found
>> : command not found
>> : command not found
>> 'roovy: line 23: syntax error near unexpected token `{
>> 'roovy: line 23: `warn() {
>>
>>
>>
>> This only  occurs in JSR03.  JSR 02  works fine.
>>
>> ~Jonathan
>>
>>
>>
>>
>>
>
>
> --
> Guillaume Laforge
> http://glaforge.free.fr/blog/groovy
>

Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] Groovy JSR-03 on OSX doesn't run.

Jonathan Duty
In reply to this post by Warner Onstine-3
aa-1-4-16:~/Desktop/groovy-1.0-jsr-03/bin pmp$ java -version
java version "1.4.2_09"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-232)
Java HotSpot(TM) Client VM (build 1.4.2-54, mixed mode)


Tiger 10.4.2

aa-1-4-16:~/Desktop/groovy-1.0-jsr-03/bin pmp$ sh --version
sh --version
GNU bash, version 2.05b.0(1)-release (powerpc-apple-darwin8.0)
Copyright (C) 2002 Free Software Foundation, Inc.





On Nov 15, 2005, at 3:39 PM, Warner Onstine wrote:

> Strange, I'm running it on OS X.
>
> What version of OS X? Which JDK?
>
> -warner
>
> On 11/15/05, Jonathan Duty <[hidden email]> wrote:
>
>> When I try to run groovy jsr  03 on Mac OSX, I get the following  
>> error
>>
>> : bad interpreter: No such file or directory
>>
>> It looks its a problem with the  shell script that actually  runs
>> groovy.  When I run it in debug mode:
>>
>> aa-1-4-16:~/Desktop/groovy-1.0-jsr-03/bin pmp$ bash --debug groovy
>> : command not found
>> : command not found
>> : command not found
>> : command not found
>> : command not found
>> 'roovy: line 23: syntax error near unexpected token `{
>> 'roovy: line 23: `warn() {
>>
>>
>>
>> This only  occurs in JSR03.  JSR 02  works fine.
>>
>> ~Jonathan
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] Groovy JSR-03 on OSX doesn't run.

Guillaume Laforge
Administrator
In reply to this post by Jonathan Duty
On 15/11/05, Jonathan Duty <[hidden email]> wrote:
> Not sure I understand what you are asking for.  I look at the startup
> script in a text editor and it looks fine.

We had some problems with line-endings: perhaps your editor is
clever... but bash isn't and doesn't like the newlines. You'd better
do a cat on the command-line.

On macs, I think the line ending are \r, but they might be \n in the
scripts, which would be why your shell interpreter doesn't like them.

--
Guillaume Laforge
http://glaforge.free.fr/blog/groovy
Reply | Threaded
Open this post in threaded view
|

Re: [groovy-user] Groovy JSR-03 on OSX doesn't run.

Maurice Diamantini (dom)

Le 15 nov. 05 à 22:23, Guillaume Laforge a écrit :

> On 15/11/05, Jonathan Duty <[hidden email]> wrote:
>> Not sure I understand what you are asking for.  I look at the startup
>> script in a text editor and it looks fine.
>
> We had some problems with line-endings: perhaps your editor is
> clever... but bash isn't and doesn't like the newlines. You'd better
> do a cat on the command-line.

I had such a probleme with a file (sh script) coming from windows.
If a single file is corrupted, open the file in a text editor, and  
resave
it by choosing the "unix text file" option or such. Or simply resave it
might be sufficiant ?

If all the distrib is corrupted, try to make a zip archive from it,
then unzip it with the -a option (which convert ascii files to
the host platefom).

> On macs, I think the line ending are \r, but they might be \n in the
> scripts, which would be why your shell interpreter doesn't like them.

for mac osx, I think the lines end by \n (as for unix). Probably the  
original
groovy zip archive is ziped from a windows host, with \r\n ended lines.
So one should unzip it whith the -a option ?

-- maurice