comp.lang.ada
 help / color / mirror / Atom feed
From: anon@att.net
Subject: Re: What is the best way to get a process-list with Ada?
Date: Sun, 16 Oct 2011 23:21:18 +0000 (UTC)
Date: 2011-10-16T23:21:18+00:00	[thread overview]
Message-ID: <j7fotd$2qn7$1@news.ett.com.ua> (raw)
In-Reply-To: 2cb6641e-dcd7-40de-95bd-71d405571631@p1g2000yqk.googlegroups.com

Writing drivers are easy in any language except those which are 
interrupted like JAVA.

For "Java" you can bind like in Ada a small imported code that is 
wriiten in Assembly, C or any other compiled language. That would 
give you the way to include functions that he desires.

To use Ada for this type you must compile use the technique of 
no system. Ada specification will export the function. And a 
small java file will import the Ada function.

Its was back in the 1990's the last time I use native code with Java 
so this link might help:

  "Java Tip 23: Write native methods - JavaWorld"
  http://www.javaworld.com/javaworld/javatips/jw-javatip23.html

As for the actually routines just google for an example.


In <2cb6641e-dcd7-40de-95bd-71d405571631@p1g2000yqk.googlegroups.com>, Shark8 <onewingedshark@gmail.com> writes:
>I got into a bit of a debate with a friend who said something to the
>effect that to write drivers one needed to use C/C++... anyway, he was
>irritated about not being able to use Java (which he's sort of been
>forced to use in this instance) to 1) get a process list, and 2) get
>window dimensions of a focused-window.
>
>I was wondering how those of you who have had experience in all three
>systems would approach it.
>
>(BTW; Linux, Mac, and Windows for #1 & #2, which is the reason they
>had for making the project Java, I certainly don't have enough
>experience w/ Mac and Linux to say much about them.)




  reply	other threads:[~2011-10-16 23:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-16 21:10 What is the best way to get a process-list with Ada? Shark8
2011-10-16 23:21 ` anon [this message]
2011-10-17  9:33   ` Oliver Kleinke
2011-10-19  0:49     ` Shark8
2011-10-19  0:47   ` Shark8
2011-10-17  1:08 ` John B. Matthews
2011-10-18 11:21 ` Stephen Leake
replies disabled

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