# Add License Key

**URL:** <https://community.wowza.com/t/add-license-key/227>\
**Category:** Wowza Streaming Engine\
**Created:** [February 21, 2008, 6:00pm UTC](https://community.wowza.com/t/add-license-key/227 "2008-02-21T18:00:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [February 21, 2008, 6:00pm UTC](https://community.wowza.com/t/add-license-key/227/1 "2008-02-21T18:00:13Z")

</div>

Hello, where can I add or change the License Key

in Linux Fedors6

I run ./startup.sh

but to no avail

JC

---

<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:** [February 21, 2008, 10:12am UTC](https://community.wowza.com/t/add-license-key/227/2 "2008-02-21T10:12:57Z")

</div>

To change the license key edit conf/Server.license and just replace the old key with the new key.

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:** [February 21, 2008, 10:48am UTC](https://community.wowza.com/t/add-license-key/227/3 "2008-02-21T10:48:33Z")

</div>

Are you getting an error message when you run ./startup.sh from the /usr/local/WowzaMediaServerPro/bin folder?

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:** [February 21, 2008, 11:06am UTC](https://community.wowza.com/t/add-license-key/227/4 "2008-02-21T11:06:20Z")

</div>

It looks like you are running an older version of Java or the GNU version of Java. Wowza Pro requires at least Java 5 (aka 1.5) (we recommend the latest version of Java 6 (aka 1.6) â€“ Java 6 Update 4). You can download the JDK from the [java.sun.com](http://java.sun.com) website. When the installation is complete you should be able to execute the command:

java -version

It will return the current java version number. If it is still running the old version read this post for suggestions:

[https://www.wowza.com/forums/showthread.php?t=520](https://www.wowza.com/forums/showthread.php?t=520)

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:** [February 21, 2008, 4:30pm UTC](https://community.wowza.com/t/add-license-key/227/5 "2008-02-21T16:30:29Z")

</div>

First, download and install JDK 6 Update 4 from the Sun web site. Go through the same process again. If it still doesn’t work, edit bin/setenv.sh change the the line:

```auto
from:
_EXECJAVA=java
to:
_EXECJAVA=/usr/bin/java

```

That will force it to use the Java defined at /usr/bin/java. You can verify that this is the correct version of Java by execute the command:

/usr/bin/java -version

Charlie

---

<div class="post-metadata">

**Author:** ![J\_Cole](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@J\_Cole](https://community.wowza.com/u/J_Cole)\
**Post date:** [February 21, 2008, 6:43pm UTC](https://community.wowza.com/t/add-license-key/227/6 "2008-02-21T18:43:19Z")

</div>

The conf/Server.license is not in

/usr/local/WowzaMediaServerPro/conf

or in

WowzaMediaServerPro-1.3.3/conf

jc

---

<div class="post-metadata">

**Author:** ![J\_Cole](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@J\_Cole](https://community.wowza.com/u/J_Cole)\
**Post date:** [February 21, 2008, 6:58pm UTC](https://community.wowza.com/t/add-license-key/227/7 "2008-02-21T18:58:29Z")

</div>

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

Error parsing VHosts.xml (file:///usr/local/WowzaMediaServerPro/conf/VHosts.xml): java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.w3c.dom.NodeList

java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.w3c.dom.NodeList

at com.wowza.wms.bootstrap.Bootstrap.getServerInfo(Bootstrap.java:496)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:238)

at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)

Exception in thread “main” java.lang.NoClassDefFoundError: com.wowza.wms.server.Server

at java.lang.Class.initializeClass(libgcj.so.7rh)

at java.lang.reflect.Method.invoke(libgcj.so.7rh)

at com.wowza.wms.bootstrap.Bootstrap.startServer(Bootstrap.java:246)

at com.wowza.wms.bootstrap.Bootstrap.main(Bootstrap.java:47)

Caused by: java.lang.ClassNotFoundException: java.util.concurrent.Executor not found in java.net.URLClassLoader{urls=[file:/usr/local/WowzaMediaServerPro/lib/wms-stream-file.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-server.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-commons-modeler.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-stream-live.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-bootstrap.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-plugin-bwcheck.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-ant.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-core.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-jlayer.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-mediareader-flv.jar,file:/usr/local/WowzaMediaServerPro/lib/log4j-1.2.14.jar,file:/usr/local/WowzaMediaServerPro/lib/jid3lib-0.5.4.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-stream-shoutcast.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-stream-record.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-mediawriter-flv.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-plugin-textchat.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-mediareader-mp3.jar,file:/usr/local/WowzaMediaServerPro/lib/wms-plugin-security.jar], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/usr/local/WowzaMediaServerPro/bin/wms-bootstrap.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}

at java.net.URLClassLoader.findClass(libgcj.so.7rh)

at java.lang.ClassLoader.loadClass(libgcj.so.7rh)

at java.lang.ClassLoader.loadClass(libgcj.so.7rh)

at java.lang.Class.initializeClass(libgcj.so.7rh)

…3 more

---

<div class="post-metadata">

**Author:** ![J\_Cole](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@J\_Cole](https://community.wowza.com/u/J_Cole)\
**Post date:** [February 21, 2008, 10:52pm UTC](https://community.wowza.com/t/add-license-key/227/8 "2008-02-21T22:52:43Z")

</div>

Hello, I try but could not get it to work, I cannot reinstall it.

/usr/sbin/alternatives --config java

There are 2 programs which provide ‘java’.

Selection Command

* * *

- 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java

- 2 /usr/java/jre1.5.0\_09/bin/java

Enter to keep the current selection[+], or type selection number: 2

[root@ns5 ~]# java -version

-bash: java: command not found

[root@ns5 ~]# ln -sf /usr/java/jre1.6.0\_03/bin/java /usr/bin/java

[root@ns5 ~]# java -version

-bash: java: command not found
