# Can I make SV 5.2 Developer run a different version of Java?

**URL:** <https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345>\
**Category:** Classic Servoy\
**Created:** [June 16, 2010, 2:28am UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345 "2010-06-16T02:28:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [June 16, 2010, 2:28am UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/1 "2010-06-16T02:28:17Z")

</div>

I’m developing on SV 5.2, MAC OSX 10.6 (64-bit) with Java 1.6 20  
I need to test some components that require Java 1.5 (32-bit).  
I used to be able to do this in 3.x by editing info.plist JVMVersion property to 1.5\*

I’ve tried changing Java Prefs to run Java 5 32-bit, and confirmed it in terminal

```auto
~$ java -version
java version "1.5.0_19"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_19-b02-304)
Java HotSpot(TM) Client VM (build 1.5.0_19-137, mixed mode, sharing)

```

However when I start Eclipse and run this

```auto
application.output( "\nJava Version: " + plugins.it2be_tools.client().javaVersion)

```

I get Java Version: 1.6.0\_20

I’ve edited this section of the Servoy developer info.plist to read

```auto
	<key>Eclipse</key>
		<array>
			
			<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
			<string>-keyring</string><string>~/.eclipse_keyring</string>
			<string>-showlocation</string>
			
		</array>

```

and confirmed that Versions/1.5.0 is actually Java 5 (and not a symlink to Java 6, which is the default when Apple updates Java on Mac 10.6)

Should I be editing something in servoy/application\_server to get SC and WC to run java 5 in Developer?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [June 16, 2010, 7:27am UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/2 "2010-06-16T07:27:15Z")

</div>

> antonio:  
> Should I be editing something in servoy/application\_server to get SC and WC to run java 5 in Developer?

Tony,

Servoy Developer runs everything in 1 jvm, so when you run Developer with java 1.5, SC and WC will also run in that.

Rob

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 16, 2010, 8:39am UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/3 "2010-06-16T08:39:23Z")

</div>

Also note that Developer will only run in the Java version you used when you installed Servoy. The Eclipse environment is then setup to use that version only.  
Lets say you had Java 6 (64bit) as your default JVM when you installed Servoy then Developer will never run in Java 6 (32-bit) or Java 5 (32/64).

So when you install Servoy (on Mac) then make sure you have setup your default JVM (/Applications/Utilities/Java Preferences.app) to the one you want to use Developer in.

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [June 16, 2010, 8:51am UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/4 "2010-06-16T08:51:34Z")

</div>

Robert,

This is not completely true.

At install-time, Servoy installs different eclipse plugins depending on the architecture (32/64 bit), but it is independent of the jvm version.  
So if you were using Java 6 in the installer, you can still run Developer with java 5.

I also expect that if you installed using a 32-bit jvm you can run with a 64-bit jvm, but not the other way around.

Note that for Servoy Server there is no dependency at all on which jvm/architecture is used at install-time.

Rob

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 16, 2010, 9:01am UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/5 "2010-06-16T09:01:34Z")

</div>

> rgansevles:  
> Robert,
> 
> This is not completely true.
> 
> At install-time, Servoy installs different eclipse plugins depending on the architecture (32/64 bit), but it is independent of the jvm version.  
> So if you were using Java 6 in the installer, you can still run Developer with java 5.
> 
> I also expect that if you installed using a 32-bit jvm you can run with a 64-bit jvm, but not the other way around.

Ahh, that was what I was seeing. I have it under Java 6 64 bits installed and can’t run it under 32 bits.  
So installing under 32 bits will allow me to run it onder 32 and 64 bits ?

> rgansevles:  
> Note that for Servoy Server there is no dependency at all on which jvm/architecture is used at install-time.

Correct. I was only talking about Developer.

In any case I stand corrected!

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [June 16, 2010, 12:54pm UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/6 "2010-06-16T12:54:13Z")

</div>

Thanks for the great explanation, I now understand why the 32 bit component was throwing an error no matter what I did.  
So I should

- switch to a 32 bit jvm
- install Developer into a new folder, reinstall SVN, etc
- point that to the old workspace

Will that bring over everything, or is migration more complicated?

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [June 16, 2010, 1:01pm UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/7 "2010-06-16T13:01:18Z")

</div>

> antonio:  
> Will that bring over everything, or is migration more complicated?

I would also copy the servoy.properties over before you launch Developer. Saves you redefining all your connections.  
But that should all be it.

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [June 16, 2010, 7:48pm UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/8 "2010-06-16T19:48:03Z")

</div>

Thanks for the tips, happy to report after a reinstall in 32-bits it’s behaving well as a 32 bit environment, regardless of the Java and bitness at launch.  
Could I suggest that you put a line on the Servoy Developer splash screen indicating what architecture it’s using?  
Tony

---

<div class="post-metadata">

**Author:** ![rgansevles](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rgansevles](https://forum.servoy.com/u/rgansevles)\
**Post date:** [June 18, 2010, 3:03pm UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/9 "2010-06-18T15:03:17Z")

</div>

> antonio:  
> Could I suggest that you put a line on the Servoy Developer splash screen indicating what architecture it’s using?

Tony,

You can also check this via Help-\>About Servoy Developer → Installation Details → Configuration

Rob

---

<div class="post-metadata">

**Author:** ![antonio](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antonio](https://forum.servoy.com/u/antonio)\
**Post date:** [June 18, 2010, 3:40pm UTC](https://forum.servoy.com/t/can-i-make-sv-5-2-developer-run-a-different-version-of-java/12345/10 "2010-06-18T15:40:56Z")

</div>

Thanks Rob, there’s quite a lot of info there ![:lol:]( "Laughing")
