LT
Leaning TechnologiesSadegh Soleimani

CheerPJ not showing anything

There is a class file in my code named AbstractPageBean which returns 404 when I run the page using cheerpj server side. 1- I am not sure if I implemented the server side correctly but in one of my applets, it says missing in myapplet$x.class, and in another says missing for AbstractPageBean 2- The code runs perfectly with CheerPJ extention 3- I use JSP and this is my code:
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{Chart.page1}" id="page1">
<ui:html binding="#{Chart.html1}" id="html1">
<ui:head binding="#{Chart.head1}" id="head1">
<ui:link binding="#{Chart.link1}" id="link1" url="resources/CommonStyle.css"/>
<ui:script binding="#{Chart.script1}" id="script1" url="/resources/CommonScript.js"/>
<ui:script binding="#{Chart.script3}" id="script3" url="/resources/ajax.js"/>
<ui:script id="script4" url="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"/>
</ui:head>
<ui:body binding="#{Chart.body1}" id="body1" style="background-color: rgb(222, 231, 195); -rave-layout: grid; direction: rtl;">
<APPLET
archive="WEB-INF/lib/TwainApplet.jar"
code="WEB-INF/classes/patient/ChartApplet"
height="550"
width="540"
></APPLET>
<script>
cheerpjInit();
</script>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<f:view>
<ui:page binding="#{Chart.page1}" id="page1">
<ui:html binding="#{Chart.html1}" id="html1">
<ui:head binding="#{Chart.head1}" id="head1">
<ui:link binding="#{Chart.link1}" id="link1" url="resources/CommonStyle.css"/>
<ui:script binding="#{Chart.script1}" id="script1" url="/resources/CommonScript.js"/>
<ui:script binding="#{Chart.script3}" id="script3" url="/resources/ajax.js"/>
<ui:script id="script4" url="https://cjrtnc.leaningtech.com/3.0/cj3loader.js"/>
</ui:head>
<ui:body binding="#{Chart.body1}" id="body1" style="background-color: rgb(222, 231, 195); -rave-layout: grid; direction: rtl;">
<APPLET
archive="WEB-INF/lib/TwainApplet.jar"
code="WEB-INF/classes/patient/ChartApplet"
height="550"
width="540"
></APPLET>
<script>
cheerpjInit();
</script>
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
apignotti
apignotti37d ago
I cannot provide feedback on the JSP code, it would be better to show how to final HTML looks like. In particular I am not sure if the APPLET tag will be dynamically inserted in the final page. It would be best to call cheerpjInit earlier in the page to make sure runtime Java detection is correctly spoofed by CheerpJ If you see that .class files are not found, that is a strong indication that there is some path problem, but then it's unlikely that the page works with the CheerpJ Applet Runner extension, so there must be some difference If you can make the page accessible on the public internet we could take a look, otherwise we can provide limited help Hi, can you share some additional information? We want to help, but currently we are not able to do so.
Want results from more Discord servers?
Add your server
More Posts
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 "He