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

OPPM fails to install [HTTPS certificate not supported by old Java versions] #3696

Closed
HauberRBLX opened this issue Apr 1, 2024 · 26 comments
Closed

Comments

@HauberRBLX
Copy link

So yesterday while playing around with a modpack, I discovered OpenComputers. Today I installed the mod on a seperate modpack I made for testing OpenComputers, the OS install went well, however when I tried to install OPPM, it told me that it couldnt connect to the internet. After reconnecting my WiFi, using a VPN and using my mobile hotspot, the issue persisted. I have also checked and the computer is configured correctly. It has an internet card and any other components it may need.

I am on Minecraft 1.7.10 with OpenComputers version 1.8.3+089dd28 and Forge 10.13.4.1614 installed.

The log file can be viewed here: https://pastebin.com/DFq4FJWm

@FINK89i
Copy link

FINK89i commented Apr 4, 2024

ye bro also i have this problem try if irc works to me irc worked but then afther a reboot it stoped whitch is weird before the worked fine

@HauberRBLX
Copy link
Author

@FINK89i Please write your message again, but this time in more understandable english thank you very much

@asiekierka
Copy link
Contributor

I suspect it has something to do with the Java version being outdated:

javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

@HauberRBLX
Copy link
Author

HauberRBLX commented Apr 7, 2024

@asiekierka I am running Java 1.8.0_261. I don't think that's the issue.

Here's what it shows me when I run java -version:
java version "1.8.0_261"
Java(TM) SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)

@asiekierka
Copy link
Contributor

The Minecraft launcher provides its own version of Java:

[14:21:49] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\Maximilian\curseforge\minecraft\Install\runtime\jre-legacy\windows-x64\jre-legacy

@FINK89i
Copy link

FINK89i commented Apr 7, 2024

@FINK89i Please write your message again, but this time in more understandable english thank you very much

ok bro sorry im not that good at English to IRC chat worked only one time but after i did reboot the computer on minecraft it didn't work anymore end oppm never work but some moths ago all worked fine so i dont know maby a windows update or a java update caused a error in the code also i dont know if other people have this problem

@HauberRBLX
Copy link
Author

The Minecraft launcher provides its own version of Java:

[14:21:49] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\Maximilian\curseforge\minecraft\Install\runtime\jre-legacy\windows-x64\jre-legacy

So what do I do?

@xJon
Copy link

xJon commented Apr 12, 2024

Enabling ArchaicFix's enableLetsEncryptRoot feature might have a positive effect?

@HauberRBLX
Copy link
Author

Enabling ArchaicFix's enableLetsEncryptRoot feature might have a positive effect?

ArchaicFix crashes the game if I try to run Minecraft with it

@zeng-github01
Copy link

zeng-github01 commented Apr 13, 2024

The Minecraft launcher provides its own version of Java:
[14:21:49] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\Maximilian\curseforge\minecraft\Install\runtime\jre-legacy\windows-x64\jre-legacy

So what do I do?

Replace the Java 8 version with the latest version. For example, turn off "Use Java provided by Minecraft" in ATLauncher
After testing, there are no problems

@HauberRBLX
Copy link
Author

The Minecraft launcher provides its own version of Java:
[14:21:49] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\Maximilian\curseforge\minecraft\Install\runtime\jre-legacy\windows-x64\jre-legacy

So what do I do?

Replace the Java 8 version with the latest version. For example, turn off "Use Java provided by Minecraft" in ATLauncher After testing, there are no problems

I'm using the CurseForge Launcher. Is there any way to do that on there?

@zeng-github01
Copy link

The Minecraft launcher provides its own version of Java:
[14:21:49] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_51, running on Windows 10:amd64:10.0, installed at C:\Users\Maximilian\curseforge\minecraft\Install\runtime\jre-legacy\windows-x64\jre-legacy

So what do I do?

Replace the Java 8 version with the latest version. For example, turn off "Use Java provided by Minecraft" in ATLauncher After testing, there are no problems

I'm using the CurseForge Launcher. Is there any way to do that on there?

Sorry, I haven't used this before. Why don't you search it on Google?

@xJon
Copy link

xJon commented Apr 13, 2024

@HauberRBLX You'd need to manually change the Java version after CurseForge launches the vanilla launcher -> Installation Tab -> Edit the modded profile -> MORE OPTIONS -> edit JAVA EXECUTABLE.

@HauberRBLX
Copy link
Author

@HauberRBLX You'd need to manually change the Java version after CurseForge launches the vanilla launcher -> Installation Tab -> Edit the modded profile -> MORE OPTIONS -> edit JAVA EXECUTABLE.

What would I change it to?

@xJon
Copy link

xJon commented Apr 13, 2024

@HauberRBLX An updated Java 8 executable.

@FINK89i
Copy link

FINK89i commented Apr 14, 2024

guys i have just solved so this is how i did it im using legacy launcher because i dont have money for minecraft sorry but in the java options there is a custom end so i have download java 8 x64 from the site end in the launcher i have set the custom to C:\Program Files\Java\jre-1.8\bin\javaw.exe end it works now just fine i can install oppm end use irc now

@patapon888
Copy link

if you are watching this in the future, it is C:\Program Files\Java\latest\jre-1.8\bin\javaw.exe

there is now latest in the url

@asiekierka asiekierka changed the title OPPM fails to install OPPM fails to install [HTTPS certificate not supported by old Java versions] Oct 27, 2024
@asiekierka asiekierka pinned this issue Oct 27, 2024
@xJon
Copy link

xJon commented Oct 27, 2024

On 1.12.2 this is also resolved by installing CensoredASM.

@HauberRBLX
Copy link
Author

On 1.12.2 this is also resolved by installing CensoredASM.

Yea only issue is I'm not on 1.12.2 but on 1.7.10...

@xJon
Copy link

xJon commented Oct 27, 2024

@HauberRBLX In this case just change the Java 8 version CurseForge uses to an updated one over the default one:
image

@HauberRBLX
Copy link
Author

@HauberRBLX In this case just change the Java 8 version CurseForge uses to an updated one over the default one: image

So do I just replace it with the java in program files?

@HauberRBLX
Copy link
Author

So after replacing the Java 8 with the javaw from the one I installed, I get this error. Any idea?
grafik

@xJon
Copy link

xJon commented Oct 27, 2024

@HauberRBLX Did you manually install Java 8?

@HauberRBLX
Copy link
Author

@xJon yes, i used the installer

@ff66theone
Copy link
Contributor

I already encountered that error when running 32 bit Java on a 64 bit PC. Try using the 64 bit version, or use a very small -xmx argument (not recommended)

@HauberRBLX
Copy link
Author

I already encountered that error when running 32 bit Java on a 64 bit PC. Try using the 64 bit version, or use a very small -xmx argument (not recommended)

That finally did the trick and I was able to install OPPM.

With that I can finally close this issue, thanks to everyone who helped (and tried to)!

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

7 participants