Home » Archived » DSDP - Mobile Tools for Java (MTJ) » How to add a jar file to the Midlet in MTJ?
|
Re: How to add a jar file to the Midlet in MTJ? [message #22359 is a reply to message #22335] |
Fri, 14 November 2008 17:03 |
Gustavo de Paula Messages: 118 Registered: July 2009 |
Senior Member |
|
|
hi fran,
the jar file doesn't need to be in the res folder, but you need to add it
to the project build path (Project properties->java build path->Libraries)
after that, you have to mark the jar as exported (Project
properties->java build path->Order and Export).
when you do that, MTJ build will automatically preverify the classes
inside the jar file and include them in the final midlet suite jar.
we are working to make this more "user friendly" :)
if you have issues, please let us know
:)
gep
Francisco wrote:
> Hello,
> I am using MTJ and WTK 2.5.2. I have problems adding a jar file to my
> midlet suite. I add the jar file to the res folder and I add it to the
> build path. However, when I run the midlet it throws a
> NoClassDefFoundError.
> I have tried also exporting the jar file in the Build Path by checking the
> jar file in the order and export option. But then, Eclipse shows errors on
> my jar file and in the Problems window I get the following message:
> Error preverifying class net.jxta.impl.endpoint.tcp.TcpConnection
> jxta-cldc.jar FirstJXTAMidlet/res
> Do you know how can I solve this problem?
> Thanks in advance,
> Fran
|
|
| | | | | |
Re: How to add a jar file to the Midlet in MTJ? [message #567874 is a reply to message #22335] |
Fri, 14 November 2008 17:03 |
Gustavo de Paula Messages: 118 Registered: July 2009 |
Senior Member |
|
|
hi fran,
the jar file doesn't need to be in the res folder, but you need to add it
to the project build path (Project properties->java build path->Libraries)
after that, you have to mark the jar as exported (Project
properties->java build path->Order and Export).
when you do that, MTJ build will automatically preverify the classes
inside the jar file and include them in the final midlet suite jar.
we are working to make this more "user friendly" :)
if you have issues, please let us know
:)
gep
Francisco wrote:
> Hello,
> I am using MTJ and WTK 2.5.2. I have problems adding a jar file to my
> midlet suite. I add the jar file to the res folder and I add it to the
> build path. However, when I run the midlet it throws a
> NoClassDefFoundError.
> I have tried also exporting the jar file in the Build Path by checking the
> jar file in the order and export option. But then, Eclipse shows errors on
> my jar file and in the Problems window I get the following message:
> Error preverifying class net.jxta.impl.endpoint.tcp.TcpConnection
> jxta-cldc.jar FirstJXTAMidlet/res
> Do you know how can I solve this problem?
> Thanks in advance,
> Fran
|
|
| | | | | |
Goto Forum:
Current Time: Tue Oct 08 16:44:28 GMT 2024
Powered by FUDForum. Page generated in 0.07615 seconds
|