+ 1

Run Java code in HTML page?

hi everyone, this is my first post I'm starting programming in Java so i do not have yet a suitable useage of terms. I'm still pretty ignorant, sorry for that. Sorry for that. I wrote a code for some calculations of my interest in Java. Now I'm trying to insert this code in a web page: the goal should be: - An Html-CSS page that works as a GUI, in which user fill some data. - An XML that stores this data inserted by user - My Java code performs the calculation - An exit XML with results - An HTML page that shows results the first question is: is that approach correct? can you suggest me a better way? the core question is: how can I make the Jar of my Java code to the HTML page to make it runnable?

1st Jul 2018, 12:50 PM
DanieleMalgieri
DanieleMalgieri - avatar
3 Respuestas
+ 3
Hello, DanieleMalgieri ! A suitable site for your question was found https://stackoverflow.com/questions/25298031/jar-applet-in-html
1st Jul 2018, 1:02 PM
Alexander Sokolov
Alexander Sokolov - avatar
+ 2
Webassembly enable many high level languages eg. C++, Java function to run on current browsers now. Use Java to Webassembly compiler to compile your Java codes to .wasm file. Initantiate the .wasm file with html and Javascript codes. More information check out https://github.com/i-net-software/JWebAssembly/blob/master/README.md goo.gl/sDCntS
1st Jul 2018, 2:06 PM
Calviղ
Calviղ - avatar
0
thanks Alexander. So I have to transform my Java Code in an Applet? I do not know what's the difference between that. once again, I'm just learning...
1st Jul 2018, 1:04 PM
DanieleMalgieri
DanieleMalgieri - avatar