I have a couple of beans that would like to include in Servoy but I am not sucessful generating the JAR in Eclipse. The beans do not have any programming error.
I think I am missing something when I try to create the JAR file.
Any of you have already created beans that work in Servoy ?
I will appreciate any help.
Thanks
instead of using eclipse, try using a command line with the jar command;
build a manifest file that defines the bean;
all of this stuff is reasonably simple and is described in the standard java tools doco
The Manifest file needs to have a linefeed at the end, else it doesn’t work ![Shocked :shock:]()
Check the format of the manifest files supplied with the standard bean jars of Servoy.
Eclipse doesn’t add the linefeed by default.
Paul
Thank you very much guys for your input. Now my bean can be seen in Servoy.
The problem was in the manifest file. I did this from the command line not within Eclipse.
What I did was:
-
compile with
javac SimpleBean.java
-
create .jar with
jar cfm SimpleBean.jar SimpleBean.manifest SimpleBean.class
-
copy the .jar file to the …/Servoy/beans directory.
Now I can see the bean SimpleBean in the beans dialog box. Cool!
For future reference, I am attaching here the files:
http://reyesaguayo.com/files/SimpleBean.java
http://reyesaguayo.com/files/SimpleBean.manifest
As you said, it’s very important the blank line at the end of the manisfest file, otherwise the .jar is generated but will not be seen in Servoy.
I’ll try now with the difficult ones and let you know my results.
Mil gracias.
Thanks again!