Skip to content

Commit d7b17da

Browse files
feat: install Eclipse Java IDE
1 parent b12ae66 commit d7b17da

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

scripts/eclipse.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
set -eux
4+
5+
ECLIPSE_VERSION="2023-12"
6+
7+
# download eclipse: https://www.eclipse.org/downloads/packages/
8+
wget -c -O "eclipse.tar.gz" \
9+
"https://mirror.kakao.com/eclipse/technology/epp/downloads/release/${ECLIPSE_VERSION}/R/eclipse-java-${ECLIPSE_VERSION}-R-linux-gtk-x86_64.tar.gz"
10+
11+
# extract and keep the files in /opt
12+
tar -zxvf eclipse.tar.gz
13+
mv "eclipse" /opt
14+
15+
# remove the tarball
16+
rm eclipse.tar.gz
17+
18+
cat >eclipse.desktop <<EOF
19+
[Desktop Entry]
20+
Name=Eclipse
21+
Type=Application
22+
Exec=/opt/eclipse/eclipse
23+
Terminal=false
24+
Icon=/opt/eclipse/icon.xpm
25+
Comment=Integrated Development Environment
26+
NoDisplay=false
27+
Categories=Development;IDE;
28+
Name[en]=Eclipse
29+
Name[en_US]=Eclipse
30+
EOF
31+
32+
# copy the desktop entry to appropriate location
33+
mv eclipse.desktop /usr/share/applications/

scripts/run_order.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ codeblocks.sh
3131
geany.sh
3232
pycharm_community.sh
3333
intellij_idea_community.sh
34+
eclipse.sh
3435

3536
# --- Additional support packages ---
3637
openssh_server.sh

0 commit comments

Comments
 (0)