• 1 reply
  • Latest Post - ‏2012-04-17T16:03:43Z by SystemAdmin
1 Post

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: 20100915 0951
Command-line Information:
Name: zero.cli
Location: C:\Program Files\zero
Modulegroup: stable

zero:zero.cli.tasks: (userhome)
zero:zero.kernel: (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\ luck.

The failure symptom I get is:
2012-04-16 14:01:06 Thread-1
SEVERE TCPC0003E: TCP Channel TCP initialization failed. The socket bind failed for host 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
    9224 Posts

    Re: Java Command Path points to Java v7

    suggestion from the getting started guide - Command Line Interface page (

    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.