Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception while trying to obtain process id from Windows 7 #12

Closed
vijaygopal opened this issue Oct 8, 2017 · 1 comment
Closed

Exception while trying to obtain process id from Windows 7 #12

vijaygopal opened this issue Oct 8, 2017 · 1 comment

Comments

@vijaygopal
Copy link

I was writing a program to invoke a process and return the PID using PIDUtils. But when I tried to obtain the PID I received the below exception

Caused by: java.lang.NoClassDefFoundError: org/zeroturnaround/process/win/Kernel32
at org.zeroturnaround.process.PidUtil.getPidfromHandle(PidUtil.java:145)
at org.zeroturnaround.process.PidUtil.getPidfromWin32Process(PidUtil.java:135)
at org.zeroturnaround.process.PidUtil.doGetPid(PidUtil.java:102)
at org.zeroturnaround.process.PidUtil.getPid(PidUtil.java:90)
at org.me.processexecutor.ProcessInvoker.call(MNXZeroTurnaround.java:53)
at org.me.processexecutor.ProcessInvoker.call(MNXZeroTurnaround.java:1)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

@reinra
Copy link
Contributor

reinra commented Oct 9, 2017

Could you try it with a sandbox application to determine that it's not related to your application setup?

@reinra reinra closed this as completed Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants