Hallo zusammen,
ich versuche eine Anwendung per Sript zu starten.
Ich habe eine evtl. zu alte Vorlage, die leider nicht funktioniert.
Im Logfole kann ich folgendens lesen:
Fehler: Hauptklasse ibgateway.GWClient konnte nicht gefunden oder geladen werden
Den Inhalt vom Verzeichnis habe ich angehängt (Als Bild)
Hier der Script, den ich auf mein System angepasst habe:
#/bin/sh
# Run the IB Gateway by passing along all of the necessary parameters
# Syntax is:
# java -cp [java options] [IBJts directory] [username=XXX] [password=ZZZ]
# Get the username from command-line parameter 1 (or hard code this USER=xxxxx)
USER="Secret"
# Get password from command-line parameter 2 (or hard code this PASS=xxxxx)
PASS="Topsecret"
# Get the current date and time (to the minute)
DATE=`date +%Y%m%d%H%M`
# Java Executable - be specific about this so you know which JRE you are using
JAVAEXE=/usr/bin/java
# Java Runtime Options - these specify which jts.jar files to work with and how to
# configure Java's memory model
JAVAOPTIONS="-cp jts.jar:total.2013.jar -Dsun.java2d.noddraw=true -Xmx768M ibgateway.GWClient"
# Log file - make sure whatever you name this file has enough space in the folder
LOGFILE=/tmp/ibg/ibg_running_${DATE}.log
# IBJts working directory - change this to where you have the IB Gateway installed
IBJTSDIR=/home/pi/Jts/ibgateway/978
# Assemble the command line and run it!
${JAVAEXE} ${JAVAOPTIONS} ${IBJTSDIR} username=${USER} password=${PASS} > ${LOGFILE} 2>&1
# Note the 2>&1 at the end of the command line re-directs standard error into the same
# log file as standard output
Es gibt eine Desctopverknüpfung mit dem Inhalt:
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=IB Gateway 978
Exec="/home/pi/Jts/ibgateway/978/ibgateway" %U
Icon=/home/pi/Jts/ibgateway/978/.install4j/ibgateway.png
Categories=Application;
StartupWMClass=install4j-ibgateway-GWClient
Hat jemand einen Tipp, was ich ändrn muss?
Vielen Dank und Grüße
Lesezeichen