Giter VIP home page Giter VIP logo

web-start's Introduction

web-start

Deploy

Execute gradle tasks:

  • generate keystore
$ ./gradlew genkey

or manually:

$ keytool -genkey -alias calc -keyalg RSA -keystore calc.jks -keysize 2048
$ cp calc.jks ~/.keystore
  • generate certificate
$ keytool -export -alias calc -keystore calc.jks -rfc -file calc.csr

Important: Add the certificate as a trusted one in Java Control Panel. For Mac: System Preferences > Java > Open Java Control Panel > Security tab > Manage certificates > User > Import. Import it possibly everywhere (trusted certificates, secure site etc.).

  • create *.jnlp file with a signed jar
$ ./gradlew createWebstart

It will create webstart files at build/jnlp.

Start

Copy the contents of build/jnlp to Tomcat's webapps/ROOT folder.

Go to Tomcat's bin folder and execute startup script.

$ cd /opt/apache-tomcat-9.0.8/bin
$ ./startup.sh

Note: check if Tomcat is running with ps -ef | grep tomcat and eventually kill the kitten: pkill -9 -f tomcat.

Shorten: ./killtomacat.sh

In web browser:

http://localhost:8080/launch.jnlp

It will download the jnlp file. Execute it and enjoy the calculator.


Commands I found useful:

Sign jar manually:

jarsigner -keystore ../../../calc.jks -storepass hania123 -keypass hania123 lab8__V1.0-SNAPSHOT-calc.jar calc

Unpack *.pack.gz file for whatever reason:

unpack200 *.jar.pack.gz *.jar

web-start's People

Contributors

hvvka avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.