java build path [message #83929] |
Thu, 17 March 2005 07:35  |
Eclipse User |
|
|
|
Hello,
I have managed it to add my own bean to the pallete. I can click on my
bean and I can place it on a frame. The only thing is I have to add
"MyJButton.jar" to the classpath (on the wizard "Properties"). Otherwise I
get an exception
------------------------------------------------------------ ----------------
java.lang.ExceptionInInitializerError: IWAV0118E Class IWAV0189E unknown
(or one of its superclasses) is not found or has errors.
at
org.eclipse.ve.internal.java.core.BasicAllocationProcesser.i nstantiateWithString(BasicAllocationProcesser.java:203)
at
org.eclipse.ve.internal.java.core.BeanProxyAdapter.basicInit ializationStringAllocation(BeanProxyAdapter.java:903)
...
------------------------------------------------------------ ----------------
There is
********************************************
<runtime>
<library name="MyJButton.jar">
<export name="*"/>
</library>
</runtime>
********************************************
in the "plugin.xml". I have read that this entry adds libraries to the
class path. Is it not enough?
Thank you in advance
Elena
|
|
|
Re: java build path [message #83988 is a reply to message #83929] |
Thu, 17 March 2005 10:57  |
Eclipse User |
|
|
|
Hi Elena,
The MyButton.jar in the plugin.xml is for Eclipse to know where your
classes are and use them. However the project that you have in your
workspace is on a completely different classpath than the Eclipse which
is handling that project. If you need MyButton.jar classes in the
project also, you would need to add it to the classpath manually - or
provide some action (menu, etc.) to add that JAR automatically to the
classpath.
It is like having the SWT JARs - Just because Eclipse has the JARs in
its classpath, doesnt mean the applications in a new Java project get
them too. The applications in your project ultimately run on a
completely different VM - and that VM would need to know which JARs are
needed via the classpath. Hope ive made sense.
Regards,
Sri.
Elena wrote:
> Hello,
>
> I have managed it to add my own bean to the pallete. I can click on my
> bean and I can place it on a frame. The only thing is I have to add
> "MyJButton.jar" to the classpath (on the wizard "Properties"). Otherwise
> I get an exception
>
> ------------------------------------------------------------ ----------------
>
> java.lang.ExceptionInInitializerError: IWAV0118E Class IWAV0189E unknown
> (or one of its superclasses) is not found or has errors.
> at
> org.eclipse.ve.internal.java.core.BasicAllocationProcesser.i nstantiateWithString(BasicAllocationProcesser.java:203)
>
> at
> org.eclipse.ve.internal.java.core.BeanProxyAdapter.basicInit ializationStringAllocation(BeanProxyAdapter.java:903)
> ..
> ------------------------------------------------------------ ----------------
>
>
> There is ********************************************
> <runtime>
> <library name="MyJButton.jar">
> <export name="*"/>
> </library> </runtime>
> ********************************************
> in the "plugin.xml". I have read that this entry adds libraries to the
> class path. Is it not enough?
>
> Thank you in advance
> Elena
>
|
|
|
Re: java build path [message #605929 is a reply to message #83929] |
Thu, 17 March 2005 10:57  |
Eclipse User |
|
|
|
Hi Elena,
The MyButton.jar in the plugin.xml is for Eclipse to know where your
classes are and use them. However the project that you have in your
workspace is on a completely different classpath than the Eclipse which
is handling that project. If you need MyButton.jar classes in the
project also, you would need to add it to the classpath manually - or
provide some action (menu, etc.) to add that JAR automatically to the
classpath.
It is like having the SWT JARs - Just because Eclipse has the JARs in
its classpath, doesnt mean the applications in a new Java project get
them too. The applications in your project ultimately run on a
completely different VM - and that VM would need to know which JARs are
needed via the classpath. Hope ive made sense.
Regards,
Sri.
Elena wrote:
> Hello,
>
> I have managed it to add my own bean to the pallete. I can click on my
> bean and I can place it on a frame. The only thing is I have to add
> "MyJButton.jar" to the classpath (on the wizard "Properties"). Otherwise
> I get an exception
>
> ------------------------------------------------------------ ----------------
>
> java.lang.ExceptionInInitializerError: IWAV0118E Class IWAV0189E unknown
> (or one of its superclasses) is not found or has errors.
> at
> org.eclipse.ve.internal.java.core.BasicAllocationProcesser.i nstantiateWithString(BasicAllocationProcesser.java:203)
>
> at
> org.eclipse.ve.internal.java.core.BeanProxyAdapter.basicInit ializationStringAllocation(BeanProxyAdapter.java:903)
> ..
> ------------------------------------------------------------ ----------------
>
>
> There is ********************************************
> <runtime>
> <library name="MyJButton.jar">
> <export name="*"/>
> </library> </runtime>
> ********************************************
> in the "plugin.xml". I have read that this entry adds libraries to the
> class path. Is it not enough?
>
> Thank you in advance
> Elena
>
|
|
|
Powered by
FUDForum. Page generated in 0.03869 seconds