Audiveris / audiveris

Latest generation of Audiveris OMR engine
https://audiveris.github.io/audiveris
GNU Affero General Public License v3.0
1.63k stars 239 forks source link

Cannot start on Windows 10 #720

Open charlyms opened 8 months ago

charlyms commented 8 months ago

Something went wrong with my installation of Audiveris_Setup-5.3.1-windows-x86_64.exe on Win 10 Home 22H2. As a layman I describe it as follows: The program tries to start, the command line opens for a second but fails immediately. What is missing? Charlyms

hbitteur commented 8 months ago

We can suspect a too old Java environment on your machine.

You can simply check your installed Java version by the command:

java -version

The 5.3.1 release needs Java 17 or higher. So please install Java 17 if needed.

igitur commented 3 months ago

Can the .bat and .sh files not detect whether the required version of Java is installed. I see that it does check whether Java is installed at all, but it doesn't check whether the version is sufficiently high.

hbitteur commented 3 months ago

Can the .bat and .sh files not detect whether the required version of Java is installed.

Yes we can! :-) So much that this is already implemented in 5.4-alpha (see app:build.gradle lines 274..290 on the development branch) We should release 5.4 shortly

igitur commented 3 months ago

@hbitteur Great thanks. I was about to try to submit a PR for this. Was struggling to find where the .bat is, but now you've pointed me to the build process.

charlyms commented 3 months ago

Thank you all for your help!

Sebert81 commented 2 weeks ago

Hi, I have the same problem, i downloaded the latest Java version via https://www.java.com/de/download/manual.jsp

Starting audiveris I get this feedback: C:\Program Files\Audiveris\bin>audiveris Fehler: Beim Laden der Klasse Audiveris ist ein LinkageError aufgetreten java.lang.UnsupportedClassVersionError: Audiveris has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

Java Check:

`C:\Program Files\Audiveris\bin>java -version
java version "1.8.0_431"
Java(TM) SE Runtime Environment (build 1.8.0_431-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.431-b10, mixed mode)

What can I do?

Thanks`

hbitteur commented 2 weeks ago

@Sebert81 You need Java 17 and you have only Java 8.

Please read the Java related section in Audiveris handbook which points to a more useful site for Java download.

On this site, since Java 17 is not the latest version (i.e. 23 as of this writing), you'll have to go down the page to find Java 17.