-
Notifications
You must be signed in to change notification settings - Fork 3
/
jcha-gui
executable file
·35 lines (27 loc) · 1.41 KB
/
jcha-gui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# ---------------------------------------------------------------------------
# jcha - Java Class Histogram Analyser
# start script
#######################################################################################
# Copyright 2014-present trivago GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#######################################################################################
if test -z $JCHA_CP; then
# JCHA_CP=`dirname "$0"`/target/jcha-1.0-SNAPSHOT.jar
JCHA_CP=`dirname "$0"`/target/jcha-1.0-SNAPSHOT-jar-with-dependencies.jar
fi
#JCHA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
# -- JavaFX is not in the standard runtime path for Java 7 => add it
JCHA_CP=${JCHA_CP}:${JAVA_HOME}/jre/lib/jfxrt.jar
java -cp ${JCHA_CP} ${JCHA_OPTS} com.trivago.jcha.apps.App ${1+"$@"}