Article View: borland.public.jbuilder.java.language
Article #8240Re: accessing the windows api from Java
From: Fr�d�ric Lachasse
Date: Tue, 17 Apr 2001 05:00
Date: Tue, 17 Apr 2001 05:00
35 lines
2772 bytes
2772 bytes
"Ray Porter" <ray_porter@unc.edu> wrote in message news:3adad84b_2@dnews... > Hello all, > In their infinite wisdom, our management has decreed that all applications > (everything from mainframe CICS to little desktop apps) must be converted to > Java, with Oracle as the backend database if a db is needed. We have > several fairly major client/server and desktop applications (currently in > Delphi) that interact directly with the Windows api and the office suite of > tools. These are functions that our customers have requested and require > (for example, exports of query results to local MS Access databases or to > Excel and Word, etc). Is there a way to duplicate this functionality in > Java? Can Java automate Windows applications? The preferred methodology > here is Java servlets and JSP which I think leaves us with even less ability > to interact with the local operating system. One possibility would be to write small Windows applications using a scripts language to do the import/export. VBA macros in MSWord/Excel/Access can connect through an HTTP URL to the remote Java servlet which will return raw text data that the script will insert into the Word/Excel/Access document or database. This macros can be easily downloaded through the web interface. You can also use Windows Host Script to run VBScript or JScript program on the client windows machine. These could be even generated and downloaded through a Java servlet, so that they will connect to the server with temporary (information in a cookie for example) data to get the right data back. This has the benefit of downloading/installing very lightweight applications on the client. No heavy C/C++/Delphi executable to install on each client. -- Fr�d�ric Lachasse (ECP 86) flachasse@qwest.net
Technical Details
Message-ID:
<78QC6.737$FV.737377@news.uswest.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!feeder.qis.net!feed2.onemain.com!feed1.onemain.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mailReferences:
<3adad84b_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,5baddf055eca73c6 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-04-16 22:08:03 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!feeder.qis.net!feed2.onemain.com!feed1.onemain.com!feed.news.qwest.net!news.uswest.net.POSTED!not-for-mail From: "Fr�d�ric Lachasse" <flachasse@qwest.net> Newsgroups: borland.public.jbuilder.java.language References: <3adad84b_2@dnews> Subject: Re: accessing the windows api from Java Lines: 37 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <78QC6.737$FV.737377@news.uswest.net> Date: Mon, 16 Apr 2001 23:00:14 -0600 NNTP-Posting-Host: 63.231.85.228 X-Trace: news.uswest.net 987483779 63.231.85.228 (Tue, 17 Apr 2001 00:02:59 CDT) NNTP-Posting-Date: Tue, 17 Apr 2001 00:02:59 CDT