Or, you could use the short file name. For Program Files, this is typically Progra~1. However, you can find this by running "dir /x". This will display your short 8.3 no spaces filename.
Andy ----- Original Message ----- From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, April 01, 2003 10:34 AM Subject: RE: javac: invalid flag: C:\Program > > Howdy, > Spaces in file paths are evil... You need to ensure the full path is > quoted ("c:\program files...") or use a path without spaces, e.g. by > re-installing tomcat in c:\tomcat4.1 or something like that. > > Yoav Shapira > Millennium ChemInformatics > > > >-----Original Message----- > >From: Roar Skullestad [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, April 01, 2003 9:59 AM > >To: [EMAIL PROTECTED] > >Subject: javac: invalid flag: C:\Program > > > >I moved my webapp to another Tomcat installation, and I now get an > >exception that indicates that the java file name parameter to javac is > >truncated (javac: invalid flag: C:\Program). > >All other webapps works fine. > >Any ideas? > >- Roar > >org.apache.jasper.JasperException: Unable to compile class for JSP > > > >An error occurred at line: -1 in the jsp file: null > > > >Generated servlet error: > >Project base dir set to: C:\Program Files\Apache Group\Tomcat 4.1 > >Detected Java version: 1.4 in: C:\j2sdk1.4.1_02\jre > >Detected OS: Windows XP > > [javac] index_jsp.java added as C:\Program Files\Apache > Group\Tomcat > >4.1\work\Standalone\localhost\nacka\index_jsp.class doesn't exist. > > [javac] Since fork is true, ignoring compiler setting. > > [javac] Compiling 1 source file > > [javac] Using external javac compiler > > [javac] Since fork is true, ignoring compiler setting. > > [javac] Compilation arguments: > > [javac] '-classpath' > > [javac] 'C:\Program Files\Apache Group\Tomcat > >4.1\bin\bootstrap.jar;C:\idega\webs\nacka\idegaweb\bundles\com.idega.bl > ock. > >banner.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.bl > ock. > >boxoffice.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega > .blo > >ck.building.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.ide > ga.b > >lock.calendar.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.i > dega > >.block.contract.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com > .ide > >ga.block.dictionary.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles > \com > >.idega.block.documents.bundle\classes;C:\idega\webs\nacka\idegaweb\bund > les\ > >com.idega.block.email.bundle\classes;C:\idega\webs\nacka\idegaweb\bundl > es\c > >om.idega.block.forum.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle > s\co > >m.idega.block.image.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles > \com > >.idega.block.importer.bundle\classes;C:\idega\webs\nacka\idegaweb\bundl > es\c > >om.idega.block.login.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle > s\co > >m.idega.block.media.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles > \com > >.idega.block.messenger.bundle\classes;C:\idega\webs\nacka\idegaweb\bund > les\ > >com.idega.block.navigation.bundle\classes;C:\idega\webs\nacka\idegaweb\ > bund > >les\com.idega.block.news.bundle\classes;C:\idega\webs\nacka\idegaweb\bu > ndle > >s\com.idega.block.poll.bundle\classes;C:\idega\webs\nacka\idegaweb\bund > les\ > >com.idega.block.process.bundle\classes;C:\idega\webs\nacka\idegaweb\bun > dles > >\com.idega.block.questions.bundle\classes;C:\idega\webs\nacka\idegaweb\ > bund > >les\com.idega.block.quote.bundle\classes;C:\idega\webs\nacka\idegaweb\b > undl > >es\com.idega.block.reports.bundle\classes;C:\idega\webs\nacka\idegaweb\ > bund > >les\com.idega.block.school.bundle\classes;C:\idega\webs\nacka\idegaweb\ > bund > >les\com.idega.block.staff.bundle\classes;C:\idega\webs\nacka\idegaweb\b > undl > >es\com.idega.block.text.bundle\classes;C:\idega\webs\nacka\idegaweb\bun > dles > >\com.idega.block.trade.bundle\classes;C:\idega\webs\nacka\idegaweb\bund > les\ > >com.idega.block.websearch.bundle\classes;C:\idega\webs\nacka\idegaweb\b > undl > >es\com.idega.builder.bundle\classes;C:\idega\webs\nacka\idegaweb\bundle > s\co > >m.idega.core.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.id > ega. > >core.user.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega > .dev > >eloper.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.id > egaw > >eb.bundle\classes;C:\idega\webs\nacka\idegaweb\bundles\com.idega.user.b > undl > >e\classes;C:\idega\webs\nacka\idegaweb\bundles\se.idega.idegaweb.commun > e.bu > >ndle\classes;C:\idega\webs\nacka\WEB-INF\classes;C:\idega\webs\nacka\WE > B- > >INF\lib\activation.jar;C:\idega\webs\nacka\WEB- > >INF\lib\ant.jar;C:\idega\webs\nacka\WEB- > >INF\lib\classes12.jar;C:\idega\webs\nacka\WEB- > >INF\lib\connector.jar;C:\idega\webs\nacka\WEB- > >INF\lib\cvslib.jar;C:\idega\webs\nacka\WEB- > >INF\lib\cvslib_trunk.jar;C:\idega\webs\nacka\WEB- > >INF\lib\ejb.jar;C:\idega\webs\nacka\WEB- > >INF\lib\firebirdjmx.jar;C:\idega\webs\nacka\WEB- > >INF\lib\firebirdsql.jar;C:\idega\webs\nacka\WEB- > >INF\lib\hsqldb.jar;C:\idega\webs\nacka\WEB- > >INF\lib\iText.jar;C:\idega\webs\nacka\WEB- > >INF\lib\icu4j.jar;C:\idega\webs\nacka\WEB-INF\lib\idega- > >jmodule.jar;C:\idega\webs\nacka\WEB- > >INF\lib\informixjdbc.jar;C:\idega\webs\nacka\WEB- > >INF\lib\interclient.jar;C:\idega\webs\nacka\WEB-INF\lib\itext- > >xml.jar;C:\idega\webs\nacka\WEB- > >INF\lib\iwtravel.jar;C:\idega\webs\nacka\WEB- > >INF\lib\jaas.jar;C:\idega\webs\nacka\WEB- > >INF\lib\jai_codec.jar;C:\idega\webs\nacka\WEB- > >INF\lib\jai_core.jar;C:\idega\webs\nacka\WEB-INF\lib\jakarta-poi-1.5.1- > >final-20020615.jar;C:\idega\webs\nacka\WEB-INF\lib\java- > >regex.jar;C:\idega\webs\nacka\WEB-INF\lib\jaxp- > >api.jar;C:\idega\webs\nacka\WEB-INF\lib\jdbc2_0- > >stdext.jar;C:\idega\webs\nacka\WEB- > >INF\lib\jdom.jar;C:\idega\webs\nacka\WEB- > >INF\lib\jimi.jar;C:\idega\webs\nacka\WEB- > >INF\lib\jmxri.jar;C:\idega\webs\nacka\WEB- > >INF\lib\jmxtools.jar;C:\idega\webs\nacka\WEB-INF\lib\jta- > >spec1_0_1.jar;C:\idega\webs\nacka\WEB-INF\lib\log4j- > >core.jar;C:\idega\webs\nacka\WEB-INF\lib\log4j-full- > >1.jar;C:\idega\webs\nacka\WEB-INF\lib\log4j- > >full.jar;C:\idega\webs\nacka\WEB-INF\lib\log4j.jar;C:\idega\webs\nacka\ > WEB- > >INF\lib\lucene-1.2.jar;C:\idega\webs\nacka\WEB- > >INF\lib\mail.jar;C:\idega\webs\nacka\WEB-INF\lib\mimjdbc- > >1_3.jar;C:\idega\webs\nacka\WEB-INF\lib\mysql.jar;C:\idega\webs\nacka\W > EB- > >INF\lib\optional.jar;C:\idega\webs\nacka\WEB- > >INF\lib\oracle.jar;C:\idega\webs\nacka\WEB- > >INF\lib\orapts.jar;C:\idega\webs\nacka\WEB-INF\lib\oreilly- > >tools.jar;C:\idega\webs\nacka\WEB- > >INF\lib\pgjdbc2.jar;C:\idega\webs\nacka\WEB- > >INF\lib\sapdbc.jar;C:\idega\webs\nacka\WEB- > >INF\lib\strengur.jar;C:\idega\webs\nacka\WEB- > >INF\lib\transaction.jar;C:\Program Files\Apache Group\Tomcat > >4.1\shared\classes;C:\Program Files\Apache Group\Tomcat > >4.1\common\classes;C:\Program Files\Apache Group\Tomcat > >4.1\common\endorsed\xercesImpl.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\endorsed\xmlParserAPIs.jar;C:\Program Files\Apache > Group\Tomcat > >4.1\common\lib\activation.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\ant.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\commons-collections.jar;C:\Program Files\Apache > Group\Tomcat > >4.1\common\lib\commons-dbcp.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\commons-logging-api.jar;C:\Program Files\Apache > Group\Tomcat > >4.1\common\lib\commons-pool.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\jasper-compiler.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\jasper-runtime.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\jdbc2_0-stdext.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\jndi.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\jta.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\mail.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\naming-common.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\naming-factory.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\naming-resources.jar;C:\Program Files\Apache > Group\Tomcat > >4.1\common\lib\servlet.jar;C:\Program Files\Apache Group\Tomcat > >4.1\common\lib\tools.jar' > > [javac] '-sourcepath' > > [javac] 'C:\Program Files\Apache Group\Tomcat > >4.1\work\Standalone\localhost\nacka' > > [javac] '-encoding' > > [javac] 'UTF8' > > [javac] '-g' > > [javac] > > [javac] The ' characters around the executable and arguments are > > [javac] not part of the command. > > [javac] File to be compiled: > > [javac] C:\Program Files\Apache Group\Tomcat > >4.1\work\Standalone\localhost\nacka\index_jsp.java > > [javac] javac: invalid flag: C:\Program > > [javac] Usage: javac > > [javac] where possible options include: > > [javac] -g Generate all debugging info > > [javac] -g:none Generate no debugging info > > [javac] -g:{lines,vars,source} Generate only some debugging > info > > [javac] -nowarn Generate no warnings > > [javac] -verbose Output messages about what the > >compiler is doing > > [javac] -deprecation Output source locations where > >deprecated APIs are used > > [javac] -classpath Specify where to find user class > files > > [javac] -sourcepath Specify where to find input source > files > > [javac] -bootclasspath Override location of bootstrap class > >files > > [javac] -extdirs Override location of installed > extensions > > [javac] -d Specify where to place generated class > files > > [javac] -encoding Specify character encoding used by source > >files > > [javac] -source Provide source compatibility with > specified > >release > > [javac] -target Generate class files for specific VM > version > > [javac] -help Print a synopsis of standard > >options > > > > > > > > > > at > >org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorH > andl > >er.java:130) > > at > >org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.j > ava: > >293) > > at > >org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353) > > at > org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) > > at > >org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.j > ava: > >473) > > at > >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j > ava: > >190) > > at > >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 > ) > > at > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > >org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic > atio > >nFilterChain.java:247) > > at > >org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil > terC > >hain.java:193) > > at > >org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal > ve.j > >ava:256) > > at > >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invo > >keNext(StandardPipeline.java:643) > > at > >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > at > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > >org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal > ve.j > >ava:191) > > at > >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invo > >keNext(StandardPipeline.java:643) > > at > >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > at > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > >org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24 > 15) > > at > >org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav > a:18 > >0) > > at > >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invo > >keNext(StandardPipeline.java:643) > > at > >org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV > alve > >.java:171) > > at > >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invo > >keNext(StandardPipeline.java:641) > > at > >org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav > a:17 > >2) > > at > >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invo > >keNext(StandardPipeline.java:641) > > at > >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > at > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > >org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve > .jav > >a:174) > > at > >org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. > invo > >keNext(StandardPipeline.java:643) > > at > >org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: > 480) > > at > >org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) > > at > >org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) > > at > >org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:5 > 94) > > at > >org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process > Conn > >ection(Http11Protocol.java:392) > > at > >org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 > 65) > > at > >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo > l.ja > >va:619) > > at java.lang.Thread.run(Thread.java:536) > > > > > > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]