Home » Java » java – Compilation failed; see the compiler error output for details. Eclipse-Exceptionshub

java – Compilation failed; see the compiler error output for details. Eclipse-Exceptionshub

Posted by: admin February 25, 2020 Leave a comment

Questions:

I’m getting an error while trying to run axelor (open-platform-demo) on Eclipse

when I type @gradlew --no-daemon run, I get the following error message,

Task :modules:axelor-contact:compileJava FAILED

The whole error message is :

C:\Users_\eclipse-workspace\open-platform-demo>@gradlew --no-daemon run
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.1.1/userguide/gradle_dae
mon.html.
Daemon will be stopped at the end of the build stopping after processing

Task :modules:axelor-contact:compileJava FAILED
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Address.java:1: error: unclosed comment
/*
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Address.java:155: error: reached end of
file while parsing
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:175: error: class, interfac
e, or enum expected
public void addAddress(Address item) {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:178: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:180: error: class, interfac
e, or enum expected
item.setContact(this);
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:181: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:189: error: class, interfac
e, or enum expected
public void removeAddress(Address item) {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:192: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:194: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:205: error: class, interfac
e, or enum expected
public void clearAddresses() {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:208: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:211: error: class, interfac
e, or enum expected
public String getAttrs() {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:213: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:215: error: class, interfac
e, or enum expected
public void setAttrs(String attrs) {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:217: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:220: error: class, interfac
e, or enum expected
public boolean equals(Object obj) {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:222: error: class, interfac
e, or enum expected
if (this == obj) return true;
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:223: error: class, interfac
e, or enum expected
if (!(obj instanceof Contact)) return false;
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:225: error: class, interfac
e, or enum expected
final Contact other = (Contact) obj;
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:226: error: class, interfac
e, or enum expected
if (this.getId() != null || other.getId() != null) {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:228: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:232: error: class, interfac
e, or enum expected
return true;
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:233: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:236: error: class, interfac
e, or enum expected
public int hashCode() {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:238: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:241: error: class, interfac
e, or enum expected
public String toString() {
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Contact.java:251: error: class, interfac
e, or enum expected
}
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\repo\AddressRepository.java:1: error: un
closed comment
/*
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\repo\AddressRepository.java:13: error: r
eached end of file while parsing
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\repo\ContactRepository.java:1: error: un
closed comment
/*
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\repo\ContactRepository.java:27: error: r
eached end of file while parsing
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\repo\TitleRepository.java:1: error: uncl
osed comment
/*
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\repo\TitleRepository.java:27: error: rea
ched end of file while parsing
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Title.java:1: error: unclosed comment
/*
^
C:\Users_\eclipse-workspace\open-platform-demo\modules\axelor-contact\build\src-gen\java\com\axelor\contact\db\Title.java:111: error: reached end of fi
le while parsing
35 errors
FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ‘:modules:axelor-contact:compileJava’.
Compilation failed; see the compiler error output for details.

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan
[m to get full insights.

Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/6.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BU¦LD FAILED in 16s
3 actionable tasks: 1 executed, 2 up-to-date

Any ideas as to why the problem occurs?

How to&Answers: