You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mike Pedersen <mi...@oracle.com> on 2000/09/05 20:59:13 UTC
ant and Win98
Hello, I've been using ant with much success over the last couple months on
NT Solaris and Linux. I have recently tried to run it on win98 with no
success. I have set ant_home, java_home and the ant/bin directory is in
the path. I have also changed all references to "program files" in the
and.bat to point to short directory names thinking that there might be a
problem with long file names. When ever I attempt to run "ant" I get bad
command or file name. Any thoughts on this would be much appreciated.
RE: ant and Win98
Posted by "Brian D. Wisniewski" <br...@cgiusa.com>.
My thanks as well. The line feeds and, for my situation, re-installing JRE
did the trick.
-----Original Message-----
From: Mike Pedersen [mailto:michael.pedersen@oracle.com]
Sent: Thursday, September 07, 2000 5:45 PM
To: ant-user@jakarta.apache.org
Subject: Re: ant and Win98
Thanks to the list for the help on this one. The problem turned
out to be the linefeeds. When I saved the batch files as PC files ant ran
successfully. I Probably should have noticed that one. If the FAQ allows
submissions I think I'll add this.
At 08:11 AM 9/7/00 +0200, you wrote:
>Mike Pedersen wrote:
> >
> > Hello, I've been using ant with much success over the last couple months
on
> > NT Solaris and Linux. I have recently tried to run it on win98 with no
> > success. I have set ant_home, java_home and the ant/bin directory is in
> > the path. I have also changed all references to "program files" in the
> > and.bat to point to short directory names thinking that there might be a
> > problem with long file names. When ever I attempt to run "ant" I get
bad
> > command or file name. Any thoughts on this would be much appreciated.
>
>Maybe your .bat-Files still have unix-style line feeds. DOS (or the
>Win98
>command line cannot process such files correctly. Try to open the
>ant.bat
>with windows notepad. If there are unix-style line feeds in the file,
>there will be black boxes instead of line-feeds.
>
>Ralf
Re: ant and Win98
Posted by Mike Pedersen <mi...@oracle.com>.
Thanks to the list for the help on this one. The problem turned
out to be the linefeeds. When I saved the batch files as PC files ant ran
successfully. I Probably should have noticed that one. If the FAQ allows
submissions I think I'll add this.
At 08:11 AM 9/7/00 +0200, you wrote:
>Mike Pedersen wrote:
> >
> > Hello, I've been using ant with much success over the last couple months on
> > NT Solaris and Linux. I have recently tried to run it on win98 with no
> > success. I have set ant_home, java_home and the ant/bin directory is in
> > the path. I have also changed all references to "program files" in the
> > and.bat to point to short directory names thinking that there might be a
> > problem with long file names. When ever I attempt to run "ant" I get bad
> > command or file name. Any thoughts on this would be much appreciated.
>
>Maybe your .bat-Files still have unix-style line feeds. DOS (or the
>Win98
>command line cannot process such files correctly. Try to open the
>ant.bat
>with windows notepad. If there are unix-style line feeds in the file,
>there will be black boxes instead of line-feeds.
>
>Ralf
RE: ant and Win98 (Newbie Question)
Posted by "Brian D. Wisniewski" <br...@cgiusa.com>.
Good Morning,
Changing the line-feeds did help with clearing up the bad command or file
name issue.
Now however, I get the following when I attempt to run ant:
Error: could not open `C:\Program Files\JavaSoft\JRE\1.3\lib\jvm.cfg'
This does not seem to make sense because the JRE\1.3\lib folder does not
exist within Javasoft?
I am running Win98 with Ant v1.1, jdk1.2.1, Java API for XML Parsing v1.0.1,
and Java 2 Runtime Environment Standard Edition v1.3.
My Path is set to the following:
SET
PATH=c:\windows;c:\windows\command;c:\DOS;c:\jdk1.2.1\bin;c:\ant\bin;c:\PROG
RA~1\Javasoft\JAXP1.0.1\
My CLASSPATH is set to:
SET
CLASSPATH=C:\PROGRA~1\JAVASOFT\JAXP1.0.1\PARSER.JAR;C:\PROGRA~1\JAVASOFT\JAX
P1.0.1\JAXP.JAR;C:\ANT\;C:\JDK1.2.1\;C:\ANT\BIN
I have also set the following:
SET ANT_HOME=c:\ant
SET JAVA_HOME=c:\jdk1.2.1
SET JAXPHOME=C:\Program Files\JavaSoft\Jaxp1.0.1
I suspect I'm missing something obvious but can't put my finger on it.
Any information or guidance would be greatly appreciated.
Thanks,
Brian D. Wisniewski
-----Original Message-----
From: Ralf Purnhagen [mailto:purnhar@gmx.net]
Sent: Thursday, September 07, 2000 2:12 AM
To: ant-user@jakarta.apache.org
Subject: Re: ant and Win98
Mike Pedersen wrote:
>
> Hello, I've been using ant with much success over the last couple months
on
> NT Solaris and Linux. I have recently tried to run it on win98 with no
> success. I have set ant_home, java_home and the ant/bin directory is in
> the path. I have also changed all references to "program files" in the
> and.bat to point to short directory names thinking that there might be a
> problem with long file names. When ever I attempt to run "ant" I get bad
> command or file name. Any thoughts on this would be much appreciated.
Maybe your .bat-Files still have unix-style line feeds. DOS (or the
Win98
command line cannot process such files correctly. Try to open the
ant.bat
with windows notepad. If there are unix-style line feeds in the file,
there will be black boxes instead of line-feeds.
Ralf
Re: ant and Win98
Posted by Ralf Purnhagen <pu...@gmx.net>.
Mike Pedersen wrote:
>
> Hello, I've been using ant with much success over the last couple months on
> NT Solaris and Linux. I have recently tried to run it on win98 with no
> success. I have set ant_home, java_home and the ant/bin directory is in
> the path. I have also changed all references to "program files" in the
> and.bat to point to short directory names thinking that there might be a
> problem with long file names. When ever I attempt to run "ant" I get bad
> command or file name. Any thoughts on this would be much appreciated.
Maybe your .bat-Files still have unix-style line feeds. DOS (or the
Win98
command line cannot process such files correctly. Try to open the
ant.bat
with windows notepad. If there are unix-style line feeds in the file,
there will be black boxes instead of line-feeds.
Ralf
Re: ant and Win98
Posted by Don Schaefer <do...@xelus.com>.
I ran into this at home. I think it has something to do with the commands that
ant.bat calls. Put an echo in top of the bat file to see if it is getting
run.
If I remember correctly it is in the lcp.bat program. I'll try to remember to
look tonite....
don.
Mike Pedersen wrote:
> Hello, I've been using ant with much success over the last couple months on
> NT Solaris and Linux. I have recently tried to run it on win98 with no
> success. I have set ant_home, java_home and the ant/bin directory is in
> the path. I have also changed all references to "program files" in the
> and.bat to point to short directory names thinking that there might be a
> problem with long file names. When ever I attempt to run "ant" I get bad
> command or file name. Any thoughts on this would be much appreciated.