# Problem with Windows Server 2008 R2

**URL:** <https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098>\
**Category:** Wowza Streaming Engine\
**Created:** [July 15, 2010, 10:36pm UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098 "2010-07-15T22:36:12Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bo\_Feng](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Bo\_Feng](https://community.wowza.com/u/Bo_Feng)\
**Post date:** [July 15, 2010, 10:36pm UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/1 "2010-07-15T22:36:12Z")

</div>

Hi all, I got this weird problem when running startup.bat on fresh installed windows server 2008 R2 standard server:

Exception in thread “main” java.lang.NoClassDefFoundError: Files

Caused by: java.lang.ClassNotFoundException: Files

at java.net.URLClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

Could not find the main class: Files. Program will exit.

Any idea? Thanks a lot!

---

<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:** [July 16, 2010, 11:59am UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/2 "2010-07-16T11:59:27Z")

</div>

What version of Java are you using?

java -version

You probably need to update. Use the latest JDK:

[http://java.sun.com/javase/downloads/index.jsp](http://java.sun.com/javase/downloads/index.jsp)

Richard

---

<div class="post-metadata">

**Author:** ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)\
**Post date:** [July 16, 2010, 4:43am UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/3 "2010-07-16T04:43:25Z")

</div>

Also, check the environement variables WMSAPP\_HOME and WMSCONFIG\_HOME to be sure they are set properly. Open a command prompt and type the following commands send post the results:

```auto
echo %WMSAPP_HOME%
echo %WMSCONFIG_HOME%
echo %JAVA_HOME%

```

Charlie

---

<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:** [July 16, 2010, 4:43pm UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/4 "2010-07-16T16:43:47Z")

</div>

I think it is the latest or very recent. Did you check the environment variables, per Charlie’s note? One thing to look for in those is a trailing slash which doesn’t belong.

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:** [July 16, 2010, 4:48pm UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/5 "2010-07-16T16:48:18Z")

</div>

Actually the first two do have the trailing slash. You have to remove those. It is a vexing occasional problem, not sure how it happens.

Should be:

> %WMSAPP\_HOME% = C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 2.1.1
> 
> %WMSCONFIG\_HOME% = C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 2.1.1

Richard

---

<div class="post-metadata">

**Author:** ![Bo\_Feng](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Bo\_Feng](https://community.wowza.com/u/Bo_Feng)\
**Post date:** [July 16, 2010, 8:41am UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/6 "2010-07-16T08:41:00Z")

</div>

> What version of Java are you using?
> 
> java -version
> 
> You probably need to update. Use the latest JDK:
> 
> [http://java.sun.com/javase/downloads/index.jsp](http://java.sun.com/javase/downloads/index.jsp)
> 
> Richard

1.6.0\_21, seems to be the latest version

---

<div class="post-metadata">

**Author:** ![Bo\_Feng](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Bo\_Feng](https://community.wowza.com/u/Bo_Feng)\
**Post date:** [July 16, 2010, 8:44am UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/7 "2010-07-16T08:44:13Z")

</div>

> Also, check the environement variables WMSAPP\_HOME and WMSCONFIG\_HOME to be sure they are set properly. Open a command prompt and type the following commands send post the results:
> 
> ```auto
> echo %WMSAPP_HOME%
> echo %WMSCONFIG_HOME%
> echo %JAVA_HOME%
> 
> ```
> 
> Charlie

%WMSAPP\_HOME% = C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 2.1.1\

%WMSCONFIG\_HOME% = C:\Program Files (x86)\Wowza Media Systems\Wowza Media Server 2.1.1\

%JAVA\_HOME% = C:\Program Files\Java\jre6

I don’t see any problem here.

Since it’s a fresh installed 2008 R2 server, other ppl may experience the same problem.

---

<div class="post-metadata">

**Author:** ![Bo\_Feng](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Bo\_Feng](https://community.wowza.com/u/Bo_Feng)\
**Post date:** [July 16, 2010, 8:50am UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/8 "2010-07-16T08:50:59Z")

</div>

> I think it is the latest or very recent. Did you check the environment variables, per Charlie’s note? One thing to look for in those is a trailing slash which doesn’t belong.
> 
> Richard

You are right, it’s working now. Shouldn’t this be a bug?

---

<div class="post-metadata">

**Author:** ![Bo\_Feng](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@Bo\_Feng](https://community.wowza.com/u/Bo_Feng)\
**Post date:** [July 16, 2010, 8:51am UTC](https://community.wowza.com/t/problem-with-windows-server-2008-r2/35098/9 "2010-07-16T08:51:44Z")

</div>

> Actually the first two do have the trailing slash. You have to remove those. It is a vexing occasional problem, not sure how it happens.
> 
> Should be:
> 
> Richard

Got it, thanks a lot!
