Problem with Windows Server 2008 R2

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!

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

Richard

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:

echo %WMSAPP_HOME%
echo %WMSCONFIG_HOME%
echo %JAVA_HOME%

Charlie

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

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

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

Richard

1.6.0_21, seems to be the latest version

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:

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.

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?

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!