# Windows 2008 R2 Service

**URL:** https://community.wowza.com/t/windows-2008-r2-service/38628
**Category:** Wowza Streaming Engine
**Tags:** server-administration
**Created:** [May 5, 2012, 12:04pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628 "2012-05-05T12:04:30Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Tom\_Johnson](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Tom\_Johnson](https://community.wowza.com/u/Tom_Johnson)
#### Post date: [May 5, 2012, 12:04pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/1 "2012-05-05T12:04:30Z")

</div>

I am new to WOWZA and have installed it. If I run the startup.bat the service starts. however, if I try to start it from the service control panel, I get an error 1067 operation failed. Is there something I am missing here? I have it set to use a specific account, and have also tried logona s a service but neither one works. I have JRE7 installed and have my JAVA\_HOME env set as well.

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [May 5, 2012, 5:44pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/2 "2012-05-05T17:44:13Z")

</div>

Hello haarvik,

Is there more to the Windows error message? Which version of Wowza?

Sounds like something went wrong with your installation. Try uninstalling Wowza, rebooting, and re-installing Wowza.

Another user had a similar error [here](http://community.wowza.com/t/-/156), which was a typo.

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 7, 2012, 12:36pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/3 "2012-05-07T12:36:14Z")

</div>

JAVA\_HOME is an environment variable. Search for “edit the system environment variables”

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 7, 2012, 12:51pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/4 "2012-05-07T12:51:21Z")

</div>

Mine is set to C:\Program Files\Java\jdk1.7.0

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 7, 2012, 4:54pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/5 "2012-05-07T16:54:06Z")

</div>

Start \> “edit the system environment variables”

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 7, 2012, 5:12pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/6 "2012-05-07T17:12:56Z")

</div>

This is set at the top of /bin/WowzaMediaServer-Service.conf:

```auto
wrapper.java.command=%JAVA_HOME%\bin\java.exe

```

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [May 7, 2012, 5:55pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/7 "2012-05-07T17:55:45Z")

</div>

I don’t think there is any other place in Wowza that it might be happening.

Richard

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [May 7, 2012, 10:13pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/8 "2012-05-07T22:13:43Z")

</div>

You have an extra “bin” folder in your Java path for some reason. Set your JAVA\_HOME=C:\Program Files (x86)\Java\JRE6\bin. Or, even better, install JDK1.7.

---

<div class="post-metadata">

### Author: ![Tom\_Johnson](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Tom\_Johnson](https://community.wowza.com/u/Tom_Johnson)
#### Post date: [May 7, 2012, 7:02am UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/9 "2012-05-07T07:02:24Z")

</div>

I found what the issue is, just not sure where to correct it. The wowza log file is saying it can’t find C:\Program Files(x86)\Java\JRE6\bin\bin\java.exe.

My JAVA\_HOME is set to C:\Program Files(x86)\Java\JRE6. So where would I fix the path that the service is trying to find which is incorrect?

here is the log error:

–\> Wrapper Started as Service

STATUS | wrapper | 2012/05/05 06:51:38 | Launching a JVM…

FATAL | wrapper | 2012/05/05 06:51:38 | Unable to execute Java command. The system cannot find the file specified. (0x2)

FATAL | wrapper | 2012/05/05 06:51:38 | “C:\Program Files (x86)\Java\jre6\bin\bin\java.exe” -Xmx768M -Dcom.wowza.wms.native.base=“win” -Dcom.wowza.wms.runmode=“service” -Dcom.wowza.wms.ConfigURL= -Dcom.sun.management.jmxremote=true -Dorg.tanukisoftware.wrapper.WrapperManager.mbean=true -Dorg.tanukisoftware.wrapper.WrapperManager.mbean.testing=false -Djava.net.preferIPv4Stack=true -Djava.library.path="./" -classpath “./wms-bootstrap.jar;./wrapper.jar” -Dwrapper.key=“d\_ms9ZGYMvQClmfp” -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.pid=4156 -Dwrapper.version=“3.2.3” -Dwrapper.native\_library=“wrapper” -Dwrapper.service=“TRUE” -Dwrapper.cpu.timeout=“10” -Dwrapper.jvmid=1 org.tanukisoftware.wrapper.WrapperStartStopApp com.wowza.wms.bootstrap.Bootstrap 1 start com.wowza.wms.bootstrap.Bootstrap true 1 stop

FATAL | wrapper | 2012/05/05 06:51:38 | Critical error: wait for JVM process failed

---

<div class="post-metadata">

### Author: ![Tom\_Johnson](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Tom\_Johnson](https://community.wowza.com/u/Tom_Johnson)
#### Post date: [May 7, 2012, 7:38am UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/10 "2012-05-07T07:38:06Z")

</div>

I know that…it is set correctly. If I start wowza from the startup.bat script it works fine. Why is the service startup inserting another \bin\into the JAVA\_HOME environment variable?

---

<div class="post-metadata">

### Author: ![Tom\_Johnson](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Tom\_Johnson](https://community.wowza.com/u/Tom_Johnson)
#### Post date: [May 7, 2012, 11:19am UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/11 "2012-05-07T11:19:10Z")

</div>

As I posted initially, mine is set to:

C:\Program Files(x86)\Java\JRE6

The log file says wowza is looking for it in:

C:\Program Files (x86)\Java\jre6\bin

So where do I edit to remove the extra \bin\ ?

---

<div class="post-metadata">

### Author: ![Tom\_Johnson](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Tom\_Johnson](https://community.wowza.com/u/Tom_Johnson)
#### Post date: [May 7, 2012, 11:59am UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/12 "2012-05-07T11:59:10Z")

</div>

I know that! You’re not reading what I am saying!

> echo %JAVA\_HOME%

returns

C:\Program Files (x86)\Java\jre6

So it is set right. Whatever the service control manager is calling to start wowza THINKS that JAVA\_HOME is C:\Program Files (x86)\Java\jre6\bin and NOT C:\Program Files (x86)\Java\jre6! Where is this path set? It is obviously NOT using the environment variables or the extra \bin\ would NOT be in the path!

---

<div class="post-metadata">

### Author: ![Tom\_Johnson](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@Tom\_Johnson](https://community.wowza.com/u/Tom_Johnson)
#### Post date: [May 7, 2012, 12:19pm UTC](https://community.wowza.com/t/windows-2008-r2-service/38628/13 "2012-05-07T12:19:50Z")

</div>

Yep, and that is what mine has in it. Still doesn’t explain where the extra \bin\ is coming from. It as if that line of code were:

wrapper.java.command=%JAVA\_HOME%\bin\bin\java.exe
