# different Java versions

**URL:** <https://forum.servoy.com/t/different-java-versions/3464>\
**Category:** Classic Servoy\
**Created:** [January 14, 2005, 5:27pm UTC](https://forum.servoy.com/t/different-java-versions/3464 "2005-01-14T17:27:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [January 14, 2005, 5:27pm UTC](https://forum.servoy.com/t/different-java-versions/3464/1 "2005-01-14T17:27:33Z")

</div>

Hello,

I have 2 Java versions installed at the same time (1.4.2 and 1.5). When I launch developer it uses 1.5. I know where I can control the version used in the client, but I don’t know how I can control which version developer uses upon startup. Does anybody know?

Thanks  
Patrick

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [January 17, 2005, 7:42am UTC](https://forum.servoy.com/t/different-java-versions/3464/2 "2005-01-17T07:42:31Z")

</div>

My guess, at least on windows, is in the servoy\_developer.bat.

Instead of:

java -classpath servoy\_developer.jar Servoy

do:

c:\j2sdk1.4.2\_06\bin\java -classpath servoy\_developer.jar Servoy

Basically, you point to the exact java executable that you want to be used.

Paul

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [January 17, 2005, 8:21am UTC](https://forum.servoy.com/t/different-java-versions/3464/3 "2005-01-17T08:21:04Z")

</div>

I thought so. But probably there is a way to tell my whole system what to use… For Web start apps there is one place where you can choose in the system settings, but not for Java apps as far as I could find.

---

<div class="post-metadata">

**Author:** ![pbakker](https://avatars.discourse-cdn.com/v4/letter/p/a4c791/32.png) [@pbakker](https://forum.servoy.com/u/pbakker)\
**Post date:** [January 17, 2005, 8:29am UTC](https://forum.servoy.com/t/different-java-versions/3464/4 "2005-01-17T08:29:47Z")

</div>

If you’re on windows, you’d have to look at the Environment variables (Start - Settings - Control Panel - System - Advanced - Environment Variables (Can differ a bit between Windows versions))

Once there, look for the JAVA\_HOME and PATH system variables. They should point to the Java installation you want to use.

Changing them should do the trick, in general.

Paul

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [January 17, 2005, 8:30am UTC](https://forum.servoy.com/t/different-java-versions/3464/5 "2005-01-17T08:30:56Z")

</div>

Thanks! I’ll try that.
