# help installing JRE on Linux?

**URL:** <https://community.wowza.com/t/help-installing-jre-on-linux/253>\
**Category:** Wowza Streaming Engine\
**Created:** [October 29, 2008, 11:14pm UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253 "2008-10-29T23:14:23Z")\
**Posts on this page:** 12\
**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:** [October 29, 2008, 11:14pm UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/1 "2008-10-29T23:14:23Z")

</div>

Hi all-

I have a dedicated box, and my hosting company will not install 3rd party apps.

Does anyone have a good walk-through for installing JRE so I can then install Wowza?

Thanks!

---

<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 29, 2008, 4:04pm UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/2 "2008-10-29T16:04:46Z")

</div>

Pretty simple. Download Java JDK 6 Update 10 from here (probably the .rpm.bin is the best one):

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

do a chmod to make give it execute privs:

```auto
chmod +x [filename].rpm.bin

```

run the installer:

```auto
./[filename].rpm.bin

```

That is it. You should be able to execute the java command to see if it the correct version:

```auto
java -version

```

If not follow these instructions:

[http://community.wowza.com/t/-/48](http://community.wowza.com/t/-/48)

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 30, 2008, 2:52am UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/3 "2008-10-30T02:52:14Z")

</div>

Is this a virtual private server? How much memory is in the machine? You may need to set the heap size to a very low value to start the server. To do this edit the file [install-dir]/bin/setenv.sh and change the Java heap size:

```auto
from:
JAVA_OPTS="-Xmx768M"
to:
JAVA_OPTS="-Xmx256M"

```

You may need to try lower values. The problem with this setup is that you are not going to be able to handle many concurrent connections with this much memory. I am also concerned about the initial Java installation that failed. I am not confident that Java is installed properly.

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 30, 2008, 6:35am UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/4 "2008-10-30T06:35:53Z")

</div>

I am not sure. What I would do is uninstall the jre/jdk, upgrade the memory, re-install. To uninstall, find the name of the install by executing the command:

```auto
rpm -qa | grep jdk
or
rpm -qa | grep jre

```

It should return a list of all the JDK’s or JRE’s you have installed. To uninstall, execute the command:

```auto
rpm -e [name-of-jdk-or-jre-returned-above]

```

For example for me it is:

```auto
rpm -e jdk-1.6.0_10-fcs

```

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:** [November 1, 2008, 12:36pm UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/5 "2008-11-01T12:36:54Z")

</div>

I guess I would just go with it the way it is.

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:** [November 1, 2008, 7:38pm UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/6 "2008-11-01T19:38:28Z")

</div>

That looks right to me. Should be ready to install Wowza.

---

<div class="post-metadata">

**Author:** ![Kelly\_Rinne](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@Kelly\_Rinne](https://community.wowza.com/u/Kelly_Rinne)\
**Post date:** [October 30, 2008, 7:46am UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/7 "2008-10-30T07:46:03Z")

</div>

thanks - will try and see what happens!

---

<div class="post-metadata">

**Author:** ![Kelly\_Rinne](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@Kelly\_Rinne](https://community.wowza.com/u/Kelly_Rinne)\
**Post date:** [October 30, 2008, 8:27am UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/8 "2008-10-30T08:27:41Z")

</div>

UPDATE: found the answer!

error: can’t create transaction lock on /var/lib/rpm/\_\_db.000

now what?😕

thanks in advance -

---

<div class="post-metadata">

**Author:** ![Kelly\_Rinne](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@Kelly\_Rinne](https://community.wowza.com/u/Kelly_Rinne)\
**Post date:** [October 30, 2008, 8:43am UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/9 "2008-10-30T08:43:43Z")

</div>

ok… I rec’d this error

error: %post(jre-1.6.0\_10-fcs.i586) scriptlet failed, exit status 5

after it unpacked, but when i ran java -version it showed

java version “1.6.0\_10”

Java™ SE Runtime Environment (build 1.6.0\_10-b33)

Java HotSpot™ Client VM (build 11.0-b15, mixed mode, sharing)

should I assume I’m ok at this point?

😉

---

<div class="post-metadata">

**Author:** ![Kelly\_Rinne](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@Kelly\_Rinne](https://community.wowza.com/u/Kelly_Rinne)\
**Post date:** [October 30, 2008, 9:18am UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/10 "2008-10-30T09:18:38Z")

</div>

oh sigh…

now getting

[root@domain wowza]# cd /usr/local/WowzaMediaServerPro/bin

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

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

---

<div class="post-metadata">

**Author:** ![Kelly\_Rinne](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@Kelly\_Rinne](https://community.wowza.com/u/Kelly_Rinne)\
**Post date:** [October 30, 2008, 1:23pm UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/11 "2008-10-30T13:23:05Z")

</div>

yes, it is a virtual dedicated server.

how do I test the JRE install?

Thanks for the quick reply. 🙂

---

<div class="post-metadata">

**Author:** ![Kelly\_Rinne](https://avatars.discourse-cdn.com/v4/letter/k/51bf81/32.png) [@Kelly\_Rinne](https://community.wowza.com/u/Kelly_Rinne)\
**Post date:** [November 1, 2008, 7:31pm UTC](https://community.wowza.com/t/help-installing-jre-on-linux/253/12 "2008-11-01T19:31:44Z")

</div>

I uninstalled, had the host upgrade memory/processor, and reinstalled JRE pkg.

Once it unpacked the jar files, it showed

error: %post(jre-1.6.0\_10-fcs.i586) scriptlet failed, exit status 5

Done.

Then I ran java -version, it showed

java version “1.6.0\_10”

Java™ SE Runtime Environment (build 1.6.0\_10-b33)

Java HotSpot™ Server VM (build 11.0-b15, mixed mode)

I did find this in the Java bug database, but it doesn’t tell me if the version of Java is installed correctly or not:

[http://bugs.sun.com/bugdatabase/view\_bug.do?bug\_id=6490650](http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6490650)

Any Suggestions? My host (Media Temple) refuses to support 3rd-party apps, and they consider Java a 3rd party application.
