Installation: Unterschied zwischen den Versionen

Aus OpenDino
Wechseln zu: Navigation, Suche
(Writing a Shell Script)
Zeile 18: Zeile 18:
  
 
In Windows, create a file <tt>openopal.bat</tt> with the following content:
 
In Windows, create a file <tt>openopal.bat</tt> with the following content:
<pre>$java -cp openopal.jar org/openopal/core/OpenOpal %* /pre>
+
 
 +
  java -cp openopal.jar org/openopal/core/OpenOpal %*  
 +
 
  
 
In Linux, create a file <tt>openopal.sh</tt> with the following content:
 
In Linux, create a file <tt>openopal.sh</tt> with the following content:
<pre>
+
 
#!/bin/sh
+
  #!/bin/sh
java -classpath openopal.jar org.openopal.core.OpenOpal $*
+
  java -classpath openopal.jar org.openopal.core.OpenOpal $*
/pre>
+
 
 
To make the file executable enter in the shell:
 
To make the file executable enter in the shell:
<pre>
+
 
chmod u+x openopal.sh
+
  chmod u+x openopal.sh
/pre>
 

Version vom 18. März 2013, 22:38 Uhr

Download

The compiled software can be downloaded from Download page. As the software is written in Java, the compiled code runs on most platforms. The software consists of a single jar file openopal.jar.

Start

Start OpenOpal with either:

  • double clicking on the jar (this is simple, however, not activated on all plattforms and console output may not be seen).
  • open a Linux shell or Windows Command Line and enter one of the following two command in the same directory as file openopal.jar was downloaded (Windows often requires the latter command).
$ java -jar openopal.jar  
$ java -classpath openopal.jar org.openopal.core.OpenOpal
  • to see additional command line options enter
$ java -jar openopal.jar -help 

Writing a Shell Script

The script assumes an OpenOpal archive file openopal.jar. This filename can be replaced to match the actual name or by a filename with absolute path.

In Windows, create a file openopal.bat with the following content:

 java -cp openopal.jar org/openopal/core/OpenOpal %* 


In Linux, create a file openopal.sh with the following content:

 #!/bin/sh
 java -classpath openopal.jar org.openopal.core.OpenOpal $*

To make the file executable enter in the shell:

 chmod u+x openopal.sh