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

Unable to install old versions #57

Open
JakobDev opened this issue Jul 22, 2019 · 5 comments
Open

Unable to install old versions #57

JakobDev opened this issue Jul 22, 2019 · 5 comments

Comments

@JakobDev
Copy link

It is not possible to install old versions like a1.1.2 or b1.2.

@JakobDev
Copy link
Author

@tomsik68 Will this issue be fixed?

@JakobDev
Copy link
Author

JakobDev commented Aug 5, 2019

@tomsik68
It still gives me a error:

jakob@Pluto:~/zw/mclauncher-cmd/out/artifacts/mclauncher_cmd_jar$ java -jar mclauncher-cmd.jar install a1.1.2 /home/jakob/.minecraft/
Exception in thread "main" java.lang.NullPointerException
	at java.util.Objects.requireNonNull(Objects.java:203)
	at sk.tomsik68.mclauncher.impl.versions.mcdownload.Artifact.fromJson(Artifact.java:21)
	at sk.tomsik68.mclauncher.impl.versions.mcdownload.MCDownloadVersion.fromJson(MCDownloadVersion.java:113)
	at sk.tomsik68.mclauncher.impl.versions.mcdownload.MCDownloadOnlineVersionList.retrieveVersionInfo(MCDownloadOnlineVersionList.java:50)
	at sk.tomsik68.mclauncher.impl.versions.mcdownload.MCDownloadVersionList.retrieveVersionInfo(MCDownloadVersionList.java:44)
	at sk.tomsik68.mclauncher.backend.MinecraftLauncherBackend.findVersion(MinecraftLauncherBackend.java:29)
	at sk.tomsik68.mclauncher.backend.MinecraftLauncherBackend.updateMinecraft(MinecraftLauncherBackend.java:61)
	at main.java.jakobdev.mclauncher_cmd.mclauncher_cmd.main(mclauncher_cmd.java:27)

@tomsik68 tomsik68 reopened this Aug 5, 2019
@tomsik68
Copy link
Owner

tomsik68 commented Aug 6, 2019

Interesting, I can't reproduce the error with mclauncher-api version 0.3.6. The issue is, that the downloads section doesn't contain any server artifact. However, the newest version checks if the artifact is present before trying to parse it.

Could you, please, recompile mclauncher-cmd.jar with mclauncher-api 0.3.6 and try again ?
You can find the jar file here: https://github.com/tomsik68/maven-repo/blob/master/sk/tomsik68/mclauncher-api/0.3.6/mclauncher-api-0.3.6.jar?raw=true

@JakobDev
Copy link
Author

JakobDev commented Aug 6, 2019

It looks like the problem is IntelliJ. If I run the programm from IntelliJ it works, but if I built a JAR File, I get the error. Do you now the reason for that?

btw:
My source code is here

@tomsik68
Copy link
Owner

The problem could be the way you build the JAR. It looks like older version of the API is built into the JAR, but IntelliJ uses the newest version to run it.

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

2 participants