Installing CAS 7 on Debian 12

258 views
Skip to first unread message

wouldsmina

unread,
Jul 30, 2024, 11:35:36 AM7/30/24
to CAS Community

Hello,

I am trying to install CAS 7.0 or 7.1 on Debian 12. I have installed Java 21 from the package provided here: https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb

and Tomcat 10 from the Debian repository.

When I build, I get the following error:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':bootWar'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
      > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=21, vendor=matching('AMAZON'), implementation=vendor-specific} for LINUX on x86_64.
         > No matching toolchain could be found in the locally installed toolchains or the configured toolchain download repositories.

Did I use the wrong version of Java or tomcat?

Wouldsmina.

Ray Bon

unread,
Jul 30, 2024, 10:57:23 PM7/30/24
to cas-...@apereo.org
Wouldsmina,

What do you get for 
$ java -version

You could set JAVA_HOME to point to your jdk21 install location.

Ray

wouldsmina

unread,
Jul 31, 2024, 8:20:37 AM7/31/24
to cas-...@apereo.org
Hello Ray,

$ java --version

java 21.0.4 2024-07-16 LTS
Java(TM) SE Runtime Environment (build 21.0.4+8-LTS-274)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.4+8-LTS-274, mixed mode, sharing)

I already set JAVA_HOME to /usr/lib/jvm/jdk-21.0.4-oracle-x64/

wouldsmina.

--
- Website: https://apereo.github.io/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+u...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/ffc455421fd7e0a56cff2c4907cf39b44828fe8f.camel%40uvic.ca.

Dmitriy Kopylenko

unread,
Jul 31, 2024, 8:50:23 AM7/31/24
to cas-...@apereo.org
You have JRE. You need to install JDK (which includes javac compiler)

D. 

wouldsmina

unread,
Jul 31, 2024, 9:17:09 AM7/31/24
to cas-...@apereo.org

javac command exist :
# javac --version
javac 21.0.4

on my CAS server v6 in production (debian 11), the java --version command returns almost the same thing:
# java --version
openjdk 11.0.23 2024-04-16
OpenJDK Runtime Environment (build 11.0.23+9-post-Debian-1deb11u1)
OpenJDK 64-Bit Server VM (build 11.0.23+9-post-Debian-1deb11u1, mixed mode, sharing)

Wouldsmina.

Message has been deleted

Emmett MacDonald

unread,
Jul 31, 2024, 10:52:54 AM7/31/24
to CAS Community, wouldsmina
It seems like they add Amazon Corretto as a build requirement. I'm not sure why.
Emmett.
Reply all
Reply to author
Forward
0 new messages