View Single Post
  #1   Spotlight this post!  
Unread 12-01-2012, 08:38
derekwhite's Avatar
derekwhite derekwhite is offline
Java Virtual Machine Hacker
no team (FIRST@Oracle)
Team Role: Programmer
 
Join Date: May 2009
Rookie Year: 2009
Location: Burlington, MA
Posts: 127
derekwhite is on a distinguished road
Re: C++/Java code embedding?

It should be possible to add new C code and call it from Java. You'd have to use workbench to create a new kernel module, made sure that the module had C bindings (if you're using C++), install the module, get it loaded at startup, and call it from Java using JNA, just like the WPILibJ code does.

That's a fine and interesting project, but if your goal is to call image processing functions like IMAQ provides, it would be simpler to add the JNA code to call the IMAQ function you need.
Reply With Quote