CmlLib
English (v4)
English (v4)
  • 🧊CmlLib Projects
  • 🚀CmlLib.Core
    • Home
    • Getting Started
      • Minecraft Launcher
      • Minecraft Path
      • Versions
      • Launch Options
      • Event Handling
    • Login and Sessions
      • Microsoft Xbox Account
      • Offline Account
    • More APIs
      • MinecraftLauncherParameters
      • Rules
      • FileExtractor
      • GameInstaller
      • Java
    • Mod Loader Installers
      • Forge Installer
      • Fabric Installer
      • Quilt Installer
      • LiteLoader Installer
    • Utilities
      • Minecraft Changelogs
    • Resources
      • FAQ
      • Known Issues
      • Sample Launcher
      • License
  • 🔓Auth.Microsoft
    • Home
    • CmlLib.Core.Auth.Microsoft
      • JELoginHandler
      • JELoginHandlerBuilder
      • JEAuthenticator
      • Authentication with MSAL
    • XboxAuthNet.Game
      • OAuth
      • XboxAuth
      • XboxAuthException
      • AccountManager
      • Accounts
    • XboxAuthNet.Game.Msal
      • ClientID
      • MsalClientHelper
      • OAuth
    • CmlLib.Core.Bedrock.Auth
    • Resources
  • 🌐MojangAPI
    • Home
    • Mojang API
    • SecurityQuestion
  • ⚒️Installer.Forge
    • Home
    • Supported Versions
    • Getting Started
    • MForge
    • ForgeVersionLoader
Powered by GitBook
On this page
  • IJavaPathResolver
  • JavaFileExtractor
Edit on GitHub
  1. CmlLib.Core
  2. More APIs

Java

IJavaPathResolver

IJavaPathResolver returns a list of installed Java versions and returns the path to the binary file for the given Java version.

The built-in IJavaPathResolver implementation, MinecraftJavaPathResolver, manages the Java versions within the MinecraftPath.Runtime directory.

You can set the IJavaPathResolver in MinecraftLauncherParameters

JavaFileExtractor

The library installs the Java provided by Mojang, so you don't need to have Java pre-installed on the user's PC. See JavaFileExtractor in FileExtractor.

JavaFileExtractor does not support all platforms. On unsupported platform you should specify Java binary path yourself. See JavaPath in Launch Options.

Supported platform:

  • windows-x64

  • windows-x86

  • windows-arm64

  • linux (x64)

  • linux-i386 (x86)

  • mac-os (x64)

  • mac-os-arm64

PreviousGameInstallerNextMod Loader Installers

Last updated 9 months ago

🚀