I need help why my Java applet website is not running, which involved multiple pages.

No description
apignotti
apignotti17d ago
Can you clarify what the problem is? Are you integrating CheerpJ is in the page or using the CheerpJ Applet Runner extension?
vannex21
vannex2117d ago
yes, i am integrating Cheepj in the page and also i also try to use the cheerpJ applet runner extension.
apignotti
apignotti17d ago
Integrating in the page can certainly be made to work. Can you clarify what you mean by multiple pages and what the problem is in detail?
vannex21
vannex2117d ago
the applets does not load when it involves inputting a user input into the applet, then save that user input into the next page of the applet this is one of the example of the Java applets. https://modularphysics.mtroyal.ca/map/Content/vector/addition/simulate/threevec/
apignotti
apignotti17d ago
Is the example already integrated with CheerpJ? If not can you prepare one that is already integrated?
vannex21
vannex2117d ago
yes, this one already integrated with Cheerpj. i put <script src="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"></script> in the code
apignotti
apignotti17d ago
Did you also call cheerpjInit?
vannex21
vannex2117d ago
i am not sure, if i did, but some of the applets are working. for example: https://modularphysics.mtroyal.ca/map/Content/accel/duegravity/simulate/oneball/applet.html
apignotti
apignotti17d ago
So, I currently suspect that the page depends on having both applets running in the same address space, with Java globals being shared between the two This is something that is not possible as things are right now since the two applets live in difference iframes, which are completely independent I believe that you can make it work if you restructure this to have both applets in the same page Please understand that iframes are isolated at the browser level, this is not something that CheerpJ can change I've seen you are using CheerpJ 2.2 in the page, we strongly recommend using CheerpJ 3.0 instead
vannex21
vannex2117d ago
thanks for the helpful explanation.. i will do that.
Want results from more Discord servers?
Add your server
More Posts
How to debug class loadingHi, I'm dropping in here from github (https://github.com/leaningtech/cheerpj-meta/issues/195). I'm tWASM-less compilingIs there a way to compile Cheerp code into a single JS target without any extra WASM support when itCheerPJ not showing anythingThere is a class file in my code named AbstractPageBean which returns 404 when I run the page using Runtime class extendingHow does a one extend existing JS class in Cheerp? JS example: ```js class ExtendedClass extends ECalling JS object member functions from WasmThe pong tutorial (https://labs.leaningtech.com/cheerp/tutorials/pong) shows how to handle interactiHow to start CheerojI hadn't learned any java. How to use Cheerpj step by step?Options for running Java versions more recent than Java 8I'm a doctoral researcher, and part of my tasks is providing technical support for grading student pCheerpJ missing functionality of original Jar fileI am trying to get my java swing projects in the browser, but the program is not working fully (it wI'd like to run NASA's Rocket Modeler on my laptop.I see from the NASA webpage https://www1.grc.nasa.gov/wp-content/plugins/cheerpj-integration/lib/appAccessing Java class / object attributes in CheerpJ based PWAI'm new to CheerpJ and I am working on creating a React Native module for ImageJ.js (CheerpJ translaInt ConversionThere is a function in Java, that calls a native function with string argument, like `setContentViewState of the C++ modules supportWhen the new C++ modules are expected to be supported?Cheerpj hangs after "Jar is loaded,main is starting"I am trying to use cheerpj to run my Java Swing app in a browser. I can run the example SwingSet3.jaStretch to Fit Height IssueRunning a basic application in the example html provided on the CheerpJ website. My html code is efProblems with CheerpjHello, I am trying to get my Java app running in CheerPJ - I was successful in creating a simple "HeCache Results for Faster Startup?Hello new user here. Performing initial research into potential commercial application usage. 1) AmUnknownHostException happened when the Java application connect to serverUnknownHostException happened when the Java application connect to server. The host name is the sameHTTP server returned compressed partial data. That should not happen. CheerpJ cannot run.Browser shows error "HTTP server returned compressed partial data. That should not happen. CheerpJ cAccesing the standard out and standard error stream from the Java processHow do I from javascript access the output streams from the started Java process?Any plan on adding internet access without Tailscale?Hi there ! Do you plan on adding internet access without the need to install Tailscale etc, that wou