Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structorizer does not start #1076

Closed
Dnk1287 opened this issue Nov 2, 2022 · 12 comments
Closed

Structorizer does not start #1076

Dnk1287 opened this issue Nov 2, 2022 · 12 comments
Assignees

Comments

@Dnk1287
Copy link

Dnk1287 commented Nov 2, 2022

I use Structorizer with Windows 10, updated to version 3.32-11 and now it won't start anymore.
I have JRE installed and up-to-date (version 8.351).
With 'java -jar -verbose structorizer.jar' I produced the following traces which show an exception at the end.
structorizer_trace.txt

@codemanyak codemanyak self-assigned this Nov 2, 2022
@codemanyak
Copy link
Collaborator

codemanyak commented Nov 2, 2022

Thank you for the interesting trace. But please let's make it short: You need Java 11 or newer to start Structorizer versions ≥ 3.32. Please see news page entry from 2021-09-19, the F.A.Q. page (first entry), User Guide installation page, and e.g. issues #988, #1028, #1030, #1031, #1070.

@codemanyak
Copy link
Collaborator

@Dnk1287 Please let us know when the installation of a Java RE or JDK of version 11 or later solved your problem (as we expect it will).

@Dnk1287
Copy link
Author

Dnk1287 commented Nov 3, 2022

I installed AdoptopenJDK (version 17 I think) and Structorizer works flawless again.

The only thing I can add is the suggestion to let Structorizer on startup check if the (open)JDK/JRE meets the requirements for Structorizer and if not present a message to the user.

@codemanyak
Copy link
Collaborator

@Dnk1287
Thanks for your feedback. You wrote:

The only thing I can add is the suggestion to let Structorizer on startup check if the (open)JDK/JRE meets the requirements for Structorizer and if not present a message to the user.

For the script-based launch this has been incorporated, but for the Windows installer pack we made Launch4J responsible to do this job. Obviously, it doesn't satisfyingly do so. We will think of an improvement there.

@codemanyak
Copy link
Collaborator

codemanyak commented Nov 3, 2022

@Dnk1287
Would you please have a look at the date and size of the structorizer.exe file in the Structorizer installation folder (should either be C:\Program Files (x86)\Structorizer\ or in the user's app directory, please have a look at the paths tab of the Structorizer About window to find out)? If that launching wrapper is older than 2021-09-26 (it's likely that you used an older installation and only updated the Structorizer jar), then it would explain the missing expressive error message. You might consider to uninstall Structorizer and to re-install it from a fresh download in that case in order to get the up-to-date launcher configuration with the correct minimum JRE version specification.

@Dnk1287
Copy link
Author

Dnk1287 commented Nov 4, 2022

The setup I used was Structorizer.exe, version 3.32.11 .
I removed the installation and its folder when Structorizer didn't start and did a new install.
The installation folder contains files as in here:
structorizer-dir.txt

@codemanyak
Copy link
Collaborator

@Dnk1287
Thanks for the directory listing. The content looks okay. So I really wonder why the launcher did not pop up a window like the one shown in issue #1030. (But perhaps it did and you just didn't bother to mention it?) I will care for the error box showing the title "Structorizer" from the next version on, but even the recent launcher configuration should ensure that the required Java version gets reported with that kind of message box whenever the launcher identifies a Java version older than 11(.0.1).
Well, be that as it may, I am glad that on your site the problem has been solved:

I installed AdoptopenJDK (version 17 I think) and Structorizer works flawlessly again.

So enjoy working with Structorizer. We will further observe the launcher behaviour and try to find out what specific cases induce an insufficient user information.

@Dnk1287
Copy link
Author

Dnk1287 commented Nov 7, 2022

You're welcome and I certainly enjoy using Structorizer, both on Linux and on Windows (in that order of preference).
I certainly did not get any message. I'm a software developer and know the importance of messages.
I tried several times, from command line, from the Windows menu, after update and after uninstall plus clean install.
The splash screen appears (Structorizer icon) and then disappears, that's all. No logging in Windows log books either.

HTH, and again, thank you for your help.

codemanyak added a commit that referenced this issue Dec 21, 2022
This was referenced Mar 6, 2023
@raulus127
Copy link

The same happens to me. I installed the AdoptopenJDK 16 and it still doesn't work. I'm trying to run it on W11.

@codemanyak
Copy link
Collaborator

codemanyak commented Mar 7, 2023

@raulus127

The same happens to me. I installed the AdoptopenJDK 16 and it still doesn't work. I'm trying to run it on W11.

Did you activate the respective checkboxes for JAVA_HOME environment variable and the "JavaSoft (Oracle) registry entries" on installing AdoptOpenJDK, as recommended in the User Guide? I thought we had tackled (i.e., overcome) your troubles on issue #1031 already?

@codemanyak
Copy link
Collaborator

codemanyak commented Mar 7, 2023

@raulus127
I'd like to add that Adoptium meanwhile also offers JRE downloads, not only JDKs. So, if you don't happen to develop yourself with Java, you might give a mere JRE installation a try.

@codemanyak
Copy link
Collaborator

Version 3.32-13 should have solved the aspects of this issue - the analysis of #1100 led to the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants