mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-19 20:17:25 -05:00
- removed scripts
This commit is contained in:
@@ -1,16 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
java -version
|
|
||||||
|
|
||||||
# Test for java version 9
|
|
||||||
JAVA_9=$(java -version 2>&1 | grep -i version | sed 's/.* "\([9]\).*/\1/')
|
|
||||||
|
|
||||||
if [ -z ${JAVA_9+x} ]; then
|
|
||||||
echo Using Java 9 program options
|
|
||||||
# Java 9 uses the G1 garbage collector by default and requires that we specify the
|
|
||||||
# java.xml.bind package since it's been removed from the java se core library
|
|
||||||
java -cp "*:libs/*" --add-modules java.xml.bind gui.SDRTrunk;
|
|
||||||
else
|
|
||||||
echo Using Java 8 program options
|
|
||||||
java -XX:+UseG1GC -cp "*:libs/*" gui.SDRTrunk;
|
|
||||||
fi
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
java -version
|
|
||||||
|
|
||||||
SETLOCAL ENABLEDELAYEDEXPANSION
|
|
||||||
|
|
||||||
for /f "usebackq tokens=3" %%a in (`java -version 2^>^&1 ^| find "version"`) do (
|
|
||||||
rem set b to the unquoted version string parsed from the java version command
|
|
||||||
set b=%%~a
|
|
||||||
|
|
||||||
rem set c to the first character of the unquoted version string
|
|
||||||
set c=!b:~0,1!
|
|
||||||
|
|
||||||
if !c! equ 9 (
|
|
||||||
echo Using Java 9 options
|
|
||||||
java -cp "SDRTrunk.jar;*;libs/*;config/*;images/*" --add-modules java.xml.bind ua.in.smartjava.gui.SDRTrunk
|
|
||||||
) else (
|
|
||||||
echo Using Java 8 options
|
|
||||||
java -XX:+UseG1GC -cp "SDRTrunk.jar;*;libs/*;config/*;images/*" ua.in.smartjava.gui.SDRTrunk
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
ENDLOCAL
|
|
||||||
|
|
||||||
@echo on
|
|
||||||
Reference in New Issue
Block a user