• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using JNI To Gather Workstation Details

 
Jason Ferguson
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is only a request to know if this is possible (although I won't turn down examples, etc).

I would like to create a signed applet to replace a current standalone application (written in VB... ugh). The application "scans" a workstation and returns information such as computer name, hardware details, installed software, etc. This information is cake to get with WSH, VB, and other Microsoft apps.

However, the difficulty: I don't want to write a separate DLL to do this, as getting a custom DLL deployed across the network would be impossible. I'd like to use native DLLs/etc that are already available.

Is this possible?
 
Rob Spoor
Sheriff
Posts: 20817
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. You will always need the DLL that is a link between your Java code and the VB code you're calling. Unless the system DLLs already export methods in a way that Java "understands", which has a chance of about 0.00000000001%.
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You always need a "wrapper" DLL, to translate the API between Windows and Java. However, you might not always need to write the wrapper DLL yourself. I believe there are some around. But I wouldn't be able to direct you to one (other than saying "try Google"), as I have always written what I needed myself.
 
Jason Ferguson
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay... as a certain old show used to say... riddle me this. If I were to write this as a Java Web Start app, would I be able to distribute the wrapper DLL with the application?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!