This is the Linux app named jswebserver whose latest release can be downloaded as jswebserversample1.2.zip. It can be run online in the free hosting provider OnWorks for workstations.
Download and run online this app named jswebserver with OnWorks for free.
Follow these instructions in order to run this app:
- 1. Downloaded this application in your PC.
- 2. Enter in our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 3. Upload this application in such filemanager.
- 4. Start the OnWorks Linux online or Windows online emulator or MACOS online emulator from this website.
- 5. From the OnWorks Linux OS you have just started, goto our file manager https://www.onworks.net/myfiles.php?username=XXXXX with the username that you want.
- 6. Download the application, install it and run it.
SCREENSHOTS
Ad
jswebserver
DESCRIPTION
JSWEBSERVER is a very light web server app that can be compiled in Java 1.8 or Java 16, it is based on SCALATRA and GRAALVM with JavaScript engine.
Prerequisites to compile jswebserver:
- Java JDK 1.8 or 16 (https://adoptopenjdk.net/)
- SBT (https://www.scala-sbt.org/download.html)
- Scala (https://www.scala-lang.org/download/scala2.html)
After installing prerequisites, download jswebserver sources:
https://sourceforge.net/p/jswebserver/code/ci/master/tree/
or you may use git:
git clone ssh://[email protected]/p/jswebserver/code jswebserver-code
To Build & Run:
$ cd jswebserver
$ sbt
> jetty:start
> browse
If browse doesn't launch your browser, manually open http://localhost:8080/ in your browser.
Enjoy!! :)
Features
- Web server side scripts are implemented in JavaScript
- You can use AJAX technology, see the example in the default page
- It is using GRAALVM JS so, it is possible to call JAVA libraries like JDBC
- It is implemented in only one Java jar file.
This is an application that can also be fetched from https://sourceforge.net/projects/jswebserver/. It has been hosted in OnWorks in order to be run online in an easiest way from one of our free Operative Systems.