Skip to content

Instantly share code, notes, and snippets.

@hkneptune
Last active September 2, 2020 01:51
Show Gist options
  • Save hkneptune/c64e75eb9dea53d13fcb52fcf7286991 to your computer and use it in GitHub Desktop.
Save hkneptune/c64e75eb9dea53d13fcb52fcf7286991 to your computer and use it in GitHub Desktop.
DashO for Android & Java Setup on Windows 10

DashO for Android & Java Setup on Windows 10

Prerequisites

  1. Download DashO for Android & Java on PreEmptive Solutions and then extract it into a local directory. For example: D:\programming\DashO-10.3.
  2. Download Java SE Development Kit 8 and install it.
  3. Download Apache Ant and extract it into a local directory. For example: D:\programming\apache-ant-1.10.8.
  4. Put the license file dasho.dat into the DashO directory.

System Environment Variables

  1. Add a user variable DASHO_HOME with the path of DashO directory. For example: D:\programming\DashO-10.3.
  2. Add a user variable DASHO_JAVA_HOME with the path of JDK directory. For example: C:\Java\jdk1.8.0_251.
  3. Add a user variable ANT_HOME with the path of Apache Ant. For example: D:\programming\apache-ant-1.10.8.
  4. Edit the system variable PATH, add the following paths.
C:\Java\jdk1.8.0_251\bin
D:\programming\apache-ant-1.10.8\bin

Script Editing

By default, the DashO scripts use the java defined in the JAVA_HOME to execute the application. In this section, the scripts will be updated to use the java defined in DASHO_JAVA_HOME to execute the application.

Different version of DashO may have slight differences in the content of scripts, please update the scripts if any changes apply.

antconfig.bat

  1. Replace the string java with "%DASHO_JAVA_HOME%\bin\java".
  2. Replace the string jar -uf with "%DASHO_JAVA_HOME%\bin\jar" -uf.
  3. Replace the string ant-dasho.jar with "%DASHO_HOME%\ant-dasho.jar".

antinstall.bat

  1. Replace the string "%DASHO_HOME%ant-dasho.jar" with "%DASHO_HOME%\ant-dasho.jar".

dashocmd.bat, premark.bat and tokengenerator.bat

  1. Replace the string java %memoryStartArg% with "%DASHO_JAVA_HOME%\bin\java" %memoryStartArg%.
  2. Replace the string "%DASHO_HOME%DashOPro.jar" with "%DASHO_HOME%\DashOPro.jar".

dashogui.bat

  1. Replace the string javaw %memoryStartArg% with "%DASHO_JAVA_HOME%\bin\javaw" %memoryStartArg%.
  2. Replace the string "%DASHO_HOME%DashOProGUI.jar" with "%DASHO_HOME%\DashOProGUI.jar".
  3. Replace the string -splash:"%DASHO_HOME%splash\splash.png" with -splash:"%DASHO_HOME%\splash\splash.png".
  4. Replace the string "%HOMEDRIVE%%HOMEPATH%\dashorc.bat" with "%HOMEDRIVE%\%HOMEPATH%\dashorc.bat".

launchJar.bat

  1. Replace the string "%DASHO_HOME%DashOPro.jar" with "%DASHO_HOME%\DashOPro.jar".

License Installation

  1. Fully register DashO in any environment where the DashO GUI can be started.
  2. Get the License Files from the following directory.
Windows system: %ALLUSERSPROFILE%/PreEmptive Solutions/DashO
Linux system: /Library/Application Support/PreEmptive Solutions/DashO
Linux system: ~/Library/Application Support/PreEmptive Solutions/DashO
Unix-like System: ~/.preemptivesolutions/dasho
  1. Copy the following License Files to the above directory or home directory of target server.
dasho.dat
dashov.dat

License Activation

  1. Navigate to the DashO Home directory.
  2. Double click the file dashogui.bat or DashOProGUI.jar to launch the GUI version of DashO.
  3. Enter the License provied in the license email.
  4. The activation should be completed automatically.

Ant Tasks Installation

  1. Navigate to the DashO directory and then execute the following command.
antinstall.bat C:\Users\<YOUR_USER_NAME>\.ant
antinstall.bat <ANT_HOME>
  1. Enter the following command to check if the task has been installed.
ant -diagnostics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment