From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,33f90678fd18cbc7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.204.140.67 with SMTP id h3mr579066bku.3.1318985241022; Tue, 18 Oct 2011 17:47:21 -0700 (PDT) Path: l23ni15491bkv.0!nntp.google.com!news1.google.com!postnews.google.com!e4g2000vbw.googlegroups.com!not-for-mail From: Shark8 Newsgroups: comp.lang.ada Subject: Re: What is the best way to get a process-list with Ada? Date: Tue, 18 Oct 2011 17:47:20 -0700 (PDT) Organization: http://groups.google.com Message-ID: <78235f5a-ec55-4bbc-a9a3-78d661e60f3e@e4g2000vbw.googlegroups.com> References: <2cb6641e-dcd7-40de-95bd-71d405571631@p1g2000yqk.googlegroups.com> NNTP-Posting-Host: 24.230.151.194 Mime-Version: 1.0 X-Trace: posting.google.com 1318985240 4635 127.0.0.1 (19 Oct 2011 00:47:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 19 Oct 2011 00:47:20 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e4g2000vbw.googlegroups.com; posting-host=24.230.151.194; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALESNKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.1; rv:7.0.1) Gecko/20100101 Firefox/7.0.1,gzip(gfe) Xref: news1.google.com comp.lang.ada:18583 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-10-18T17:47:20-07:00 List-Id: On Oct 16, 6:21=A0pm, a...@att.net wrote: > 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: > > =A0 "Java Tip 23: Write native methods - JavaWorld" > =A0http://www.javaworld.com/javaworld/javatips/jw-javatip23.html > > As for the actually routines just google for an example. > > In <2cb6641e-dcd7-40de-95bd-71d405571...@p1g2000yqk.googlegroups.com>, Sh= ark8 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.) Thank you for that pointer.