-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
JWS Applet fails to start on 1.1.7, worked on 1.1.6 #269
Comments
From 1.1.6 to 1.1.7 we changed the way OWS is terminated, because we saw some application did not end their process properly. So OWS 1.1.7 will end the application when the main method returns. Please make sure in your application that main() only returns when the application is closed |
It looks like it does not run the main Method at all because the jar (Main-class actually) is/should be dual-use Applet/Application. When I add a main method, it does not get called. It seems to "only" instantiate the subclassed Applet and call init/start etc. How then can "main" made not to terminate? Thanks in advance! |
Refinement: it actually is declared with applet-desc in the jnlp, so actually no need to run as application at all... |
You have a point. |
Short question about the expected behavior.
|
Well, like it does in 1.1.6. Yes, start in a window. Can be terminated by closing the window or from inside the applet by System.exit() or maybe clean return from the run method |
The termination is the point I am not entirely sure about. I was working on a bug inside my applet that appeared in Amazon Corretto + ITW or OWS (1.1.6) that it did not terminate on System.exit(), but could fix it by terminating the run Method (and then call System.exit(), no idea what does terminate it in the end). During the investigation, I chose the 1.1.7 OWS which leads to the bug report. Sorry about starting the confusion with the "application" |
which |
The window size can be determined by parameters in the applet-desc in the jnlp:
|
Hm, I see, mine implements |
Hi @shyrodgau |
I see. Is there a place where this is documented? That would be nice .The applet is being used by our customers in the end (hopefully not very much longer, but currently...) and if we can point them to a notice that from 1.1.7 OWS does not support applets, then we can recommend either sticking with 1.1.6 or using ITW. |
You can find the full list of features here: https://openwebstart.com/feature-table/ |
Applets seem not to work in 1.1.8 too. |
Do you encourage code contributions? I tried getting management to sponsor but did not succeed so far. Leaves only fixing it myself at the moment or dropping web start for some install4j solution. First step would be to find out how to build ows + icedtea-web myself. |
Hi, I can give you a start on the technical stuff: ITW and OWS are both maven projects. So you should be good to go with Once you have the build running come back and I try to give you a starting point for a fix |
@sclassen Thanks a lot for the hints. Will have a look on opportunity. Donating some coding does look more feasible than money... |
I attach logs from 1.1.6 and 1.1.7 (the earlier one is from 1.1.7!)
The JWS Application works on OWS 1.1.6. On OWS 1.1.7 it starts up, but ends before properly building up the Application Window.
Platform is Win10 64bit.
itw-javantx-2020-05-25_16_02_02.716_VERSION_1_1_6.log
itw-javantx-2020-05-25_15_31_19.967_VERSION_1_1_7.log
The text was updated successfully, but these errors were encountered: