# Unable to Launch Application On Startup

**URL:** <https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [January 24, 2018, 9:26pm UTC](https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720 "2018-01-24T21:26:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [January 24, 2018, 9:26pm UTC](https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720/1 "2018-01-24T21:26:52Z")

</div>

Hello,

I have enabled my application to startup automatically when the computer does a reboot. The problem is, the Ignition service has not had enough time to start and the client causes a popup to appear that says the application was unable to launch because it could not find the resource on the gateway.

Is there a workaround for this other than delay the autostart of the client? This is a webstart client by the way.  
Thanks,  
Brandon

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 24, 2018, 9:31pm UTC](https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720/2 "2018-01-24T21:31:52Z")

</div>

> [@brandon1](#):
>
> This is a webstart client by the way.

Check [this](https://docs.inductiveautomation.com/display/DOC79/Native+Client+Launchers) out for how to fix WebStart. In your case, set appropriate values for timeoutsecs= and/or retries=.

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [January 25, 2018, 3:19pm UTC](https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720/3 "2018-01-25T15:19:27Z")

</div>

Thanks pturmel! That was exactly what I was looking for. Works like a charm!

---

<div class="post-metadata">

**Author:** ![brian.kehn](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@brian.kehn](https://forum.inductiveautomation.com/u/brian.kehn)\
**Post date:** [March 15, 2018, 8:51pm UTC](https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720/4 "2018-03-15T20:51:56Z")

</div>

Hi all,

I have attempted to do the same thing, but I must be doing something wrong. I have the “clientlauncher.exe” in my startup folder.  
In the launch.xml file here, /.ignition/clientlauncher-data/ , I have added:

```auto
<scope>C</scope>
<project>Riots_R1</project>

```

so that the launch.xml now reads:

```auto
<?xml version="1.0" encoding="UTF-8"?>
-<global>
<gateway.addr>10.2.4.2:8088:8043</gateway.addr>
<gateway.backup.addr/>
<gateway.fallback.addr/>
<fallback.project/>
<scope>C</scope>
<project>Riots_R1</project>
<timeoutsecs>30</timeoutsecs>
<retries>-1</retries>
<windowmode>window</windowmode>
<multicast.addr>231.1.1.1</multicast.addr>
<multicast.receive.port>4446</multicast.receive.port>
<favorites.only>false</favorites.only>
<screen>0</screen>
<show.closebutton>true</show.closebutton>
<initconnect>true</initconnect>
<tempconnection>false</tempconnection>
<disabled.shortcuts>Designer</disabled.shortcuts>
<logger>INFO</logger>
<other-args> </other-args>
-<client.override>
<main-class/>
<init-heap/>
<max-heap/>
<jvm-args/>
<sun.java2d.d3d/>
<sun.java2d.noddraw/>
</client.override>
</global>

```

But at startup, while the client launcher is loading, it initially shows this screen ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/37550b12d7223137c45e765f080bbd109105ca8d.PNG)  
before finally going to the main launcher page. (And it never opens my project).

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/8cd68270c4d9a70fa3f32ebd8c6f62cb0034012c.PNG)

The client launcher.log file reads:

```auto
ERROR [SplashFrame] [13:38:28,616]: Gateway reported a temporary overload (http status code 503)

```

Does anyone know what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 15, 2018, 8:54pm UTC](https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720/5 "2018-03-15T20:54:42Z")

</div>

Don’t put the exe in your startup folder. That just opens the launcher with no target or settings. Place it elsewhere, and put a shortcut to it in your startup folder. Edit that shortcut to include the command line options you need for your gateway and project details.

---

<div class="post-metadata">

**Author:** ![brian.kehn](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@brian.kehn](https://forum.inductiveautomation.com/u/brian.kehn)\
**Post date:** [March 15, 2018, 9:17pm UTC](https://forum.inductiveautomation.com/t/unable-to-launch-application-on-startup/16720/6 "2018-03-15T21:17:28Z")

</div>

Thanks for the response pturmel. I did put a shortcut into the startup folder instead, and got the same behavior of “connect error, trying again”, and then eventually opening the client launcher but not the actual project.

An interesting note: I notice that I have two “clientlauncher.log” files. One with the clientlauncher.exe and another in the folder C:\Users\User.ignition\clientlauncher-data (which is where the “launch.xml” is found as well.)

the clientlauncher.log that is here: C:\Users\User.ignition\clientlauncher-data is reporting an error on startup.

```auto
ERROR [SplashFrame] [14:06:04,443]: Gateway reported a temporary overload (http status code 503)

```
