source: arduino-1-6-7/trunk/fuentes/arduino-ide-amd64/arduino @ 4837

Last change on this file since 4837 was 4837, checked in by daduve, 3 years ago

Adding new version

  • Property svn:executable set to *
File size: 946 bytes
Line 
1#!/usr/bin/env bash
2
3APPDIR="$(dirname -- "$(readlink -f -- "${0}")" )"
4
5for LIB in \
6    "$APPDIR"/java/lib/rt.jar \
7    "$APPDIR"/java/lib/tools.jar \
8    "$APPDIR"/lib/*.jar \
9    ;
10do
11    CLASSPATH="${CLASSPATH}:${LIB}"
12done
13export CLASSPATH
14
15LD_LIBRARY_PATH=$APPDIR/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
16export LD_LIBRARY_PATH
17
18export PATH="${APPDIR}/java/bin:${PATH}"
19
20export JAVA_TOOL_OPTIONS=`echo $JAVA_TOOL_OPTIONS | sed 's|-javaagent:/usr/share/java/jayatanaag.jar||g'`
21
22JAVA=java
23if [ -x "$APPDIR/java/bin/java" ]; then
24  JAVA=$APPDIR/java/bin/java
25fi
26
27# Collect options to java in an array, to properly handle whitespace in options
28JAVA_OPTIONS=("-DAPP_DIR=$APPDIR" "-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel")
29
30# Only show the splash screen when no options are present
31if [[ "$@" != *"--"* ]] ; then
32        JAVA_OPTIONS+=("-splash:$APPDIR/lib/splash.png")
33fi
34
35"$JAVA" "${JAVA_OPTIONS[@]}" processing.app.Base "$@"
36
Note: See TracBrowser for help on using the repository browser.