asked Dec 26 '19 at 16:09 by Super8 (40)

¡Hi! I couln't run Bitwig 3.1.1 because it states it has been compiled with a newer version of JAVA (stating my system supports up to 52 and it needs the 56 version).

I've changed from openjdk11 to openjdk12 in an effort to fulfill this requirement (as I understand, the jdk12 is the one you need for 56) but I still do get the message.

Previous versions work flawless.

This is the output I'm talking about.

" Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: com/bitwig/flt/app/BitwigStudioMain has been compiled by a more recent version of the Java Runtime (class file version 56.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass( at at at$100( at$ at$ at Method) at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( at sun.launcher.LauncherHelper.checkAndLoadMain( Child process with PID 3704 exited with error code: 1


| |

I think i'v found the answer. Even tough I installed jdk12 my sistem was employing the 8 version. As soon as I get home i'll try it, confirm here that it works and commit the package to my distro's repo.


answered Dec 26 '19 at 21:49 by Super8 (40)

There is no need to install any specific Java version into your Linux system (in order to run Bitwig). Bitwig Studio comes with its own Java runtime so that it is independent from your system's Java environment. You can find it in /opt/bitwig-studio/lib/jre/.

You don't even need a JDK to run Java applications. The Java Development Kit is for development. You need a JRE. The Java Runtime Environment is what is needed for execution. This is the JRE bundled with Bitwig 3.1 installed on my Ubuntu 18.04 system: $ /opt/bitwig-studio/lib/jre/bin/java --version java 12.0.2 2019-07-16 Java(TM) SE Runtime Environment (build 12.0.2+10)

Class file version 52 indicates Java 8: 49 = Java 5 50 = Java 6 51 = Java 7 52 = Java 8 53 = Java 9 54 = Java 10 55 = Java 11 56 = Java 12 57 = Java 13

As to why Bitwig gets confused (i.e. using an older Java version), I don't know. Did you manually change directories or implement your own start script by any chance? Unless you need the JDK for other purpose, I suggest to uninstall all JDKs completely. And IIRC, previous versions of Bitwig came with JRE 8, maybe it did not get uninstalled properly?

I do have an outdated Java 8 in my system as well, but it does not get used by Bitwig: $ java -version java version "1.8.0_201" Java(TM) SE Runtime Environment (build 1.8.0_201-b09) (This is an Oracle runtime.)


answered Jan 21 at 04:16 by mindanao (72)

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Dec 26 '19 at 16:09

Seen: 115 times

Last updated: Jan 21 at 04:16