Java.lang.noclassdeffound java/annotation/PreDestroy

I want to learn cuba so I downloaded and installed cuba 6.7.2.
The problem is when i click the start button, I am presented with “java.lang.noclassdeffounderror: java/annotation/PreDestroy” and is unable to run the server in port 8111.
what do i need to do.

Hi,

Could you clarify what OS and Java versions do you use?

Regards,
Gleb

Hi Gleb!

Info requested:
OS : Windows 7 Home Basic Service Pack 1.;
Java: Version 9.0.1

Other Info that may help::
IDE: Eclipse, Oxygen.1a Release (4.7.1a).
RDBMSs: MySql 6.5, Oracle xe
Framework: Cuba Studio 6.7

Your assistance is highly appreciated.

Bernie

CUBA Studio is incompatible with Java 9, so you need to install Java 8 and make sure that JAVA_HOME refers to it.

Regards,
Gleb

Gee… Thanks Gleb!
I had java 8 previously installed so I just changed my JAVA_HOME variable and it worked!
I have started learning cuba today.

Regards,
Bernie