UI - jar packaging

Hello, facing problem with packaging of UI components to jar files.
- have two module: Core and App, where app use core as component library.
- UI designer is set to compile into Java source code
- use javac2 compiler to create core.jar:

IDEA give me error at App module, when tries to compile form that use core component: appPanel.add(coreTableComponent.$$$getRootComponent$$$(), new GridConstraints(......)); cannot find symbol: symbol : method $$$getRootComponent$$$() - same error when I use ant javac2 compiler to compile app.jar When I check core.jar ->]]> CoreTableComponent.class method $$$getRootComponent$$$() exist and is public.

Please help, what I missed? Thanks

Edited by: UI_user on Jun 12, 2008 1:58 PM

3 comments
Comment actions Permalink

Hello UI_user,

Hello, facing problem with packaging of UI components to jar files.
- have two module: Core and App, where app use core as component
library.
- UI designer is set to compile into Java source code
- use javac2 compiler to create core.jar:
<javac2 destdir="${build.dir}/core" debug="${compile.debug}"
optimize="${compile.optimize}" source="${compile.source}"
target="${compile.target}" deprecation="${compile.deprecation}">
<classpath refid="compile.classpath" />
<src path="${src.dir}" />
</javac2>
IDEA give me error at App module, when tries to compile form that use
core component:

appPanel.add(coreTableComponent.$$$getRootComponent$$$(), new
GridConstraints(......));

cannot find symbol: symbol : method $$$getRootComponent$$$()

- same error when I use ant javac2 compiler to compile app.jar

When I check core.jar -> CoreTableComponent.class method
$$$getRootComponent$$$() exist and is public.

Please help, what I missed? Thanks


1. What IDEA build are you using?
2. Do I understand it correctly that App module has dependency to core.jar,
and not to Core module?
3. How have you put coreTableComponent to appPanel: as a form, non-palette
component or some other way?

Alexander.


0
Comment actions Permalink

>>1. What IDEA build are you using?
#7757

>> 2. Do I understand it correctly that App module has dependency to core.jar, and not to Core module?
Yes. In the case of module dependecy is everything fine.

>> 3. How have you put coreTableComponent to appPanel: as a form, non-palette component or some other way?
CoreTableComponent was dragged from palette (form definition).

Thanks

0
Comment actions Permalink

Hello UI_user,

>>> 1. What IDEA build are you using?
>>>

#7757

>>> 2. Do I understand it correctly that App module has dependency to
>>> core.jar, and not to Core module?
>>>

Yes. In the case of module dependecy is everything fine.

>>> 3. How have you put coreTableComponent to appPanel: as a form,
>>> non-palette component or some other way?
>>>

CoreTableComponent was dragged from palette (form definition).

Thanks


Hm... I cannot add a nested form, if the form file is in library jar, not
in module. IDEA replies "Cannot load form file". Sorry, no ideas how to help
for now.

Alexander.


0

Please sign in to leave a comment.