Wowza Installation on CentOS

Hello to all here,

I am installing the evaluation version on a CentOS host.

I have installed the files and installed Java 1.6.0_15.

When I attempt the command ./startup.sh I am getting the error:

Exception in thread “main” java.lang.NoClassDefFoundError: com/wowza/wms/bootstrap/Bootstrap

Caused by: java.lang.ClassNotFoundException: com.wowza.wms.bootstrap.Bootstrap

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)

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

Could not find the main class: com.wowza.wms.bootstrap.Bootstrap. Program will exit.

My setenv.sh file looks like this:

#!/bin/sh

_EXECJAVA=/usr/java/jre1.6.0_15/bin/java

modified by JL _EXECJAVA=java

old value JAVA_OPTS="-Xmx768M"

JAVA_OPTS="-Xmx200M"

Uncomment to run server environment (faster), Note: will only work if server VM install, comes with JDL

#JAVA_OPTS="$JAVA_OPTS -server"

Uncomment to fix multicast crosstalk problem when streams share multicast port

#JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"

Uncomment to fix issue with socket code on some platforms

#JAVA_OPTS="$JAVA_OPTS -Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider"

WMSAPP_HOME=/usr/local/WowzaMediaServerPro

WMSCONFIG_HOME=/usr/local/WowzaMediaServerPro

WMSCONFIG_URL=

export WMSAPP_HOME WMSCONFIG_HOME JAVA_OPTS _EXECJAVA

Have I done something wrong with the Java install?

Help please.

Change the first line of setenv.sh back to:

_EXECJAVA=java

What do you get when you run this command?

java -version

This is a very low setting:

JAVA_OPTS=“-Xmx200M”

Are you trying to install on a low memory vps?

Richard

I’m not sure. That looks right. If it is a new install, I would start over: un-install Wowza and re-install it.

Richard

rrlanham,

Not trying to install a low memeory system, just a system for testing, I read the 200 value in another thread but have changed it back to the default now.

[root@none bin]# java -version

java version “1.6.0_15”

Java™ SE Runtime Environment (build 1.6.0_15-b03)

Java HotSpot™ Client VM (build 14.1-b02, mixed mode, sharing)

Did all as you said but still the same problem though:

[root@none bin]# ./startup.sh

Exception in thread “main” java.lang.NoClassDefFoundError: com/wowza/wms/bootstrap/Bootstrap

Caused by: java.lang.ClassNotFoundException: com.wowza.wms.bootstrap.Bootstrap

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)

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

Could not find the main class: com.wowza.wms.bootstrap.Bootstrap. Program will exit.

Hi,

Yes that worked, thanks for the help!