Academia JavaEE Workspace in Ubuntu

From Chorke Wiki
Revision as of 00:48, 8 July 2024 by Shahed (talk | contribs) (Replaced content with "==JMeter== {| |colspan="2"| <syntaxhighlight lang="bash"> cat <<-'EXE'|sudo bash mkdir -p /opt/ide wget -cq https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.6.3.tgz -P /opt/ide tar -xzf /opt/ide/apache-jmeter-5.6.3.tgz -C /opt/ide rm -rf /opt/ide/apache-jmeter-5.6.3.tgz EXE </syntaxhighlight> |- |colspan="2"| ---- |- |colspan="2"| <syntaxhighlight lang="ini"> cat << INI | sudo tee /usr/share/applications/jmeter.desktop >/dev/null [Desktop Entry]...")
Jump to navigation Jump to search

JMeter

cat <<-'EXE'|sudo bash
 mkdir -p /opt/ide
 wget -cq https://archive.apache.org/dist/jmeter/binaries/apache-jmeter-5.6.3.tgz -P /opt/ide
tar  -xzf /opt/ide/apache-jmeter-5.6.3.tgz -C /opt/ide
   rm -rf /opt/ide/apache-jmeter-5.6.3.tgz
EXE

cat << INI | sudo tee /usr/share/applications/jmeter.desktop >/dev/null
[Desktop Entry]
Version=5.6
Terminal=false
Type=Application
Name=Apache JMeter
StartupNotify=false
Comment=Apache JMeter
Exec=/opt/ide/apache-jmeter-5.6.3/bin/jmeter.sh
Icon=/opt/ide/apache-jmeter-5.6.3/docs/images/jmeter_square.png
Keywords=Java,JMeter,Development
Categories=Development;IDE;Java;
INI

# jmeter find jvm_args
JMETER_JVM_ARGS_FIND=$(cat <<FIN
##   JVM_ARGS="-Xms512m -Xmx512m" jmeter.sh etc.\n\
##\n\
##   ==============================================\n
FIN
)
# jmeter fill jvm_args
JMETER_JVM_ARGS_FILL=$(cat <<FIL
${JMETER_JVM_ARGS_FIND}\
JVM_ARGS="-Dsun.java2d.uiScale=200%"\
\n
FIL
)

sudo sed -z "s|${JMETER_JVM_ARGS_FIND}|$(echo "${JMETER_JVM_ARGS_FILL}")|" \
 -i /opt/ide/apache-jmeter-5.6.3/bin/jmeter.sh