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

Automatic Java Installation (WIP) #166

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Tartilla-TAIGO
Copy link
Contributor

@Tartilla-TAIGO Tartilla-TAIGO commented Nov 18, 2024

  • implemented Java Resolver for automatic Java installation
  • Automatic installation of version.json (in process)

PR-Codex overview

This PR introduces new classes and properties related to Java runtime management in the ProjBobcat project, enhancing the ability to download and manage Java resources effectively.

Detailed summary

  • Added AdditionalArguments property to LaunchSettings.
  • Introduced JavaDownloadInfo class implementing IGameResource.
  • Created JavaPlatformManifest, JavaRuntime, Availability, Manifest, Version, JavaDownloadFiles, JavaFile, JreDownload, and StorageType classes for managing Java runtime data.
  • Implemented JavaInfoResolver class to resolve Java resources asynchronously, including methods for getting runtime and platform information.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@laolarou726
Copy link
Member

I'm not planning to merge this PR right now because distributing Java executables has potential legal issues. I'll do some further investigation to see if we want to add this to the ProjBobcat library!

@laolarou726 laolarou726 self-assigned this Jan 10, 2025
@Tartilla-TAIGO
Copy link
Contributor Author

I've read different people's opinions on this issue. As I understand it, you cannot automatically install Java from the official website without the end user's approval of their license, but you can automatically install java for Minecraft. The automatic installer that is written here installs java with the Mojang server.

@Tartilla-TAIGO
Copy link
Contributor Author

Also, many launchers also install java automatically from the Mojang website. Also, the cmilib.core library, which is a library for running Minecraft in c#, also installs java automatically.

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

Successfully merging this pull request may close these issues.

2 participants