1#!/bin/sh 2# 3# Start-up script for the GUI of ProGuard -- free class file shrinker, 4# optimizer, obfuscator, and preverifier for Java bytecode. 5# 6# Note: when passing file names containing spaces to this script, 7# you'll have to add escaped quotes around them, e.g. 8# "\"/My Directory/My File.txt\"" 9 10# Account for possibly missing/basic readlink. 11# POSIX conformant (dash/ksh/zsh/bash). 12PROGUARD=`readlink -f "$0" 2>/dev/null` 13if test "$PROGUARD" = '' 14then 15 PROGUARD=`readlink "$0" 2>/dev/null` 16 if test "$PROGUARD" = '' 17 then 18 PROGUARD="$0" 19 fi 20fi 21 22PROGUARD_HOME=`dirname "$PROGUARD"`/.. 23 24# On Linux, Java 1.6.0_24 and higher hang when starting the GUI: 25# http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7027598 26# We're using the -D option as a workaround. 27java -DsuppressSwingDropSupport=true -jar "$PROGUARD_HOME/lib/proguardgui.jar" "$@" 28