Environment variables#
The following environment variables modify the default behavior of both the Python API and the command-line interface. Since they affect any program that uses cjdk as a library, they are intended for setting user preferences or for testing applications.
CJDK_ARCH
#
Set to the name of a CPU architecture to override the default (which is the
current CPU architecture as reported by Python’s platform.machine()
).
Added in version 0.2.0.
CJDK_CACHE_DIR
#
Set to an absolute path to override the default cache directory, used when not overridden by a keyword argument or command-line option.
CJDK_HIDE_PROGRESS_BARS
#
Set to 1
, YES
, or TRUE
(case insensitive) to disable all progress bars.
Note that this only hides progress bars, unlike --no-progress
or
progress=False
which hide all progress messages.
This can be used when the output is being captured by tools that do not correctly emulate a terminal (such as Jupyter Book at the time of writing). You probably don’t need it in Jupyter Lab or regular terminals.
Added in version 0.3.0.
CJDK_INDEX_TTL
#
Set to an integer number of seconds to override the default time-to-live for the cached JDK index.
Added in version 0.2.0.
CJDK_INDEX_URL
#
Set to a URL to override the default JDK index.
Added in version 0.2.0.
CJDK_OS
#
Set to the name of an operating system to override the default (which is the
current operating system as reported by Python’s sys.platform
).
Added in version 0.2.0.
CJDK_VENDOR
#
Set to a JDK vendor to override the default (adoptium
).