Skip to content

mvn build verify fails with compilation failure #838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NetScr1be opened this issue Oct 8, 2017 · 2 comments
Closed

mvn build verify fails with compilation failure #838

NetScr1be opened this issue Oct 8, 2017 · 2 comments

Comments

@NetScr1be
Copy link

NetScr1be commented Oct 8, 2017

uname -a returns;

Linux AspireOneLinux 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06) i686 GNU/Linux

Started with git clone https://github.com/jantje/arduino-eclipse-plugin

Installed Maven via Debian apt-get

Maven version

Version: 3.3.9-3~bpo8+1
Installed-Size: 113
Maintainer: Debian Java Maintainers [email protected]
Architecture: all
Replaces: maven2 (<< 2.2.1-11)
Depends: default-jre-headless (>= 2:1.7) | java7-runtime-headless, libmaven3-core-java (= 3.3.9-3~bpo8+1)
Breaks: maven2 (<< 2.2.1-11)

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.24.0:compile (default-compile) on project io.sloeber.core: Compilation failure: Compilation failure:

[ERROR] /home/patrick/code/arduino-eclipse-plugin/io.sloeber.core/src/io/sloeber/core/common/InstancePreferences.java:[122]

[ERROR] setGlobalValue(KEY_PRIVATE_LIBRARY_PATHS, String.join(File.pathSeparator, folderName));
[ERROR] ^^^^
[ERROR] The method join(String, String[]) is undefined for the type String
[
ERROR] /home/patrick/code/arduino-eclipse-plugin/io.sloeber.core/src/io/sloeber/core/common/InstancePreferences.java:[134]
[ERROR] setGlobalValue(KEY_PRIVATE_HARDWARE_PATHS, String.join(File.pathSeparator, folderName));
[ERROR] ^^^^
[ERROR] The method join(String, String[]) is undefined for the type String

[ERROR] /home/patrick/code/arduino-eclipse-plugin/io.sloeber.core/src/io/sloeber/core/api/BoardsManager.java:[338]
[ERROR] Messages.Helpers_No_boards_txt_found + String.join("\n", hardwareFolders), null)); //$NON-NLS-1$
[ERROR] ^^^^
[ERROR] The method join(String, String[]) is undefined for the type String

[ERROR] /home/patrick/code/arduino-eclipse-plugin/io.sloeber.core/src/io/sloeber/core/api/BoardsManager.java:[435]
[ERROR] this.boards = String.join("\n", internalPlatformm.getBoardNames()); //$NON-NLS-1$
[ERROR] ^^^^
[ERROR] The method join(String, List) is undefined for the type String

[ERROR] /home/patrick/code/arduino-eclipse-plugin/io.sloeber.core/src/io/sloeber/core/api/VersionNumber.java:[40]
[ERROR] return String.join(".", this.parts); //$NON-NLS-1$
[ERROR] ^^^^
[ERROR] The method join(String, String[]) is undefined for the type String

[ERROR] 5 problems (5 errors)
<

Please advise on any other info needed and how to proceed

@jantje
Copy link
Member

jantje commented Oct 8, 2017

This is probably a duplicate of #334

@wimjongman
Copy link
Member

You could have figured this out yourself.

The method join(String, String[]) is undefined for the type String because you compile with Java 7 and we code with Java 8.

Install Java 8 and try again.

[ERROR] return String.join(".", this.parts); //$NON-NLS-1$
[ERROR] ^^^^
[ERROR] The method join(String, String[]) is undefined for the type String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants