Page 1 of 1

Smart Client on Ubuntu Desktop 10.x with JRE 1.5

PostPosted: Tue Mar 01, 2011 4:56 am
by erikd
We have a Servoy application with a customized client plugin. In our login module we call it as "plugins.our_plugin.methodReturningLongData();". When I execute the application in Windows, the plugin is instantiated and can be used in our Servoy app. However, when I tested it in Linux Ubuntu environment, the plugin is not instantiated and returns undefined. This causes the application to display "TypeError: Cannot call method 'methodReturningLongData' of undefined (file#111)"

Both Windows and Ubuntu client systems are accessing the same app server. Prior the execution of the application in Ubuntu environment, Java cache has been cleared which means it gets the full copy of the application.

Does Servoy have additional configuration details on how to run Servoy apps in an Ubuntu environment?

Re: Smart Client on Ubuntu Desktop 10.x with JRE 1.5

PostPosted: Tue Mar 01, 2011 11:26 am
by jcompagner
under windows what is the the java version?
is that also 1.5?
It seems that your plugin didn't load, maybe this is because your plugin is compiled with java 6 and therefor will not run on java 5.

Re: Smart Client on Ubuntu Desktop 10.x with JRE 1.5

PostPosted: Tue Mar 01, 2011 7:08 pm
by rgansevles
Erik,

Also make sure that suns (oracles) java is installed and not the (ubuntu defaautl) openjdk.

Rob

Re: Smart Client on Ubuntu Desktop 10.x with JRE 1.5

PostPosted: Tue Mar 01, 2011 11:40 pm
by erikd
jcompagner wrote:under windows what is the the java version?
is that also 1.5?
It seems that your plugin didn't load, maybe this is because your plugin is compiled with java 6 and therefor will not run on java 5.


Thanks for the reply. I already considered this that's why I recompiled my plugin to java 5. But nothing works still. The plugin still returns null.

Re: Smart Client on Ubuntu Desktop 10.x with JRE 1.5

PostPosted: Tue Mar 01, 2011 11:41 pm
by erikd
rgansevles wrote:Erik,

Also make sure that suns (oracles) java is installed and not the (ubuntu defaautl) openjdk.

Rob


Thanks for the reply. I already considered this. I uninstalled openJdk and installed Java 1.5 on Ubuntu 10.

Re: Smart Client on Ubuntu Desktop 10.x with JRE 1.5

PostPosted: Wed Mar 02, 2011 2:17 am
by erikd
I moved to JDK 1.6 for both Ubuntu and Servoy plugin. This did the trick. Thanks for the reminders.

Re: Smart Client on Ubuntu Desktop 10.x with JRE 1.5

PostPosted: Wed Mar 02, 2011 5:35 am
by ptalbot
You should always choose a target of Java 5 for your plugins, since this is what Servoy is currently targeting.
In Eclipse, it's easy, just set the compile target of your project (or your overall preferences) to Java 5.