Cloudgarden's Discussion Board
Forums: Search: Several forums are available for people to post questions/comments about Java Speech or any of the CloudGarden products. As more messages are posted this discussion board should provide a useful, searchable, support database.
o AliceTalker (42)
o JSAPI Projects (69)
o Java Speech API (857)
o Jigloo GUI Builder for Eclipse (3322)
o SwingScroller (0)
o US Election 2004 (3)
Searches text and subject fields in all forums. The search matches as many words as possible. Don't use "AND" or "OR".
Latest "Jigloo GUI Builder for Eclipse" Topics [ Start new "Jigloo GUI Builder for Eclipse" Topic  ]

Cloudgarden Discussion Board  
This topic has 7 replies.       [ << Previous Topic | Start of Thread | >> Next Topic ]
Custom components in external jar
Author: Tobbe
11/29/10 02:25 Reply
Hello

Thanks for a great plugin that we have used with the commercial license for some years now.

We have developed several custom components that are stored in a jar-file that the project X have access to in the build path. When we try to add a component from this jar-file the error message 'Unable to find class' is presented and the component isn't added. But the component is presented in the dialog 'Select new class' that shows when hitting the 'Custom class or layout...'-button.

This wasn't a problem when the custom components where in a project (and not in a jar) that the project X had a reference to in build path. But now we want the component to be in this jar-file. We have tried to add components from the jar-file in the preference dialog under 'Component palette/Custom classes' and the components are presented in the tree under the node 'Custom' in this preference dialog, but it can still not be added to the frame (or dialog, JPanel or what ever). Also the custom class isn't showing under the tab 'Custom' in the main view.

Please help us so we can still use this plugin.
Best regards
/Tobbe

Re: Custom components in external jar
Author:Jonathan
Reply 1 of 711/29/10 05:26Reply
Hi Tobbe,

Thanks, and some questions...

Is the jar file (with the custom components) in the project's build path? Does the jar require classes from any other project or jar file? and are those also in the project's build path?

The easiest way to make sure that all the necessary classes are in the project's build path would be to manually write some code that uses a custom component (from your jar file). If the code compiles and runs without error then the problem is with Jigloo and I will look at it.

Re: Custom components in external jar
Author:Tobbe
Reply 2 of 711/29/10 05:44Reply
Hi

Thanks for your quick answer! My answer to all your questions in the post is Yes. All the required jars is in the build path and I can write some code manually and use my custom components and all works great. But the components isn't visible in the GUI-builder unfortunately.

Best regards
/Tobbe

Re: Custom components in external jar
Author:Jonathan
Reply 3 of 712/01/10 08:56Reply
Hi Tobbe,

OK, more questions - do you see any error messages in the workspace/.metadata/.log file?

And could it be a compiler-version-conflict issue?
What I mean is that Jigloo uses the same JVM as eclipse, so if eclipse is running under Java 1.5 but your jar file was compiler using Java 1.6 then you might encounter some problems. If this is the issue, it should be resolved by making sure Eclipse is running under Java 1.6.

Re: Custom components in external jar
Author:Tobbe
Reply 4 of 712/01/10 22:49Reply
Hi

I tried to put the jar file in the working project (instead of in a different project in the workspace as before). Then it works fine! But this isn't preferable when we have a repository project with all our jar files and other projects that wants to use some jars have to import that project to the workspace and then add the jar to the build path.

It doesn't matter which JRE (1.5 or 1.6) I build with, same issue. Also tried to export new jars with another JRE facing the same problem.

Let me know if there are other things to try or if you have recreated the problem.

Best regards
/Tobbe

The .log file:
!SESSION 2010-12-02 07:42:15.136 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.jface 2 0 2010-12-02 07:42:25.120
!MESSAGE Keybinding conflicts occurred. They may interfere with normal accelerator operation.
!SUBENTRY 1 org.eclipse.jface 2 0 2010-12-02 07:42:25.120
!MESSAGE A conflict occurred for ALT+CTRL+J:
Binding(ALT+CTRL+J,
     ParameterizedCommand(Command(org.eclipse.ui.edit.text.join.lines,Join Lines,
          Join lines of text,
          Category(org.eclipse.ui.category.textEditor,Text Editing,Text Editing Commands,true),
          ,
          ,,true),null),
     org.eclipse.ui.defaultAcceleratorConfiguration,
     org.eclipse.ui.textEditorScope,,,system)
Binding(ALT+CTRL+J,
     ParameterizedCommand(Command(com.cloudgarden.jigloo.commands.openJiglooPrefs,Open Jigloo Preferences Page,
          Open Jigloo Preferences Page,
          Category(com.cloudgarden.jigloo.actions.category,Jigloo,Jigloo Actions,true),
          ActionDelegateHandlerProxy(null,com.cloudgarden.jigloo.actions.OpenJiglooPreferencePageAction),
          ,,true),null),
     org.eclipse.ui.defaultAcceleratorConfiguration,
     org.eclipse.ui.textEditorScope,,,system)

Re: Custom components in external jar
Author:Jonathan
Reply 5 of 712/02/10 07:36Reply
Hi Tobbe,

Thanks for the info - I think I have now fixed this bug and put a new jigloo.jar here:

http://cloudgarden1.com/jigloo.jar

Please download it and replace (after backing it up) the jigloo.jar file in
plugins/com.cloudgarden.jigloo_462

Then restart Eclipse.

I'd appreciate any feedback you have on this patch. Thanks.

Re: Custom components in external jar
Author:Tobbe
Reply 6 of 712/02/10 23:13Reply
Hi

It works fine now. Thanks for your quickly support! I suppose that this will be the jar we get when installing from the update manager and address http://cloudgarden1.com/update-site? So we don't have to manage the file jigloo.jar ourself and always have the newest version.

Thank again!
Best regards
Tobbe

Re: Custom components in external jar
Author:Jonathan
Reply 7 of 712/03/10 04:28Reply
The jar you just downloaded was just a "patch" to fix the bug you found (actually it also fixes several other bugs, and will probably be very close to the version used in the next release - 4.6.3).

The next official version (4.6.3) will be released via the normal eclipse update mechanism.