Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » Using JNI with Eclipse+MTJ
Using JNI with Eclipse+MTJ [message #32116] Mon, 13 July 2009 10:23 Go to next message
Maria Amor is currently offline Maria Amor
Messages: 8
Registered: July 2009
Junior Member
Hello,

I'm having trouble trying to use JNI with Eclipse and MTJ. My VM
implementation supports JNI so I am trying to create a Midlet that uses
it. I have included the external libraries that implement JNI in the
project build path (but not exported them). Also, in the "Native Library
Location" I give the folder that contains the native libraries (.dll and
h). I am able to compile my project successfully, however I get a
preverification error in the class that declares the native method.

Please, does anyone has some ideas that could help me solve this problem?
Thanks a lot in advance.

Best regards,

María
Re: Using JNI with Eclipse+MTJ [message #32151 is a reply to message #32116] Mon, 13 July 2009 11:08 Go to previous messageGo to next message
Eclipse User
Originally posted by: craigjunk.setera.org

Maria,

What SDK are you using that supports JNI?

Craig

Maria Amor wrote:
> Hello,
>
> I'm having trouble trying to use JNI with Eclipse and MTJ. My VM
> implementation supports JNI so I am trying to create a Midlet that uses
> it. I have included the external libraries that implement JNI in the
> project build path (but not exported them). Also, in the "Native Library
> Location" I give the folder that contains the native libraries (.dll and
> h). I am able to compile my project successfully, however I get a
> preverification error in the class that declares the native method.
>
> Please, does anyone has some ideas that could help me solve this problem?
> Thanks a lot in advance.
>
> Best regards,
>
> María
>
>
>
Re: Using JNI with Eclipse+MTJ [message #32184 is a reply to message #32151] Mon, 13 July 2009 11:31 Go to previous messageGo to next message
Maria Amor is currently offline Maria Amor
Messages: 8
Registered: July 2009
Junior Member
Hello Craig,

Thanks for your quick answer.
Well, I'm using Sun's Wireless Toolkit 2.5.2. I donŽt have any specific
SDK that supports JNI, but my VM does support it (I use IBM's J9).

Regards,
María
Re: Using JNI with Eclipse+MTJ [message #32459 is a reply to message #32184] Wed, 15 July 2009 11:22 Go to previous messageGo to next message
Eclipse User
Originally posted by: craigjunk.setera.org

Given that MIDP doesn't, by default, allow for JNI you aren't going to
be able to use Sun's toolkit for this work. The preverification will fail.

Maria Amor wrote:
> Hello Craig,
>
> Thanks for your quick answer.
> Well, I'm using Sun's Wireless Toolkit 2.5.2. I donŽt have any specific
> SDK that supports JNI, but my VM does support it (I use IBM's J9).
>
> Regards,
> María
>
>
>
Re: Using JNI with Eclipse+MTJ [message #32494 is a reply to message #32459] Wed, 15 July 2009 11:30 Go to previous messageGo to next message
Eclipse User
Originally posted by: craigjunk.setera.org

To answer your question via email...

I have no idea what SDK you could use for this testing. It would have
to look like a standard ME SDK for MTJ to be able to use it.

Craig Setera wrote:
> Given that MIDP doesn't, by default, allow for JNI you aren't going to
> be able to use Sun's toolkit for this work. The preverification will fail.
>
> Maria Amor wrote:
>> Hello Craig,
>>
>> Thanks for your quick answer.
>> Well, I'm using Sun's Wireless Toolkit 2.5.2. I donŽt have any specific
>> SDK that supports JNI, but my VM does support it (I use IBM's J9).
>>
>> Regards,
>> María
>>
>>
>>
>
Re: Using JNI with Eclipse+MTJ [message #33101 is a reply to message #32494] Mon, 20 July 2009 07:13 Go to previous message
Maria Amor is currently offline Maria Amor
Messages: 8
Registered: July 2009
Junior Member
OK. Thank you Craig. So far, I havenŽt found that SDK. I'll let you know
if I do.

Regards
Re: Using JNI with Eclipse+MTJ [message #574693 is a reply to message #32116] Mon, 13 July 2009 11:08 Go to previous message
Craig Setera is currently offline Craig Setera
Messages: 54
Registered: July 2009
Member
Maria,

What SDK are you using that supports JNI?

Craig

Maria Amor wrote:
> Hello,
>
> I'm having trouble trying to use JNI with Eclipse and MTJ. My VM
> implementation supports JNI so I am trying to create a Midlet that uses
> it. I have included the external libraries that implement JNI in the
> project build path (but not exported them). Also, in the "Native Library
> Location" I give the folder that contains the native libraries (.dll and
> h). I am able to compile my project successfully, however I get a
> preverification error in the class that declares the native method.
>
> Please, does anyone has some ideas that could help me solve this problem?
> Thanks a lot in advance.
>
> Best regards,
>
> María
>
>
>
Re: Using JNI with Eclipse+MTJ [message #574716 is a reply to message #32151] Mon, 13 July 2009 11:31 Go to previous message
Maria Amor is currently offline Maria Amor
Messages: 8
Registered: July 2009
Junior Member
Hello Craig,

Thanks for your quick answer.
Well, I'm using Sun's Wireless Toolkit 2.5.2. I donŽt have any specific
SDK that supports JNI, but my VM does support it (I use IBM's J9).

Regards,
María
Re: Using JNI with Eclipse+MTJ [message #574886 is a reply to message #32184] Wed, 15 July 2009 11:22 Go to previous message
Craig Setera is currently offline Craig Setera
Messages: 54
Registered: July 2009
Member
Given that MIDP doesn't, by default, allow for JNI you aren't going to
be able to use Sun's toolkit for this work. The preverification will fail.

Maria Amor wrote:
> Hello Craig,
>
> Thanks for your quick answer.
> Well, I'm using Sun's Wireless Toolkit 2.5.2. I donŽt have any specific
> SDK that supports JNI, but my VM does support it (I use IBM's J9).
>
> Regards,
> María
>
>
>
Re: Using JNI with Eclipse+MTJ [message #574935 is a reply to message #32459] Wed, 15 July 2009 11:30 Go to previous message
Craig Setera is currently offline Craig Setera
Messages: 54
Registered: July 2009
Member
To answer your question via email...

I have no idea what SDK you could use for this testing. It would have
to look like a standard ME SDK for MTJ to be able to use it.

Craig Setera wrote:
> Given that MIDP doesn't, by default, allow for JNI you aren't going to
> be able to use Sun's toolkit for this work. The preverification will fail.
>
> Maria Amor wrote:
>> Hello Craig,
>>
>> Thanks for your quick answer.
>> Well, I'm using Sun's Wireless Toolkit 2.5.2. I donŽt have any specific
>> SDK that supports JNI, but my VM does support it (I use IBM's J9).
>>
>> Regards,
>> María
>>
>>
>>
>
Re: Using JNI with Eclipse+MTJ [message #575243 is a reply to message #32494] Mon, 20 July 2009 07:13 Go to previous message
Maria Amor is currently offline Maria Amor
Messages: 8
Registered: July 2009
Junior Member
OK. Thank you Craig. So far, I havenŽt found that SDK. I'll let you know
if I do.

Regards
Previous Topic:ClassNotFoundException when two classes are defined in the same java file
Next Topic:ClassNotFoundException when two classes are defined in the same java file
Goto Forum:
  


Current Time: Thu Sep 18 15:48:32 GMT 2014

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

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