I have a demo project in VS Code using JAVA that calls to:
com.sun.jna.platform.win32.User32 user32 = com.sun.jna.platform.win32.User32.INSTANCE;
WinDef.HWND hwnd = user32.FindWindow(null, "[my window title here]");
System.out.println("[my window title here] = " + hwnd);
This process works with no issues in a small demo project.
When calling the same code in my main project, Java throws an exception : "com.sun.jdi.InvocationException: Exception occurred in target VM occurred invoking method.."
I'm just not sure where to go from here.