Wowza Community

Wowza startup: Windows 7 ultimate x64 cannot find \bin\java.exe

Having installed Wowza server on Windows 7 final x64 bit + java6 + jdk 1.6.0-14 + java FX sdk 1.2 , and Clicking the Wowza pro startup icon I get:

Windows cannot find \bin\java.exe. Make sure you typed the name correctly and try again.

Any idea anyone what`s wrong ?

Thanks

Sounds like Java is not installed. Install java. If already installed open a command prompt and type:

java -version

It should return the Java version number. If the above command does not return a Java version number, then be sure your PATH variable includes the Java bin location.

Also be sure the JAVA_HOME environement variable is pointing to the root directory of your Java installation.

Charlie

JAVA_HOME should be set to:

C:\Program Files\Java\jre6

Not:

C:\Program Files\Java\jre6\bin

But I think the current problem is something else. It looks like a permission problem.

C:\Program Files\Wowza Media Systems\Wowza Media
Server 2 Preview 7\logs\wowzamediaserver_access.log 

Be sure the user you are logged in as has full file permissions to this directory and all files as sub-folders:

C:\Program Files\Wowza Media Systems\Wowza Media
Server 2 Preview 7

Charlie

I don’t think it is necessary to run Wowza, but to make the java -version command work from anywhere you do have to add path to java.exe in your Path variable, something like this:

;C:\Program Files\Java\jdk1.6.0_16\bin

On XP you edit path by right clicking My Computer -> Properties -> Advanced Tab -> Environment Variables Button. Then scroll down in the list of System Variables to Path, and click edit, then add correct path to the end of the with a semi-colon separator. And I think you have to reboot. That makes the java command available from anywhere.

or you can do it like this:

cd C:\Program Files\Java\jdk1.6.0_16\bin

java -version

Richard

See what you get in cmd window with these commands:

echo %WMSAPP_HOME%

echo %WMSCONFIG_HOME%

Should be path to Wowza install, and should not end with “/”

Richard

I solved the problem by running the ide as admin

Thanks for responding Charlie.

You solved my problem , but I am still not sure about one issue :

run>java -version gave:

Windows cannot find java

My JAVA_HOME held the path to jdk 1.60_14 so I changed it to the jre6.

Now the Wowza server does startup with no issues, and http://localhost:1935 is all good.

But run>java -version still gives the same message about not finding Java. could this be a windows 7 issue, that it needs some different command to locate the Java ? ( also: I have no clue where to find the path variable if this is still relevant at all)

Thanks a lot for your help.

I Pointed JAVA_HOME to C:\Program Files\Java\jre6\bin

But I get the foolowing on Windows 7

Configure logging: file:///C:/Program Files/Wowza Media Systems/Wowza Media Serv

er 2 Preview 7/conf/log4j.properties

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: C:\Program Files\Wowza Media Systems\Wowza Media

Server 2 Preview 7\logs\wowzamediaserver_access.log (Access is denied)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(Unknown Source)

at java.io.FileOutputStream.(Unknown Source)

at org.apache.log4j.FileAppender.setFile(Unknown Source)

at org.apache.log4j.FileAppender.activateOptions(Unknown Source)

at org.apache.log4j.DailyRollingFileAppender.activateOptions(Unknown Sou

rce)

at org.apache.log4j.config.PropertySetter.activate(Unknown Source)

at org.apache.log4j.config.PropertySetter.setProperties(Unknown Source)

at org.apache.log4j.config.PropertySetter.setProperties(Unknown Source)

at org.apache.log4j.PropertyConfigurator.parseAppender(Unknown Source)

at org.apache.log4j.PropertyConfigurator.parseCategory(Unknown Source)

at org.apache.log4j.PropertyConfigurator.configureRootCategory(Unknown S

ource)

at org.apache.log4j.PropertyConfigurator.doConfigure(Unknown Source)

at org.apache.log4j.PropertyConfigurator.configure(Unknown Source)

at com.wowza.wms.logging.WMSLoggerFactory.initializeLogging(Unknown Sour

ce)

at com.wowza.wms.logging.WMSLoggerFactory.initializeLogging(Unknown Sour

ce)

at com.wowza.wms.server.Server.initLogging(Unknown Source)

at com.wowza.wms.server.Server.start(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:248)

at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)

log4j:ERROR Either File or DatePattern options are not set for appender [serverA

ccess].

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: C:\Program Files\Wowza Media Systems\Wowza Media

Server 2 Preview 7\logs\wowzamediaserver_error.log (Access is denied)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(Unknown Source)

at java.io.FileOutputStream.(Unknown Source)

at org.apache.log4j.FileAppender.setFile(Unknown Source)

at org.apache.log4j.FileAppender.activateOptions(Unknown Source)

at org.apache.log4j.DailyRollingFileAppender.activateOptions(Unknown Sou

rce)

at org.apache.log4j.config.PropertySetter.activate(Unknown Source)

at org.apache.log4j.config.PropertySetter.setProperties(Unknown Source)

at org.apache.log4j.config.PropertySetter.setProperties(Unknown Source)

at org.apache.log4j.PropertyConfigurator.parseAppender(Unknown Source)

at org.apache.log4j.PropertyConfigurator.parseCategory(Unknown Source)

at org.apache.log4j.PropertyConfigurator.configureRootCategory(Unknown S

ource)

at org.apache.log4j.PropertyConfigurator.doConfigure(Unknown Source)

at org.apache.log4j.PropertyConfigurator.configure(Unknown Source)

at com.wowza.wms.logging.WMSLoggerFactory.initializeLogging(Unknown Sour

ce)

at com.wowza.wms.logging.WMSLoggerFactory.initializeLogging(Unknown Sour

ce)

at com.wowza.wms.server.Server.initLogging(Unknown Source)

at com.wowza.wms.server.Server.start(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:248)

at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)

log4j:ERROR Either File or DatePattern options are not set for appender [serverE

rror].

INFO server server-start 2.0.0-preview7 build21940 -

ERROR server comment - server core failure: java.lang.NullPointerException

java.lang.NullPointerException

at com.wowza.wms.server.Server.startServer(Unknown Source)

at com.wowza.wms.server.Server.start(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:248)

at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)

I corrected JAVA_HOME as c.\Program Files\Java\jre6

Checked if the user has full rights. They are ok.

I get :

Configure logging: file:///C:/Program Files/Wowza Media Systems/Wowza Media Serv

er 2 Preview 7/conf/log4j.properties

INFO server server-start 2.0.0-preview7 build21940 -

ERROR server comment - server core failure: java.lang.NullPointerException

java.lang.NullPointerException

at com.wowza.wms.server.Server.startServer(Unknown Source)

at com.wowza.wms.server.Server.start(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:248)

at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)

I will try with Windows 2008 and see whta happnes there…

Regards

Gokhan