# \[Mobile\] Java.lang.exception: Timeout waiting for new VM

**URL:** <https://forum.inductiveautomation.com/t/mobile-java-lang-exception-timeout-waiting-for-new-vm/12317>\
**Category:** Ignition\
**Created:** [November 1, 2016, 7:56pm UTC](https://forum.inductiveautomation.com/t/mobile-java-lang-exception-timeout-waiting-for-new-vm/12317 "2016-11-01T19:56:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nadir\_Enginiosys](https://avatars.discourse-cdn.com/v4/letter/n/ccd318/32.png) [@Nadir\_Enginiosys](https://forum.inductiveautomation.com/u/Nadir_Enginiosys)\
**Post date:** [November 1, 2016, 7:56pm UTC](https://forum.inductiveautomation.com/t/mobile-java-lang-exception-timeout-waiting-for-new-vm/12317/1 "2016-11-01T19:56:16Z")

</div>

Hello everyone,

As my title says, I get this problem on my Linux machine playing around with the demo (learning Ignition for a possible project).

To summarize it, I created a little project and I want to use it through the Mobile Module. I’m using a Linux machine on Xubuntu 14.04 LTS and I installed Java 8 from Oracle.

About the setup, I made the following modifications in the Gateway -\> Mobile -\> Settings:

- Java Path: /usr/lib/jvm/java-8-oracle/jre/bin/java
- Environment variable: DISPLAY=:8
- Max clients: 8
- Callback Interface: my local IP address

When trying to launch a mobile client, I get the error in the title. So, I saw that someone proposed to run the command used by the Gateway directly in the terminal, and surprisingly, it works. So I can launch a client manually from the terminal, and then connect to it from an Android phone. But if I try to connect directly from the phone, without running the command in my terminal, the Gateway isn’t able to launch a client alone.

I really don’t understand how this is possible. If I can launch the client from a terminal using the same command line, the Gateway should be able to do so. What comes in my mind is that my laptop is quite slow. Maybe there is a way to increase the timeout for the VM to initialize? Or maybe I should add a parameter to the JVM? But I don’t know much about the JVM ☹

If someone has any idea, I’ll appreciate !

Thanks !

Nadir

---

<div class="post-metadata">

**Author:** ![anna](https://avatars.discourse-cdn.com/v4/letter/a/779978/32.png) [@anna](https://forum.inductiveautomation.com/u/anna)\
**Post date:** [February 3, 2017, 6:12pm UTC](https://forum.inductiveautomation.com/t/mobile-java-lang-exception-timeout-waiting-for-new-vm/12317/2 "2017-02-03T18:12:55Z")

</div>

Nadir, please follow the steps here: [support.inductiveautomation.com … e-on-linux](https://support.inductiveautomation.com/index.php?/Knowledgebase/Article/View/33/0/running-the-mobile-module-on-linux) ?

On some system, you will also need to reboot after making all the changes.
