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

Error "A Java exception has occurred" #135

Open
lemaximedu66 opened this issue Sep 14, 2024 · 8 comments
Open

Error "A Java exception has occurred" #135

lemaximedu66 opened this issue Sep 14, 2024 · 8 comments
Assignees
Labels

Comments

@lemaximedu66
Copy link

image
very descriptive thx java lmao

image

@kaklakariada
Copy link
Owner

Hi @lemaximedu66 ,

It looks like you are using an old version of Java. Please download a newer version, for example 21 from https://adoptium.net/temurin/releases/?package=jre and install it.

@kaklakariada kaklakariada self-assigned this Sep 14, 2024
@kaklakariada
Copy link
Owner

If this does not work, please start PortMapper on the command line:

java -jar portmapper.jar

This should output a more helpful error message.

@lemaximedu66
Copy link
Author

idk why but it works with the "java" command wtf

@lemaximedu66
Copy link
Author

image

im confused

@lemaximedu66
Copy link
Author

Hi @lemaximedu66 ,

It looks like you are using an old version of Java. Please download a newer version, for example 21 from https://adoptium.net/temurin/releases/?package=jre and install it.

i updated it less than 1-2 months ago

@kaklakariada
Copy link
Owner

OK. It looks like your Windows uses two different Java versions: it uses Java 8 when double clicking the .jar file, but the Path environment variable points to java command from Java 19.

You could

  1. Uninstall Java 8 and Java 19 and install Java 21 and try to double click again
  2. Create a small .bat file containing the java -jar command und use that for starting PortMapper.

@lemaximedu66
Copy link
Author

thats weird cuz when you go on java.com it makes you download the first version (the java 8 thing) and i think the other is called Java Developpment kit or something and it isn't offered on java.com and i also think minecraft won't run on jdk

@kaklakariada
Copy link
Owner

kaklakariada commented Sep 14, 2024

That's strange. Java 8 is deprecated since a long time and not supported any more. I recommend downloading from https://adoptium.net/temurin/releases/?package=jre&os=windows

PortMapper needs Java 11 or later.

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

No branches or pull requests

2 participants