sbegaudeau / AngularJS-Eclipse-Tools

AngularJS Eclipse Tools
14 stars 29 forks source link

Problem when building #4

Closed ktomala closed 10 years ago

ktomala commented 10 years ago

Hi. I'm getting such error when trying to compile AngularJS-Eclipse-Tools. I'm using Indigo. $ java -version java version "1.6.0_27" OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

[INFO] Compiling 9 source files to /home/wolverine/src/AngularJS-Eclipse-Tools/bundles/org.obeonetwork.angularjs.eclipse.tools.ide.core/target/classes [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] AngularJS Eclipse Tools ........................... SUCCESS [4.007s] [INFO] AngularJS Eclipse Tools IDE Core .................. FAILURE [6.413s] [INFO] AngularJS Eclipse Tools IDE UI .................... SKIPPED [INFO] AngularJS Eclipse Tools Documentation ............. SKIPPED [INFO] AngularJS Eclipse Tools Feature ................... SKIPPED [INFO] AngularJS Eclipse Tools Repository ................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2:35.318s [INFO] Finished at: Tue Sep 17 11:38:19 CEST 2013 [INFO] Final Memory: 74M/189M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.17.0:compile (default-compile) on project org.obeonetwork.angularjs.eclipse.tools.ide.core: Compilation failure: Compilation failure: [ERROR] /home/wolverine/src/AngularJS-Eclipse-Tools/bundles/org.obeonetwork.angularjs.eclipse.tools.ide.core/src/main/java/org/obeonetwork/angularjs/eclipse/tools/ide/core/internal/project/AngularJSProject.java:[75,0] [ERROR] String lineSeparator = System.lineSeparator(); [ERROR] ^^^^^^^^^^^^^ [ERROR] The method lineSeparator() is undefined for the type System [ERROR] 1 problem (1 error) [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :org.obeonetwork.angularjs.eclipse.tools.ide.core

olliefreeman commented 10 years ago

I had the same issue, it's a little bit odd as if programming in Java System.lineSeparator() works fine but it doesn't seem to work when building this project. I found the fastest solution is edit the named java file and change the line (in this case 75) to read:

String lineSeparator = "\n"

or whatever your system's line separator is.

You will encounter the same error for a further 4 files in the next step.

P.S this is a complete hack and as to why the issue is occurring I have no idea.

sbegaudeau commented 10 years ago

$ java -version java version "1.6.0_27"

I had the same issue, it's a little bit odd as if programming in Java System.lineSeparator() works fine but it doesn't seem to work when building this project.

You need to use Java 7 with Maven. System.lineSeparator() came with Java 7.