[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
AW: AW: gnujsp 1.0.0 conf
As any argument aware program javac uses the space
to seperate arguments.
If your using a unix like command line interpreter
like bash or tcsh (from cygwin) there are 2 options
for the command line :
- embed the argument that contains spaces in
single quotes (')
- include a backslash before the space
On the DOS prompt the only way I found, is to embed
the argument in double quotes (").
How to apply this to the jsp settings I can't tell you.
As I'm always carefull not to use spaces in directory
names I don't have this problem.
Anyway I don't think that it is a good practice to use
the JServ directory as a working directory. So I would
place your jsp and beans directory in a different path.
(E:/develop or so) and the problem is gone.
-----Ursprungliche Nachricht-----
Von: Chay Weei Jye [mailto:wjchay@geocities.com]
Gesendet: Donnerstag, 21. Oktober 1999 04:58
An: gnujsp@gjt.org
Betreff: Re: AW: gnujsp 1.0.0 conf
Thanks for your help but it's still not working, error mesg:
Error compiling source file: file:/e:\apache
group\apache\htdocs\jspexamples\hello.jsp
builtin-javac -verbose -classpath E:\JSDK2.0\lib\jsdk.jar;e:\apache
group\Apache JServ\ApacheJServ.jar;E:\Apache Group\Apache
JServ\servlet-2.0-plus.jar;e:\apache group\Apache
JServ\gnujsp10.jar;c:\kiva\kds\bin\..\classes;c:\kiva\kds\bin\..\lib\cla
sses.zip;c:\kiva\kds\bin\..\lib\classes.jar;c:\kiva\kds\bin\..\lib\rt.ja
r;c:\kiva\kds\bin\..\lib\i18n.jar;E:/Apache
Group/Apache JServ/beans -d E:/Apache Group/Apache JServ/jsp E:/Apache
Group/Apache JServ/jsp\jsp___2fjspexamples_2fhello_2ejsp.java
javac: invalid argument: Group/Apache
use: javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath
path][-nowrite][-deprecation][-d dir][-J] file.java...
Seems like javac can't use directory names with a space in it. Using
backslash gives me the same problem. Should it be forward or back
slashes?
How to overcome this problem?
Ralph Einfeldt wrote:
> You should uncomment this line:
> repositories=e:\apache group\Apache JServ\jsp
>
> These classes and Interfaces should already be in
> the servlet-2.0-plus.jar.
>
> In mod_jserv.properties you should replace
> ApJServAction .jsp /servlets/org.gjt.jsp.JspServlet
> ApJServAction .jsp /servlets/gnujsp10
> with
> ApJServAction .jsp /servlets/gnujsp
>
> and have this line in zone.properties (section Servlet Aliases)
> servlet.gnujsp.code=org.gjt.jsp.JspServlet
>
> the repository argument is no longer supportet (?)
> servlet.gnujsp10.initArgs=repository=E:\Apache Group\Apache
> JServ\jsp
>
> this is how my servlet.gnujsp10.initArgs look like:
>
> servlet.gnujsp.initArgs=pagebase=V:/site/develop/testneu/htdocs
>
servlet.gnujsp.initArgs=scratchdir=V:/site/develop/testneu/generated_sou
> rces
> servlet.gnujsp.initArgs=jserv=true
> servlet.gnujsp.initArgs=debug=true
> servlet.gnujsp.initArgs=checkuri=true
> servlet.gnujsp.initArgs=compiler=builtin-javac -verbose -classpath
>
%classpath%;V:/site/develop/testneu/classes;V:/site/develop/testneu/gene
> rated_classes -d %scratchdir% %source%
>