Skip to content

Java Data Cache

XMCL caches all found java in a JSON file, which is saved in the xmcl data directory.

sh
xmcl data directory
└─ java.json # java cache file

Java Cache JSON Format

json5
{
    "all": [
        {
            // Path of the executable file
            "path": "path/to/java",
            // Cached version
            "version": "11.0.6",
            // Major version number
            "majorVersion": 11,
            // Whether it is accessible and executable
            "valid": true
        },
    ]
}