Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Error running on windows 10 - 'exec' is not recognized  #17

@whatalokation

Description

@whatalokation

Tried running the example in windows 10 and 7 and it threw the following error

INFO:ldap_test:Starting the JavaGateway on python_proxy_port 25334
'exec' is not recognized as an internal or external command,
operable program or batch file.

As a workaround, I had to edit run_jvm_server in ldap_test\server.py

def run_jvm_server(gateway_port=DEFAULT_GATEWAY_PORT):
    if not os.path.isfile(JVM_SERVER_BIN):
        raise Exception("%s is missing!" % (JVM_SERVER_BIN,))

    jre_executable = find_executable("java")

    if jre_executable is None:
        raise Exception("'java' executable not found in system path!")

    try:
        cmd='java -jar "{}" --port {}'.format(JVM_SERVER_BIN, gateway_port)
        return subprocess.Popen(cmd, shell=True)
    except OSError as e:
        log.error("Failed to run JVM server because: %s" % (e,))
        raise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions