Problem with showFileOpenDialog()

Hi,

It seems the method: “plugins.file.showFileOpenDialog()” don’t work on Servoy 3.5.

Code source:

var file = plugins.file.showFileOpenDialog();

var img = plugins.file.readFile(file)

Error message:

java.lang.NoSuchMethodError: com.servoy.j2db.util.FileChooserUtils.getAReadFile(Ljava/awt/Component;Ljava/io/File;I)Ljava/io/File; (Btn_importer, line 4)

I work on:
Version 3.5-build 513
Java version 1.6.0_01-b06 (Windows XP)[/code]

Thanks

hmm, I have seen another post complaining about j2db methods if I am not mistaken.

In other words, there is something wrong with the j2db.jar you have installed. What happens when you re-install Servoy. Or maybe you should try to find the other post and see what they came up with…

I’ve re-install Servoy but it don’t solve this problem.

I’ll try to find the post

Sound like you are using the file-plugin from 3.1 with servoy 3.5.
Please check the file plugin jar (plugins/file.jar), in 3.5 it should be 13094 bytes.

Rob

I just had a similar problem with the DBTreeView bean. One of the methods (setNRelationName) did simply not show up. I threw the bean in a var and could see the method was there. It was also usable… I downloaded a new build from Gabi and the method was back.

It works fine now :D
Thanks Rob