# Open A New Project on the Same Client

**URL:** <https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492>\
**Category:** Ignition\
**Created:** [November 28, 2012, 10:16pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492 "2012-11-28T22:16:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![WildeKurt](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@WildeKurt](https://forum.inductiveautomation.com/u/WildeKurt)\
**Post date:** [November 28, 2012, 10:16pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/1 "2012-11-28T22:16:26Z")

</div>

Maybe I'm going about this all wrong but I'm trying to start a new instance of a project on a client in a diffent process (I don't want to close the current one though). I've tried using this when a button is clicked:

```auto
system.util.execute(["C:\Program Files\Java\jre6\bin\javaws.exe -localfile", "http://iowaeng2:8088/main/system/launchfs/client/ProductionDisplays.jnlp"])
```

and get the following:

> [@](#):
>
> java.io.IOException: java.io.IOException: Cannot run program "C:\Program Files\Java\jre7in\javaws.exe": CreateProcess error=123, The filename, directory name, or volume label syntax is incorrect

I've tried several variations of syntax with no luck. I don't want to redirect. Is there another way? Thanks

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [November 28, 2012, 10:24pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/2 "2012-11-28T22:24:46Z")

</div>

You have to do the following:`system.util.execute(["C:\Program Files\Java\jre6\bin\javaws.exe","http://iowaeng2:8088/main/system/launchfs/client/ProductionDisplays.jnlp"])`

---

<div class="post-metadata">

**Author:** ![WildeKurt](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@WildeKurt](https://forum.inductiveautomation.com/u/WildeKurt)\
**Post date:** [November 29, 2012, 4:24pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/3 "2012-11-29T16:24:19Z")

</div>

That gives me the same error. I noticed in the error this:

> [@](#):
>
> C:\Program Files\Java\jre6in\javaws.exe

It looks like an unprintable character is interpretted (?) perhaps. If I run the same thing from the client computers run prompt I don't get that. Any idea?

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [November 29, 2012, 5:26pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/4 "2012-11-29T17:26:02Z")

</div>

Try escaping the backslashes in the path to javaws:

```auto
system.util.execute(["C:\\Program Files\\Java\\jre6\\bin\\javaws.exe","http://iowaeng2:8088/main/system/launchfs/client/ProductionDisplays.jnlp"])
```

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [November 29, 2012, 6:55pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/5 "2012-11-29T18:55:51Z")

</div>

Good catch 🙂

---

<div class="post-metadata">

**Author:** ![JDLee](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@JDLee](https://forum.inductiveautomation.com/u/JDLee)\
**Post date:** [December 14, 2017, 10:26pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/6 "2017-12-14T22:26:46Z")

</div>

I used the javaws.exe on my computer and it failed with an older version of Java at the plant.  
I created a way to use the version of java based on the installed directory. I couldn’t find a way to query for version that worked. It only works if there is 1 directory in …/Java/

```auto
import os
Directory = os.listdir("C:/Program Files/Java/")

DirectoryVersion = str(Directory).replace("['","").replace("']","")

JavaLocation = 'C:\\Program Files\\Java\\' + DirectoryVersion + '\\bin\\javaws.exe'
Address = "http://10.100.111.103:8088/main/system/launchfs/client/Edge.jnlp"

system.util.execute([JavaLocation,Address])

```

Any better ways?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 14, 2017, 10:36pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/7 "2017-12-14T22:36:48Z")

</div>

If you’re on 7.9, then you should use openDesktop rather than opening additional client instances:  
[https://docs.inductiveautomation.com/display/DOC79/Multi-Monitor+Clients](https://docs.inductiveautomation.com/display/DOC79/Multi-Monitor+Clients)

If you insist on opening multiplie clients, then `C:\ProgramData\Oracle\Java\javapath\javaws.exe` is a symlink to whatever the last Java installer run put on your machine. I believe that will work on Windows 7-10.

---

<div class="post-metadata">

**Author:** ![JDLee](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@JDLee](https://forum.inductiveautomation.com/u/JDLee)\
**Post date:** [December 14, 2017, 10:48pm UTC](https://forum.inductiveautomation.com/t/open-a-new-project-on-the-same-client/5492/8 "2017-12-14T22:48:49Z")

</div>

Each piece of equipment has Edge as the HMI (4 total). This is an effort to show and control what’s happening over there without going over there. I would import the screens and tags to our project but the Edge tag limit stops that from happening so we are just opening the second instance locally. I would use the redirect as it’s much faster but the main HMI program needs to keep running.

And when you aren’t looking for something you find it - a Tag with the Java version.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/2e90f4cadd094f0423fe42a64b632f7b7d2ea9f0.png)
