comp.lang.ada
 help / color / mirror / Atom feed
* Non-GPL JNI
@ 2015-06-19  7:37 dp
  2015-06-19 13:45 ` David Botton
  0 siblings, 1 reply; 6+ messages in thread
From: dp @ 2015-06-19  7:37 UTC (permalink / raw)


Hello

I am aware of the JNI from Adacore. But it is unfortunately GPL licensed.
Are there any non-GPL alternatives?

Regards
dp


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Non-GPL JNI
  2015-06-19  7:37 Non-GPL JNI dp
@ 2015-06-19 13:45 ` David Botton
  2015-06-19 21:39   ` Luke A. Guest
  2015-06-19 22:37   ` Luke A. Guest
  0 siblings, 2 replies; 6+ messages in thread
From: David Botton @ 2015-06-19 13:45 UTC (permalink / raw)


The last known non GPL virused JNI packages (via wayback machine):

https://web.archive.org/web/20050210042048/http://www.acenet.com.au/~gbull/

You might consider hand coding is not that difficult.

David Botton
(score -1 more for Ada advocacy thanks to virused runtimes, woohoo)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Non-GPL JNI
  2015-06-19 13:45 ` David Botton
@ 2015-06-19 21:39   ` Luke A. Guest
  2015-06-19 22:37   ` Luke A. Guest
  1 sibling, 0 replies; 6+ messages in thread
From: Luke A. Guest @ 2015-06-19 21:39 UTC (permalink / raw)


David Botton <david@botton.com> wrote:
> The last known non GPL virused JNI packages (via wayback machine):
> 
> https://web.archive.org/web/20050210042048/http://www.acenet.com.au/~gbull/
> 
> You might consider hand coding is not that difficult.
> 
> David Botton
> (score -1 more for Ada advocacy thanks to virused runtimes, woohoo)

I'll stick me oar in as well ;)

Shit situation, isn't it?


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Non-GPL JNI
  2015-06-19 13:45 ` David Botton
  2015-06-19 21:39   ` Luke A. Guest
@ 2015-06-19 22:37   ` Luke A. Guest
  2015-06-25 23:09     ` dp
  1 sibling, 1 reply; 6+ messages in thread
From: Luke A. Guest @ 2015-06-19 22:37 UTC (permalink / raw)


David Botton <david@botton.com> wrote:
> The last known non GPL virused JNI packages (via wayback machine):

It shouldn't be too difficult to write a replacement interfaces.java
package set with tools to scan a jar and build bindings from Java classes.
Apparent they're fairly easy to reverse an interface from. There are papers
detailing how to map Java constructs onto Ada ones, these papers were
written by people in adacore and are public.

Luke


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Non-GPL JNI
  2015-06-19 22:37   ` Luke A. Guest
@ 2015-06-25 23:09     ` dp
  2015-06-25 23:59       ` David Botton
  0 siblings, 1 reply; 6+ messages in thread
From: dp @ 2015-06-25 23:09 UTC (permalink / raw)


Does someone have a small example how to do it?
Just a Java function that calls an Ada function and vice-versa.

I do not need something that build bindings from Java classes.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Non-GPL JNI
  2015-06-25 23:09     ` dp
@ 2015-06-25 23:59       ` David Botton
  0 siblings, 0 replies; 6+ messages in thread
From: David Botton @ 2015-06-25 23:59 UTC (permalink / raw)


On Thursday, June 25, 2015 at 7:09:13 PM UTC-4, dp wrote:
> Does someone have a small example how to do it?
> Just a Java function that calls an Ada function and vice-versa.
> 
> I do not need something that build bindings from Java classes.

If you are not familiar enough with how to recode the various C examples on the net directly in Ada, I'd suggest a very simple solution. Write the needed interface code in C and then just call Ada or have Ada call the C. if you are not using an Ada main, make sure to call adainit/adafinal to initialize the Ada runtime.


David Botton


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-06-25 23:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19  7:37 Non-GPL JNI dp
2015-06-19 13:45 ` David Botton
2015-06-19 21:39   ` Luke A. Guest
2015-06-19 22:37   ` Luke A. Guest
2015-06-25 23:09     ` dp
2015-06-25 23:59       ` David Botton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox