Can i get java code autocompletion in Enonic?

Should I get autocompletion while programming in JAVA within an Enonic project?
I tried it with different IDE’s, but it doesn’t seem to work, it treats .java file just like a normal text file.

I don’t know if it’s related, but I keep getting the following error:

Could not run phased build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-5.4-bin.zip'.

java.lang.UnsupportedClassVersionError: com/enonic/gradle/xp/doc/DocPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
com/enonic/gradle/xp/doc/DocPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Enonic version: 7.0.0
OS: Ubuntu
IDE: VsCode

First thing to sort out, which version of XP are you using?
Apparently, you are trying to build an XP7 app and compiling things with a version 8 JVM. XP7 and the SDK bundles JVM11.

1 Like

You’re right.
My bad, I didn’t look at java class file version.
So, installing JDK 11 and setting $JAVA_HOME to point to that version should work?

Hmm, you should compile it using XP SDK…