I'm an experienced programmer but new to Java. I'm in the process of learning it to make a plugin for PyCharm. I started by following the instructions: http://www.jetbrains.org/intellij/sdk/docs/welcome.html and reaching a stop at the "Check Out And Build Community Edition" with the following at build time:
Information:java: Errors occurred while compiling module 'updater'
Information:javac 1.8.0_31 was used to compile java sources
Information:9/11/2017 2:58 PM - Compilation completed with 2 errors and 3 warnings in 1m 11s 304ms
Warning:java: source value 1.4 is obsolete and will be removed in a future release
Warning:java: To suppress warnings about obsolete options, use -Xlint:-options.
Warning:java: source value 1.5 is obsolete and will be removed in a future release
Information:Information:java: Some input files use unchecked or unsafe operations.
Information:Information:java: Recompile with -Xlint:unchecked for details.
Error:Error:line (292)java: no suitable method found for sort(java.util.List<capture#1 of ? extends java.util.zip.ZipEntry>,java.util.Comparator<java.util.zip.ZipEntry>)
method java.util.Collections.<T>sort(java.util.List<T>) is not applicable
(cannot infer type-variable(s) T
(actual and formal argument lists differ in length))
method java.util.Collections.<T>sort(java.util.List<T>,java.util.Comparator<? super T>) is not applicable
(cannot infer type-variable(s) T,T,U
(argument mismatch; java.util.Comparator<capture#1 of ? extends java.util.zip.ZipEntry> cannot be converted to java.util.Comparator<? super capture#1 of ? extends java.util.zip.ZipEntry>))
Error:Error:line (29)java: incompatible types: java.lang.Object cannot be converted to com.intellij.updater.Win32RestartManager
I'm working on a Windows 8.1 Pro x64 system with Java -version:
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) Client VM (build 25.131-b11, mixed mode, sharing)
Some other notes are this is a fresh install as of today. Following the instructions to make a SDK as "IntelliJ jdk" seemed maybe old documentation ? As the process went automatically to the IntelliJ Plugin SDK so I did three things creating a 1.8 jdk, IntelliJ jdk, and the long automatically named IntelliJ IDEA Community Edition IC-172.3968.16 - I ran builds on all three just to see (same results). I also ensured the instructions to add tools.jar to global and all the modules as it wasn't clear.
I had to google a few other errors involving hunting down a file for "gradle" to open as a project and check an "auto-import" box as that was the first stoppage. Sorry, the quotes are because I don't have in-depth knowledge and was just following instructions of helpful stackoverflow people or others. The second was a build stoppage with complaints of version issues the a search indicated "maven" required a build of 1.8.... IntelliJ out of the box had the compiler revision level as 1.2 - nothing in the instructions about this.
So now I'm stuck with the above two errors. Any help is appreciated and may this will help the devs with the feedback. Some of the help was from a few years ago so a little surprised.
Thanks in advance !