private void validateConsistency(Set<String> settings) throws TikaConfigException {
        if (host == null) {
            throw new TikaConfigException("Must specify 'host'");
        }

        if (!StringUtils.isBlank(port)) {
            setPort(port);
        }

        if (isNoFork()) {
            for (String onlyFork : ONLY_IN_FORK_MODE) {
                if (settings.contains(onlyFork)) {
                    throw new TikaConfigException("Can't set param=" + onlyFork + "if you've selected noFork");
                }
            }
        }
        //add headless if not already configured
        boolean foundHeadlessOption = forkedJvmArgs
                .stream()
                .anyMatch(arg -> arg.contains("java.awt.headless"));
        //if user has already specified headless...don't modify
        if (!foundHeadlessOption) {
            forkedJvmArgs.add("-Djava.awt.headless=true");
        }


    }
full path to the java executable

@return
tika-server/tika-server-core/src/main/java/org/apache/tika/server/core/TikaServerConfig.java