I work for a local council that for some reason has purchased an application it very flaky when using Java. Certain web screens will not launch and the only way I have found to resolve the problem is to manually open up the Java Console and immediately close it prior to launching the web page. Unfortunately, I have been told that this is not a satisfactory fix when hundreds of people are going to be using the system(don’t you just hate bosses that don’t ask for IT input when purchasing software but expect them so resolve any problems).
Anyway….I have written a batch file that will open & close the console prior to opening the IE URL(see below).
Start /wait "" "C:\Program Files\Java\jre6\bin\javacpl.exe"
ECHO Opening JAVA Console
TASKKILL /F /IM javacpl.exe
The problem with this is that this kills any/every session of Java that is running on the PC not just the console. Is there a way of just closing the console but leave all other instances of java running?
The thing that I need to do is open up the control panel! This is the only way I know how to get the application past a screen that fails if I do not do this.
As I said, I need to automate this function prior to opening the URL. I have managed to open the javacpl.exe but I am unable to close it via the bat file.
This needs doing prior to every URL launch as we have a *hot-desking* policy so I cannot guarantee that the same person will log onto the same PC every day and this problem seems to be PC/NTLogin related so therefore this may need to be done hundreds/thousands of times.
I have contacted the 3rd party supplier who we purchased this application from and they are also looking into a solution but at the moment, due to me finding a temporary fix, they do not seem to deem it as high priority.