Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java Exception #26

Closed
youbrey opened this issue Aug 1, 2023 · 4 comments
Closed

Java Exception #26

youbrey opened this issue Aug 1, 2023 · 4 comments

Comments

@youbrey
Copy link

youbrey commented Aug 1, 2023

`java -jar "C:\Users\Ryzen\Downloads\itunes-backup-explorer-1.4.jar"

Exception in thread "main" java.lang.UnsupportedClassVersionError: me/maxih/itunes_backup_explorer/ITunesBackupExplorerLauncher has been compiled by a more recent version of the Java Runtime (class file version 55.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(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)

Already installed Java JDK latest and set java environment.

@MaxiHuHe04
Copy link
Owner

Hey @youbrey,
iTunes Backup Explorer needs Java 11 at least. It seems that you tried to start it with Java 8.
If you already installed a newer version, make sure that only the right one is in the PATH environment variable or uninstall Java 8.
You can confirm this by typing in java -version.

@youbrey
Copy link
Author

youbrey commented Aug 3, 2023

i have JDK 20 installed but still got error.

Untitled

@LuckDragon666
Copy link

Just wanted to say thank you for this software. It's insane that apple makes it so difficult to have access to data that is paid for. Fuck corporations, long live open source.
I had the same error, and it was java 8 like you said.
The thing is, when you search to install java, it defaults to 8 because it's the recommended.

this is where I found the latest versions of java : https://www.oracle.com/java/technologies/downloads/
it's working for me w j20.
Thank you again for this amazing app.

@MaxiHuHe04
Copy link
Owner

@youbrey Java 8 was probably still selected as the program to open the jar file with. Try to type in the command java -jar "C:\Users\Ryzen\Downloads\itunes-backup-explorer-1.4.jar" again like you did last time.
If that works, change the associated program for .jar files:

  • Right-click on itunes-backup-explorer-1.4.jar
  • "Properties"
  • "Change" besides Open with
  • "More Apps", then scroll down
  • "Look for another app on the PC"
  • Now, navigate to the installation directory of JDK 20 -> bin and choose javaw.exe
    Finally, you should be able to open the program by double-clicking it.

@LuckDragon666 I'm glad I could help. And yes, the situation with Java is a bit unfortunate. There is already a note in the README, but I will change the link to Adoptium that the page doesn't recommend Java 8 anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants