Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » java build path
java build path [message #83929] Thu, 17 March 2005 12:35 Go to next message
Elena Demeter is currently offline Elena DemeterFriend
Messages: 152
Registered: July 2009
Senior Member
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 15:57 Go to previous message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
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 15:57 Go to previous message
Srimanth  is currently offline Srimanth Friend
Messages: 225
Registered: July 2009
Senior Member
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
>
Previous Topic:Wrapped exception
Next Topic:ve and j2me
Goto Forum:
  


Current Time: Tue Apr 23 07:29:56 GMT 2024

Powered by FUDForum. Page generated in 0.03132 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top