-
Notifications
You must be signed in to change notification settings - Fork 20
Installation
sudo apt-get install git
mkdir git
git config --global user.name “alice”
git config --global user.email alice@mail.com
git config --global core.editor gedit
git config --global merge.tool kdiff3
git config --global credential.helper cache
git config --global push.default simple
git config --list
git clone https://github.com/pja35/SXP.git
sudo apt-get install default-jdk
sudo apt-get install nodejs-legacy
sudo apt-get install nodejs-npm
sudo apt-get install gradle
sudo npm install electron-packager -g
cd src/main/js/
electron-packager . SXP --platform=linux --arch=x64 --electron-version=1.2.3
(if electron-packager is not available see alternative way of running the GUI below)
cd ~/git/SXP
gradle build
(some tests may fail, not a catastrophy, gradle run will still work)
cd src/main/js/SXP-linux-x64
./SXP
First:
cd src/main/js/
google-chrome --disable-web-security --user-data-dir html/index.html
Then:
Open a new tab and browse the https://localhost:8081 web page. A warning should be displayed indicating that the connection is not secure. Click on Advanced parameters and Continue to localhost. Chrome is now trusting the SXP self-signed certificate. You can close the tab and continue to browse SXP files.
gradle run
In case gradle build raises around one hundred exceptions, most of them of type
Exception Description: An exception was thrown while searching for persistence archives with ClassLoader: jdk.internal.loader.ClassLoaders$AppClassLoader
Internal Exception: java.lang.NullPointerExceptionjava.lang.NullPointerException
jdk which is version 10 must be downgraded to version 8. Since we do not have sudo rights, we install version 8 in our home directory and tell the system to use it. Here is the procedure to fix it:
- download to your home directory
/amuhome/mylogin/myfolderforjava/the filejdk-8u181-linux-x64.tar.gzfrom: https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html - extract it:
tar xvfz jdk-8u181-linux-x64.tar.gz - tell the system to use it:
export JAVA_HOME="/amuhome/mylogin/myfolderforjava/jdk1.8.0_181" -
gradle buildshould now work with usual errors (good style is to implement tests first ;-))
Use macport instead of apt-get. Slight modifications:
sudo port install nodejs6
...
sudo port install npm3
...
electron-packager . SXP --platform=darwin --arch=x64 --version=1.2.3
...
cd src/main/js/SXP-darwin-x64
...
./SXP.app
Download and install latest Github git client.
Clone the repo.
Download and install latest JDK. This should update the classpath automatically.
Download and install latest Gradle.
Download and install latest NodeJS. It includes npm.
npm install electron-packager -g
cd src/main/js/
electron-packager . SXP --platform=win32 --arch=x64 --electron-version=1.2.3
Launch as for other platforms.
Install latest version for Java developers. This ought to include support for git (egit) and gradle (buildship), check for instance in
File > Import... > Gradle Project
To import the project, you must use the Gradle wizard! Accept recommended options such as gradle wrapper.
Launch by going to gradle tasks pane, Application > run.