openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Bouschen <mbo.t...@spree.de>
Subject Error building openjpa-kernel on windows
Date Wed, 06 Jun 2007 14:03:51 GMT
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 


Mime
View raw message