IBM Support

Command-line build runAntWID.bat fails due to invalid Java level

Troubleshooting


Problem

The runAntWID(.bat | .sh) script does not recognize Java™ 6 as a valid version of Java, subsequently preventing the module from being built by way of the command-line option.

Symptom

Error seen in the command-line window:

build-project:
[javac] Compiling source files
[javac] javac: invalid target release: 1.6
[javac] Usage: javac <options> <source files>

Resolving The Problem

1. Customer should ensure that they are accessing the correct Java package provided with the version 7 product by explicitly setting the JAVA_HOME environment variable before running the runAntWid script. The Java version can be confirm by issuing the command "java -fullversion" for verbose output.

2. Previous experience has been that build errors are no longer observed when using a directory for module source files that follow sensible naming convention. Try to avoid special characters, empty white space and even long directory structure.

NOTE: The scripting option can always abandoned for the alternative being a manual build executed from within WID tooling.

[{"Product":{"code":"SSQQFK","label":"WebSphere Integration Developer"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.3;7.0.0.2;7.0.0.1;7.0","Edition":"All Editions","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21469556