🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1568

win32 API calls

#1568
From: TBerry
Date: Thu, 06 Dec 2001 00:15
16 lines
1330 bytes
Anyone out there tried to access win32 API? All I want is to get the
username entered at o/s login. I've add "com.ms.win32" to my classpath
and included it to JBuilder without a problem. It compiles but at
runtime I get:

Can't link Win32 API
java.lang.UnsatisfiedLinkError: .....

which I gather is because what I'm doing is not supported by my JVM.

Anyone know how to resolve this (I'd rather not install Microsoft's
JVM), or even better, is there a more Java solution to getting the
logged-in user's name?

Thank you
Tom Berry
Technical Details
Message-ID: <3C0EB8A0.D3A3FD09@vhb.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,499af87b5b6945ad,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-12-05 16:34:16 PST
Message-ID: <3C0EB8A0.D3A3FD09@vhb.com>
Date: Wed, 05 Dec 2001 19:15:28 -0500
From: TBerry <tberry@vhb.com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.api
Subject: win32 API calls
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 204.243.174.175
X-Trace: dnews 1007597411 204.243.174.175 (5 Dec 2001 16:10:11 -0800)
Lines: 17
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews