I am trying to run a Windows app (a window with UI and sounds). I've changed Tomcat service to be opened using the same windows user as the one that logged in to the machine.
When I run this, the app is started, I can even hear it sounds, but no window is visible.
How can I fix this?
Related
I have Java version 8 Update 261 on a 64 bit Windows 10 system.
What I did:
downloaded and executed a jnlp file
the application was installed in the Java cache and a desktop icon was created
the application was starting
So far, so good.
Now, after closing the app and double clicking that desktop icon - nothing happens.
However, in the Task-Manager I see that the Java Web Launcher is running. And every further double click starts another instance of it, but on the screen I see nothing.
To get the application running properly again, I can either
clear the Java cache with hook at "installed applications and applets" set:
The desktop icon is removed, the above procedure can then be repeated and works like a charm.
or show the Java console
In this case double clicking the desktop icon works! The Java console opens and after some seconds the application is starting.There's no need to clear the cache anymore.
I understand that clearing the cache can solve manifold issues, but what effect has the simple "show console" here?
I installed my program in a Jar file as a Windows Service using Apache Procrun.
When I run it using the command start "prunsrv.exe //TS//TestService" it runs perfectly. But when I start the service in Windows services program, it doesn't launch the JFrame.
Yet the application does start as I can see the log entries. But related to the JFrame section, there are no exceptions yet it doesn't launch. Why does it not launch?
Your service is not permitted to use the desktop, if it does not run as the current user (the owner of the desktop).
If so, the first call to Dialog.open() or other methods which paint on the desktop just hangs.
We had to write a Java application which runs on a windows 8 tablet (not RT).
I would much rather have written it using C#, but we really didn't have a choice.
Basically, we use launch4j to wrap our installer executable JAR in an EXE which then installs the appropriate application files and creates shortcuts on the desktop and in the start menu programs folder to ensure that the user sees the icons on the metro start screen.
The Problem
When the application starts up, it checks if any updates are available via a server, if they are available they are downloaded.
The issue that we've seen is that if the application is downloading the updates, and then we turn off the screen and leave it off for at least 30 seconds, once we turn the screen back on, the application is frozen and does not progress.
We then have to kill the app and start it again.
Providing the screen is not turned off again, the downloads finish and the application works fine.
Is there a way to either keep the screen on, keep our process running or detect when the screen comes back on and execute some code when that occurs?
Any help would be greatly appreciated.
I'm using the Google AppEngine development server on Eclipse. My local webpage just doesn't seem to update until I do a number of restarts on the Development Server (using the Run or Debug buttons from Eclipse).
What am I doing wrong ?
The basic flow is:
Make change to .java file...
Save file
Run application (development server loading log shows in console)
Refresh web page in browser
P.S: The only way I can get it to work is to change the server port... and if I do that all the previous servers still show at their respective ports. They never stop.
You do need to restart the server to see most code changes you'll make. The easiest way to do this is with the yellow reload button that appears on the GAE pane - not the console, but the one that has the fancy "click here to launch" addresses.
If you do use the debug / run commands in eclipse, you will need to explicitly stop the previous run. You can do this from the debug menu (the stop button) or from the GAE pane or from the console pane.
You won't need to change the ports after this - the reason you have to do it now is that the first instance is still running, hogging the port. Once you stop it you'll be able to run it again on the same port... WITH your code changes! :)
I have a Java 1.6 desktop application, started with javaw from a batch file on Windows XP. There is a .lnk link to this batch file, which is placed to windows Startup folder in order to start this application on every system boot.
The application uses SystemTray class to display an icon on the system tray in case it is running. Starting this application manually there is no problem. If it is started by windows startup process, there is no icon displayed (not even a blank icon), however the application is running. The startup process is also slowed down.
How can I overcome this?
Thank you!
Are you starting the Java application on system boot or on user login? If you start the application before a user is logged in, there will probably be no system tray to attach to, since the system tray is associated with the user session.
If you don't need the Java application to be running before a user is logged in, it might help to move the shortcut to the user's (or all users') autostart folder.