Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 51583 invoked from network); 6 Jun 2007 14:04:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 14:04:31 -0000 Received: (qmail 74728 invoked by uid 500); 6 Jun 2007 14:04:34 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 74698 invoked by uid 500); 6 Jun 2007 14:04:34 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 74689 invoked by uid 99); 6 Jun 2007 14:04:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 07:04:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.224.30.66] (HELO service-01.spree.de) (212.224.30.66) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 07:04:29 -0700 Received: from [127.0.0.1] ([172.16.1.88]) (authenticated bits=0) by service-01.spree.de (8.13.4/8.13.4/Debian-3) with ESMTP id l56E3tTq014468 for ; Wed, 6 Jun 2007 16:04:06 +0200 Message-ID: <4666BEC7.6020809@spree.de> Date: Wed, 06 Jun 2007 16:03:51 +0200 From: Michael Bouschen Organization: Tech@Spree Engineering User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: dev@openjpa.apache.org Subject: Error building openjpa-kernel on windows Content-Type: multipart/mixed; boundary="------------030906080109070601040103" X-Virus-Checked: Checked by ClamAV on apache.org --------------030906080109070601040103 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, just a heads up: I tried building openjpa-kernel on windows and ran into a javacc problem. The source generated by the compiler generation tool includes the name of the generated file with its path: /*@bgen(jjtree) Generated By:JJTree: Do not edit this line. c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jj */ Please note, because I'm running it on windows the path separator is a backslash and my home directory is c:\users\michael. But \u has a special meaning (unicode escape) even within comments. This means the generated source does not compile and results in a java.lang.Error: Invalid escape character at line 1 column 64. This is a known problem with javac and there is already an issue filed for this: https://javacc.dev.java.net/issues/show_bug.cgi?id=135 There is a simple workaround: Make sure the path name of the generated file does not include any directory starting with a "u". So I moved my workspace to a directory different from c:\users\michael (e.g. c:\projects) and could build successfully. Regards Michael -- Tech@Spree Engineering GmbH Tel.: +49/(0)30/235 520-33 Buelowstr. 66 Fax.: +49/(0)30/217 520-12 10783 Berlin mailto:mbo.tech@spree.de Geschaeftsfuehrung: Dr. Gerhard Mueller-Proefrock Anna-Kristin Proefrock Sitz Berlin, Amtsgericht Charlottenburg, HRB 564 52 --------------030906080109070601040103 Content-Type: text/plain; name="build-error.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="build-error.txt" [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building OpenJPA Kernel [INFO] task-segment: [install] [INFO] ---------------------------------------------------------------------------- [INFO] [javacc:jjtree {execution: jjtree-jpql}] Java Compiler Compiler Version 4.0 (Tree Builder) (type "jjtree" with no arguments for help) Reading from file c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\src\main\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jjt . . . File "c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\Node.java" does not exist. Will create one. Annotated grammar generated successfully in c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jj [INFO] [javacc:javacc {execution: javacc-jpql}] Java Compiler Compiler Version 4.0 (Parser Generator) (type "javacc" with no arguments for help) Reading from file c:\users\michael\openjpa\workspace\trunk\openjpa-kernel\target\generated-sources\jjtree\org\apache\openjpa\kernel\jpql\JPQL.jj . . . [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Invalid escape character at line 1 column 64. [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.Error: Invalid escape character at line 1 column 64. at org.javacc.parser.JavaCharStream.readChar(Unknown Source) at org.javacc.parser.JavaCCParserTokenManager.getNextToken(Unknown Source) at org.javacc.parser.JavaCCParser.jj_ntk(Unknown Source) at org.javacc.parser.JavaCCParser.javacc_options(Unknown Source) at org.javacc.parser.JavaCCParser.javacc_input(Unknown Source) at org.javacc.parser.Main.mainProgram(Unknown Source) at org.codehaus.mojo.javacc.JavaCCMojo.execute(JavaCCMojo.java:235) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Jun 06 15:36:31 CEST 2007 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------ --------------030906080109070601040103--