# Java downgrade to version 6.41=project icon inoperable

**URL:** <https://forum.inductiveautomation.com/t/java-downgrade-to-version-6-41-project-icon-inoperable/6173>\
**Category:** Ignition\
**Created:** [April 8, 2013, 12:14am UTC](https://forum.inductiveautomation.com/t/java-downgrade-to-version-6-41-project-icon-inoperable/6173 "2013-04-08T00:14:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DWeber](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@DWeber](https://forum.inductiveautomation.com/u/DWeber)\
**Post date:** [April 8, 2013, 12:14am UTC](https://forum.inductiveautomation.com/t/java-downgrade-to-version-6-41-project-icon-inoperable/6173/1 "2013-04-08T00:14:14Z")

</div>

Our company is using a new software program that needs Java version 6.41 to run correctly. When version 6.41 is installed the project icon stops working. We have to delete the file C:\Program Files\Inductive Automation\Ignition and relaunch project from web browser to make the icon work again.

---

<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:** [April 8, 2013, 4:05pm UTC](https://forum.inductiveautomation.com/t/java-downgrade-to-version-6-41-project-icon-inoperable/6173/2 "2013-04-08T16:05:59Z")

</div>

You should clear the Java cache to let Java re-create the shortcut. To clear the cache go to Start \> Control Panel \> Java. Find the temporary internet settings and delete the files. Then launch the client again.

---

<div class="post-metadata">

**Author:** ![DWeber](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@DWeber](https://forum.inductiveautomation.com/u/DWeber)\
**Post date:** [April 8, 2013, 6:07pm UTC](https://forum.inductiveautomation.com/t/java-downgrade-to-version-6-41-project-icon-inoperable/6173/3 "2013-04-08T18:07:58Z")

</div>

That is what we are currently doing Travis but did not want to do that to every computer in the plant. I was looking more for a reason or a permanent fix to the issue.

---

<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:** [April 8, 2013, 6:36pm UTC](https://forum.inductiveautomation.com/t/java-downgrade-to-version-6-41-project-icon-inoperable/6173/4 "2013-04-08T18:36:02Z")

</div>

Well a permanent solution would be to create your own shortcut. The shortcut path would look like this:`"C:\Windows\System32\javaws.exe" "http://192.168.1.5:8088/main/system/launch/client/ProjectName.jnlp`You can replace the path to javaws.exe, the ip address and the project name for your server.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [April 9, 2013, 7:24am UTC](https://forum.inductiveautomation.com/t/java-downgrade-to-version-6-41-project-icon-inoperable/6173/5 "2013-04-09T07:24:04Z")

</div>

Depending on your clients Java installation you can try the following code in a ClientStartupScript:

```auto
from javax.jnlp import ServiceManager
try:
    intService = ServiceManager.lookup("javax.jnlp.IntegrationService")
    if intService.hasDesktopShortcut() or intService.hasMenuShortcut():
    	print "Shortcut already present - Removing"
    	intService.removeShortcuts()
    	
    # requestShortcut(Desktop, Menu, MenuFolderName)
    if not intService.requestShortcut(1, 1, "IgnitionApps"):
    	print "Failed to install shortcut"
    else:
    	print "Shortcut created"	
except:
    print "IntegrationService not available"
```

On Client startup, existting shortcuts should be removed an replaced by the new ones.  
The IntegrationService API exists since Java 6.0.18, and is (at least in our company) installed by default.
