burpsuite: add an annoying message about java vm being too old

This commit is contained in:
Rick Farina (Zero_Chaos) 2021-07-07 15:23:10 -04:00
parent 08ead8f62b
commit 2b7c0e1757
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -48,6 +48,12 @@ src_install() {
newbin - ${PN} <<-EOF
#!/bin/sh
if java -version 2>&1 | grep -q '1.8.0'; then
printf "Selected java is too old, please select a newer java vm\n"
printf "Pick a new vm from 'eselect java-vm list' and set with 'eselect java-vm set system #'\n"
printf "You may also have to set your user vm with 'eselect java-vm set user #'\n"
exit 1
fi
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on'
java -Xmx2G -jar /opt/${PN}/${MY_P} >/dev/null 2>&1 &
EOF