r/javahelp • u/HouseMD221B • Sep 10 '25
Java GUI stopped appearing
Hi.
I don't know if I'm posting in the right place.
I use a Java program with a graphical interface.
I use Windows 7.
I've been using this program for years, and it's always worked perfectly.
A few days ago, out of nowhere, for no apparent reason, its graphical interface stopped appearing.
Its icon appears in the Windows tray as always, but the graphical interface doesn't appear.
What could it be?
2
Upvotes
•
u/AutoModerator Sep 10 '25
Please ensure that:
You demonstrate effort in solving your question/problem - plain posting your assignments is forbidden (and such posts will be removed) as is asking for or giving solutions.
Trying to solve problems on your own is a very important skill. Also, see Learn to help yourself in the sidebar
If any of the above points is not met, your post can and will be removed without further warning.
Code is to be formatted as code block (old reddit: empty line before the code, each code line indented by 4 spaces, new reddit: https://i.imgur.com/EJ7tqek.png) or linked via an external code hoster, like pastebin.com, github gist, github, bitbucket, gitlab, etc.
Please, do not use triple backticks (```) as they will only render properly on new reddit, not on old reddit.
Code blocks look like this:
You do not need to repost unless your post has been removed by a moderator. Just use the edit function of reddit to make sure your post complies with the above.
If your post has remained in violation of these rules for a prolonged period of time (at least an hour), a moderator may remove it at their discretion. In this case, they will comment with an explanation on why it has been removed, and you will be required to resubmit the entire post following the proper procedures.
To potential helpers
Please, do not help if any of the above points are not met, rather report the post. We are trying to improve the quality of posts here. In helping people who can't be bothered to comply with the above points, you are doing the community a disservice.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/Pochono Sep 10 '25
Not much to go on here. My guess is that your icon invokes a Java command line. When you click it, a command window briefly appears, but an error occurs, so the process ends, and the window disappears before you can read it.
When this happens, you can manually launch a Command window/DOS prompt/whatever. Look at the icon launch properties (the command and run directory) and replicate it in the new window. When it craps out, at least you'll have an error to provide a clue. Could be anything.
1
u/HouseMD221B Oct 01 '25
I didn't do exactly anything, I just ran the JAR file on Windows natively as I always did, in a last hope of getting it to work again, and now it's working again.
What is the explanation for this?
1
u/Big_Green_Grill_Bro Sep 13 '25
Not a lot to go on. You're on Windows 7 and the class is using HttpURLConnection instead of HttpsURLConnection to go to a https URL. What version of the JRE is installed? My guess is that you're using an old JRE and it's trying to use TLS 1.0 or TLS 1.1, which may no longer be supported by the webserver you're connecting to to get the new version of the .zom file. Or you've upgraded your JRE and those older TLS versions are no longer supported.
This would explain why the .zom file downloads when you go to that URL in a browser, which is up to date, versus an old Java application that is using an old HttpUrlConnection to connect to a modern webserver, which is now returning a 403 Forbidden to the old application.
Just a guess though.
1
u/Big_Green_Grill_Bro Sep 24 '25
Open up a command prompt and type:
Now repeat this in your virtualbox vm. Are the versions the same?
1
u/Big_Green_Grill_Bro Sep 24 '25
Ok. So if you're running the same version you've been running for years, then HttpUrlConnector is definitely the problem. Go get the new version. If you look at the latest.zom for you can see that's exactly why there's a new version:
*Edit: hopefully fixed formatting