Hello,
I am programming using Java Web (Wicket) and would like in my web application to have a button that allows the user to restore a program (window) located in the taskbar.
I have the name of the window, so I can retrieve it by name.
Here is my code:
HWND hwnd = User32.INSTANCE.FindWindow(null, "Window Title"); User32.INSTANCE.ShowWindow(hwnd, 9); User32.INSTANCE.SetForegroundWindow(hwnd); // bring to front
I added the libraries (jna.jar and jna-platform.jar) in my NetBeans project, and deployed that on my local Tomcat 8 server. It worked perfectly.
NOTE: Here are my development computer's specifications:
The problem was when I put my web application's war file on a development server.
The development server is a Linux (Ubuntu) OS version 3.5.0-17-generic with JVM version 1.7.0_25-b30 and OS architecture amd64.
When I tried running the web app on the Linux server, it kept telling me about missing libraries such as linux-x86-x64.jar.
Just briefly, a few questions:
Would you please give me some hints on what parameters I must take into account if I deploy my application on a Linux server?
BTW, I installed the JNA library on the Linux server using the command line
($ sudo apt-get install libjna-java).
From <http://www.datastax.com/docs/1.0/install/install_jre#install-jre-deb>
Attached are logs from the Linux server's tomcat server.
Thanks,
Jeremie