Questions tagged [j-interop]

j-Interop is a Java Open Source library (under LGPL) that implements the DCOM wire protocol (MSRPC) to enable development of Pure, Bi-Directional, Non-Native Java applications which can interoperate with any COM component.

24 questions
6
votes
0 answers

How to connect remote machine with wmi?

I am trying to connect remote windows server 2012 machine with wmi4j but I am getting "access denied" error. But I can connect successfully this remote machine with WMI Explorer 2016 program. Here is code; private static String server =…
hellzone
  • 5,393
  • 25
  • 82
  • 148
3
votes
0 answers

is j-interop able to call java class from foxpro

we are using activex bridge to make FoxPro and Java talk to eachother. Is it possible to use j-interop to call a java class as a COM object?
gasdia73
  • 51
  • 3
2
votes
1 answer

WMI through Java using J-Interop

I am new to WMI and using J-interop lib for COM communication through Java... I have a requirement to get Physical memory data from remote system. I have following code : it provides some of the data but have some flaw in it like I have 2 GB memory…
PSisHere
  • 53
  • 2
  • 5
2
votes
1 answer

Jinterop impersonation

I use the Jinterop library for an access to remote WMI. JISystem.setAutoRegisteration(true); JISession session = JISession.createSession(System.getenv("USERDOMAIN"), login, password); session.useSessionSecurity(true); final JIComServer server = new…
Amigo
  • 179
  • 4
  • 10
2
votes
1 answer

jinterop Win32_Process Create

I am trying to achieve the following wmic command using j-interop. wmic /NODE:192.168.0.195 /USER:Test /PASSWORD:password123 process call create "calc.exe" I have my code written like this in my method. I have two other methods that create a…
beyonddc
  • 1,246
  • 3
  • 13
  • 26
1
vote
2 answers

Set Permissions on a Registry Object with j-interop

Accessing WMI using DCOM requires that the user has permissions on: HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID{76A64158-CB41-11D1-8B02-00600806D9B6} Unfortunately Windows 7 and Server 2008 have this setup so that the Administrators group does not…
codeplumber
  • 469
  • 2
  • 11
1
vote
1 answer

Is there a JInterop replacement ?

Beacause the JInterop follows GPL version 3, so we want to find anther one works just like it. Inlcude commercial product. Is there anyone who can help me?
1
vote
0 answers

How to force j-interop using ncalrpc for localhost?

Our applications cannot poll OPC DA server (running on the SAME MACHINE) ONLY in asynchronous mode, because of (got from Windows Event Viewer -> Windows Logs -> System) The server-side authentication level policy does not allow the user…
devaskim
  • 492
  • 3
  • 10
1
vote
1 answer

How to call a remote bat file using jinterop

GlassFish Application Server uses a script, asadmin.bat, that in turns starts a JVM. I'd like to call this script using jinterop and DCOM from Java on a remote machine. I can't find any help on this specific usage. Any help would be greatly…
codeplumber
  • 469
  • 2
  • 11
1
vote
1 answer

how to run a powershell script as a windows service from inside a Java program?

I have the following code that runs a windows service from inside Java.The code uses JInterop Java library, JInterop is a pure Java COM client for windows COM server. More details of JIntop are available here…
Manjur
  • 29
  • 1
  • 1
  • 6
1
vote
1 answer

org.jinterop.dcom.common.JIException: Access is denied. [0x80070005]

I am trying to connect to GRAYBOX Simulator using utgard java api for opc connection, I am getting the below error. I have followed all the dcom instructions. Still I am getting access denied. I am running this code through eclipse. Is there…
user482963
  • 342
  • 6
  • 17
1
vote
2 answers

Exception in thread "main" java.lang.NoClassDefFoundError: rpc/Stub

I am trying to read windows event logs so I am using Jinterop API for that. Here is the java code : import java.io.IOException; import java.util.logging.Level; import org.jinterop.dcom.common.JIException; import…
ankit
  • 380
  • 4
  • 16
1
vote
1 answer

Java Connecting to OPC Server: NotConnectedException (AutoReconnectController)

I run into an issue connecting to an OPC Server through Java with openScada, Utgard, and Jinterop. I was previously using Matrikon's OPC Server (everything worked perfectly) and attempted to switch to Kepware Server Ex. The Kepware demo ran out and…
ballBreaker
  • 722
  • 1
  • 10
  • 29
1
vote
2 answers

Can't open a dcom session with jinterop

I'm trying to use jinterop to run wmi queries on remote PCs, but I can't even start a dcom session. I know wmi is working because I can access it with powershell\wmic\vbscript without issues. Also, our windows clients have file sharing…
red888
  • 27,709
  • 55
  • 204
  • 392
1
vote
0 answers

COM api call from java using Jinterop

I am using jinterop as dcom bridge . Using CLASSID i am able to create com object. // Create a session JISession session = JISession.createSession("domain", "user", "password"); session.useSessionSecurity(true); //…
1
2