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

**URL:** <https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806>\
**Category:** Wowza Streaming Engine\
**Created:** [October 13, 2009, 5:39pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806 "2009-10-13T17:39:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![axel\_gomez](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@axel\_gomez](https://community.wowza.com/u/axel_gomez)\
**Post date:** [October 13, 2009, 5:39pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/1 "2009-10-13T17:39:31Z")

</div>

this is what i get after ./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(URLClassLoader.java:200)

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

at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

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

# 

can u help me? i uninstall the whole server with

cd /usr/local

rm –rf WowzaMediaServerPro-1.7.2

---

<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:** [October 13, 2009, 3:46pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/2 "2009-10-13T15:46:19Z")

</div>

What do you get when you type in the following command:

java -version

Charlie

---

<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:** [October 13, 2009, 4:08pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/3 "2009-10-13T16:08:33Z")

</div>

Uninstall again and this time try the rpm installer.

Charlie

---

<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:** [October 13, 2009, 5:02pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/4 "2009-10-13T17:02:02Z")

</div>

You either have Wowza running twice or FMS and Wowza running at the same time. Try rebooting. Then see what you get when you execute the command:

ps -ef | grep java

If you see Wowza is already running then it is running as a service and you don’t need to start it standalone.

Charlie

---

<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:** [October 13, 2009, 3:57pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/5 "2009-10-13T15:57:38Z")

</div>

Which installer did you use (rpm, deb, tar)? What Linux distro are you running?

Also, try editing bin/startup.sh and adding echo to the last line in the file:

```auto
from:
$_EXECJAVA $JAVA_OPTS $JMXOPTIONS -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap start
to:
echo $_EXECJAVA $JAVA_OPTS $JMXOPTIONS -Dcom.wowza.wms.AppHome="$WMSAPP_HOME" -Dcom.wowza.wms.ConfigURL="$WMSCONFIG_URL" -Dcom.wowza.wms.ConfigHome="$WMSCONFIG_HOME" -cp $WMSAPP_HOME/bin/wms-bootstrap.jar com.wowza.wms.bootstrap.Bootstrap start

```

Then run ./startup.sh and send me the result. I want to see the command line that is being executed.

Charlie

---

<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:** [October 13, 2009, 4:03pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/6 "2009-10-13T16:03:17Z")

</div>

Wait, I see the problem. The installation path is wrong. It is:

/usr/local/WowzaMediaServerPro/WowzaMediaServerPro-1.7.2/bin

It should just be:

/usr/local/WowzaMediaServerPro/bin

Where:

/usr/local/WowzaMediaServerPro

Is a symbolic link to:

/usr/local/WowzaMediaServerPro-1.7.2

So something got messed up in the install. Do you have any idea what might have gone wrong with the install?

Charlie

---

<div class="post-metadata">

**Author:** ![axel\_gomez](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@axel\_gomez](https://community.wowza.com/u/axel_gomez)\
**Post date:** [October 13, 2009, 5:52pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/7 "2009-10-13T17:52:45Z")

</div>

this:

java version “1.6.0\_14”

Java™ SE Runtime Environment (build 1.6.0\_14-b08)

Java HotSpot™ Server VM (build 14.0-b16, mixed mode)

---

<div class="post-metadata">

**Author:** ![axel\_gomez](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@axel\_gomez](https://community.wowza.com/u/axel_gomez)\
**Post date:** [October 13, 2009, 6:06pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/8 "2009-10-13T18:06:07Z")

</div>

thanks for your answer

i use the tar installer

i got FEDORA 7

previously, i get installed Wowza 1.7.0 … and everything was fine… then i uninstall 1.7.0 with

cd /usr/local

rm –rf WowzaMediaServerPro-1.7.0

and when i install the new wowza 1.7.2 the problem appears

---

<div class="post-metadata">

**Author:** ![axel\_gomez](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@axel\_gomez](https://community.wowza.com/u/axel_gomez)\
**Post date:** [October 13, 2009, 6:10pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/9 "2009-10-13T18:10:39Z")

</div>

ok let me check, and i post the result here … thank you charlie of the chocolate factory ;D

---

<div class="post-metadata">

**Author:** ![axel\_gomez](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@axel\_gomez](https://community.wowza.com/u/axel_gomez)\
**Post date:** [October 13, 2009, 6:50pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/10 "2009-10-13T18:50:41Z")

</div>

hi charlie … the rpm installer works… but i have a new problem

I get the following errors :

ERROR server comment - server core failure: java.net.BindException: Address alre ady in use

java.net.BindException: Address already in use

at sun.nio.ch.Net.bind(Native Method)

at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)

at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)

at org.apache.mina.transport.socket.nio.SocketAccepto r.registerNew(Unkno wn Source)

at org.apache.mina.transport.socket.nio.SocketAccepto r.access$1100(Unkno wn Source)

at org.apache.mina.transport.socket.nio.SocketAccepto r$Worker.run(Unknow n Source)

at org.apache.mina.util.NamePreservingRunnable.run(Un known Source)

at java.lang.Thread.run(Unknown Source)

INFO server comment - vhost home directory: /usr/local/WowzaMediaServerPro

INFO vhost vhost-start _defaultVHost_ -

INFO vhost comment _defaultVHost_ RTMP/RTMPT bind attempt ([any]:1935)

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): [java.net](http://java.net). BindException: Address already in use

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

WARN vhost comment _defaultVHost_ Bind failed, try again ([any]:1935): java.net.BindException: Address already in use

---

<div class="post-metadata">

**Author:** ![axel\_gomez](https://avatars.discourse-cdn.com/v4/letter/a/e47774/32.png) [@axel\_gomez](https://community.wowza.com/u/axel_gomez)\
**Post date:** [October 13, 2009, 7:38pm UTC](https://community.wowza.com/t/could-not-find-the-main-class-com-wowza-wms-bootstrap-bootstrap-program-will-exit/33806/11 "2009-10-13T19:38:47Z")

</div>

everything works fine now!!! thank you charlie !!
