Re: JNI in Java 1.6

  • From: Andreas Stefik <stefika@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Tue, 4 Jan 2011 10:40:39 -0600

If it is possible to do that in C, I have never done so. When I want
such behavior, I usually pass an array/vector/list instead.

Stefik

On Sat, Jan 1, 2011 at 10:01 AM, John J. Boyer
<john.boyer@xxxxxxxxxxxxxxxxx> wrote:
> Thanks. I found a way to generate the curly braces for functions using
> find and replace. Is there a way to refer to the parameters of a C
> function by position in the argumennt list rather than giving them
> names?
>
> Thanks,
> John
>
> On Sat, Jan 01, 2011 at 09:36:11AM -0600, Andreas Stefik wrote:
>> Hi John,
>>
>> QuentinC is correct. I would add one more thing, in that JNI has been
>> in the JDK for a very long time, and to my knowledge there should not
>> be any significant difference (if any) between 1.5 and 1.6 in relation
>> to it.
>>
>> My team, for example, has used a ton of JNI code both on 1.5 platforms
>> and 1.6, with no changes.
>>
>> Stefik
>>
>> On Sat, Jan 1, 2011 at 4:20 AM, QuentinC <quentinc@xxxxxxxxxxx> wrote:
>> > Hello,
>> > Try javah with only the full class name. It should generate an header 
>> > called
>> > something like java_package_subpackage_classname.h.
>> > Note, I would rather advise JNA for most projects, except if the binding 
>> > has
>> > to be very quick. IN JNA you don't have to write any C/C++ binding code, 
>> > the
>> > DLL is directly loaded.
>> >
>> >
>> > __________
>> > View the list's information and change your settings at
>> > //www.freelists.org/list/programmingblind
>> >
>> >
>> __________
>> View the list's information and change your settings at
>> //www.freelists.org/list/programmingblind
>
> --
> John J. Boyer; President, Chief Software Developer
> Abilitiessoft, Inc.
> http://www.abilitiessoft.com
> Madison, Wisconsin USA
> Developing software for people with disabilities
>
> __________
> View the list's information and change your settings at
> //www.freelists.org/list/programmingblind
>
>
__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: