CyaNn wrote:
For Rpi Store, how to publish a java application ?
Read the following help pages:
http://www.raspberrypi.org/phpBB3/viewt ... 83&t=26297 - How to upload content
and
https://s3-eu-west-1.amazonaws.com/ie-l ... index.html
The pi store require you to create a zip file containing:
All files needed by your application, a start file & (optional) an install file.
The optional install file may pull in dependencies using apt-get such as OpenJDK.
You may choose to distribute an re-distributable jvm inside the zip file with your application.
http://www.puppygames.net/blog/?p=1282 - you may get inspired how puppygames include an OpenJDK JRE when they deploy using the steam store... that technically work similar to the raspberry pi store. The store is after all foremost a deployment tool for your content!
If you prefer to use
javaws to install your application then let the zip file only contain two bash script files
1. a start file "run.sh" containing
javaws -J-cacao
http://www.algoid.net/downloads/AlgoIDE.jnlp
2. a install file "install.sh" containing all commands needed to install the icedtea-web javaws launcher
# this will install openjdk and
# the icedtea-web netx javaws aluncher
apt-get install icedtea-netx
CyaNn wrote:
How to create and executable app from java -jar command line ?
Thank a lots for your replies. It make me happy.
The easiest is to create bash file containing the the command needed to start your application
Code: Select all
java -cacao -jar AlgoIDE-release.jar
OpenJDK is easily installed on the Pi using the
icedtea packages from the Raspbian package repository.
icedtea builds are re-distributable, and this makes it suitable for use by application in the Pi store.
The openjdk-7-jre or openjdk-7-jre package will install OpenJDK + several additional JVM such as zero, cacao and jamvm
you activate the jvm by passing the jvm name on the command line
java -version
java -jamvm -version
java -cacao -version
Cheers
Xerxes