cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMonitor-Power 1.2.1 installation problem

MMotyl
Associate
Hi
When I attempt to install the 1.2.1 version of STM32CubeMonitor-Power on Ubuntu Linux, I encounter a "java.lang.ArrayIndexOutOfBoundsException". I saw some posts about problems with files on the server, but they are quite old, and I have a problem with today's download.
Can someone help me with this problem?

Console:
-> % java -jar SetupSTM32CubeMonitor-Power.jar
Command line arguments: 
SEVERE: java.lang.ArrayIndexOutOfBoundsException: Index 70131 out of bounds for length 22674

sha256 checksums:
SetupSTM32CubeMonitor-Power.jar 6638b2c15ada4d359f796484856db1c54d120acfca4c59775a265a8665bf3b35
cubemonpwr-lin-v1-2-1.zip 01d4e9fcc6a3024f957b7c70f1ec3912557b41a189f075822a4ec5f059a60824

1 ACCEPTED SOLUTION

Accepted Solutions
kalpesh-Dryad
Associate

Install Java 17 (Old version) instead of the latest version Java 21, And it will work.

I also had the same problem; Java 17 helps.

View solution in original post

2 REPLIES 2
kalpesh-Dryad
Associate

Install Java 17 (Old version) instead of the latest version Java 21, And it will work.

I also had the same problem; Java 17 helps.

Java 17 solves the problem.

Additionally - my current version of Ubuntu uses openjdk 21 as default and I had to run openjdk 17 using this command:

/usr/lib/jvm/java-17-openjdk-amd64/bin/java -jar ./SetupSTM32CubeMonitor-Power.jar