Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-04-17T16:03:43Z by SystemAdmin
r31floyd
r31floyd
1 Post
ACCEPTED ANSWER

Pinned topic Java Command Path points to Java v7

‏2012-04-16T19:27:15Z |
I'm trying to get Appbuilder functional and here is what I get with the zero version command:
C:\Program Files\zero> zero version
Command-line Version: 1.1.1.5.31129 20100915 0951
Command-line Information:
Name: zero.cli
Version: 1.1.1.5.31129
Location: C:\Program Files\zero
Modulegroup: stable

Dependencies:
zero:zero.cli.tasks:1.1.1.5.31261 (userhome)
zero:zero.kernel:1.1.1.5.31280 (userhome)

The java command path is C:\Program Files\Java\jre7\bin\java.exe

java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Client VM (build 21.0-b17, mixed mode, sharing)

I have multiple version 5 and 6 versions installed, but my Windows XP system won't allow changing to a downlevel version that I can figure out. I put v6.0.27 in the Java Directory of the zero\Installed\Appbuilder\ folder....no luck.

The failure symptom I get is:
2012-04-16 14:01:06 zero.network.internal.tcp.channel.impl.TCPPort Thread-1
SEVERE TCPC0003E: TCP Channel TCP initialization failed. The socket bind failed for host 127.0.0.1 and port 8055. The port may already be in use.
2012-04-16 14:01:06 zero.core.cfadapter.ZeroServer::cfstartup Thread-1
SEVERE CWPZC0143E: Error starting channel framework: Address in Use

but this is bogus....port 8055 is not in use on this machine per netstat output....????
Updated on 2012-04-17T16:03:43Z at 2012-04-17T16:03:43Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    9224 Posts
    ACCEPTED ANSWER

    Re: Java Command Path points to Java v7

    ‏2012-04-17T16:03:43Z  in response to r31floyd
    suggestion from the getting started guide - Command Line Interface page (http://www.projectzero.org/zero/indy.dev/latest/docs/zero.gettingstarted.doc/zero.gettingstarted.doc/CLI.html)

    gettingstarted:
    3. Configure the Java command by setting the environment variable JAVA_HOME.

    The zero scripts determine the Java command to use by first using the environment variable JAVA_HOME. JAVA_HOME should be set to the directory where the JDK is installed. The scripts append bin/java to JAVA_HOME and verify whether the file exists. If JAVA_HOME is not set, or if ${JAVA_HOME}/bin/java does not exist, then the script uses the Java command found using the configured path. The recommendation is to set JAVA_HOME.

    You'll need to direct sMash to find a version 1.5 or 1.6 JDK (!) first.