source "/home/gyoung/.sdkman/bin/sdkman-init.sh"
-
์ค๋ฅ ํด๊ฒฐ ํ๊ธฐ
.bashrc
์ ๋ฃ์ด์ฃผ๋ฉด ๋๋ค. -
vi /root/.bashrc
-
or
vi .zshrc
-
๋ zshrc์ ๋ฃ์๋๋ ํด๊ฒฐ๋จ.
// Scroll Down and COPY / PAST THIS 3 LINES Of COMMAND INTO YOUR .bashrc :
*************
_SILENT_JAVA_OPTIONS="$_JAVA_OPTIONS"
unset _JAVA_OPTIONS
alias java='java "$_SILENT_JAVA_OPTIONS"'
*************
์ถ์ฒ : Permanently Fix Problem : Picked Up _JAVA_OPTIONS | Best Linux
-
๋ค๋ฅธ ๋ฐฉ๋ฒ
-
.zshrc์ ๋ฃ์ด์ฃผ๊ธฐ
export _JAVA_OPTIONS='-Xms64m -Xmx128m -Dawt.useSystemAAFontSettings=lcd'
https://stackoverflow.com/questions/9677346/java-system-environment-variable/9677804#9677804
Make sample(Java)-LinuxOS[๐]
echo "# Result\xa\xa\x60\x60\x60\xa\xa\x60\x60\x60" >> README.md &&
echo "# A collection of useful .gitignore templates " >> .gitignore &&
echo "# https://github.com/github/gitignore\xa" >> .gitignore &&
echo "# General" >> .gitignore &&
echo ".DS_Store" >> .gitignore &&
echo "dir/otherdir/.DS_Store\xa" >> .gitignore &&
echo "r:\xa\x09\x09rm -rf out\xa\x09\x09mkdir out\xa\x09\x09javac -cp src src/Main.java -d out" >> Makefile &&
echo "\x09\x09java -cp out Main\xa" >> Makefile &&
echo "b:\xa\x09\x09javac -cp src src/Main.java -d out" >> Makefile &&
echo "\x09\x09java -cp out Main\xa" >> Makefile &&
echo "d:\xa\x09\x09wget https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/1.9.3/junit-platform-console-standalone-1.9.3.jar\xa" >> Makefile &&
echo "t:\xa\x09\x09java -jar ./junit-platform-console-standalone-1.9.3.jar --class-path out --scan-class-path\xa" >> Makefile &&
echo "clean:" >> Makefile &&
echo "\x09\x09rm -rf *.jar ./out\xa" >> Makefile &&
echo "init:\xa\x09\x09mkdir src" >> Makefile &&
echo "\x09\x09echo \x22public class Main {\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22\x09public static void main(String[] args) {\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22\x09\x09System.out.println(\42Hello World. Java\42);\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22\x09}\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22}\x22 >> src/Main.java" >> Makefile
echo๋ก Result๋ง ๋ง๋ค๊ธฐ[๐]
echo "# Result\xa\xa\x60\x60\x60\xa\xa\x60\x60\x60" >> README.md
Java Makefile(macOS)[๐]
echo "# Result\xa\xa\x60\x60\x60\xa\xa\x60\x60\x60" >> README.md &&
echo "# A collection of useful .gitignore templates " >> .gitignore &&
echo "# https://github.com/github/gitignore\xa" >> .gitignore &&
echo "# General" >> .gitignore &&
echo ".DS_Store" >> .gitignore &&
echo "dir/otherdir/.DS_Store\xa" >> .gitignore &&
echo "r:\xa\x09\x09rm -rf out\xa\x09\x09mkdir out\xa\x09\x09javac -cp src src/Main.java -d out" >> Makefile &&
echo "\x09\x09java -cp out Main\xa" >> Makefile &&
echo "b:\xa\x09\x09javac -cp src src/Main.java -d out" >> Makefile &&
echo "\x09\x09java -cp out Main\xa" >> Makefile &&
echo "d:\xa\x09\x09wget https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/1.9.3/junit-platform-console-standalone-1.9.3.jar\xa" >> Makefile &&
echo "t:\xa\x09\x09java -jar ./junit-platform-console-standalone-1.9.3.jar --class-path out --scan-class-path\xa" >> Makefile &&
echo "clean:" >> Makefile &&
echo "\x09\x09rm -rf *.jar ./out\xa" >> Makefile &&
echo "init:\xa\x09\x09mkdir src" >> Makefile &&
echo "\x09\x09echo \x22public class Main {\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22\x09public static void main(String[] args) {\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22\x09\x09System.out.println(\\\"Hello World. Java\\\");\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22\x09}\x22 >> src/Main.java" >> Makefile &&
echo "\x09\x09echo \x22}\x22 >> src/Main.java" >> Makefile
Makefile[๐]
r:
rm -rf out
mkdir out
javac -cp src src/Main.java -d out
java -cp out Main
b:
javac -cp src src/Main.java -d out
java -cp out Main
d:
wget https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/1.9.3/junit-platform-console-standalone-1.9.3.jar
t:
java -jar ./junit-platform-console-standalone-1.9.3.jar --class-path out --scan-class-path
clean:
rm -rf *.jar ./out
init:
mkdir src
echo "public class Main {" >> src/Main.java
echo " public static void main(String[] args) {" >> src/Main.java
echo " System.out.println(\"Hello World. Java\");" >> src/Main.java
echo " }" >> src/Main.java
echo "}" >> src/Main.java
Java .gitignore
[๐]
# A collection of useful .gitignore templates
# https://github.com/github/gitignore
# General
.DS_Store
dir/otherdir/.DS_Store
out/
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
Google Java Style Guide[๐]
https://google.github.io/styleguide/javaguide.html
์คํ๋ง ๋๋ฒ๊น VSCodeโค๏ธRun and debug a Spring Boot project in Visual Studio Code[๐]
https://youtu.be/fTgmRyxCGF0?si=4sSJf4bltg5ex6C3
Helix Java LSP์ธํ [๐]
Helix( Java LSP Install ) jdtls์ค์นํ๊ธฐ ๊ทธ๋ฅ github ๋ก๊ธฐ๊ณ installํ๋ฉด ์ค์น ๋๋ค. ์ต๊ณ ..[๐]
https://github.com/eruizc-dev/jdtls-launcher
git clone https://github.com/eruizc-dev/jdtls-launcher.git
Cloning into 'jdtls-launcher'...
remote: Enumerating objects: 241, done.
remote: Counting objects: 100% (85/85), done.
remote: Compressing objects: 100% (52/52), done.
remote: Total 241 (delta 43), reused 50 (delta 28), pack-reused 156
Receiving objects: 100% (241/241), 48.74 KiB | 9.75 MiB/s, done.
Resolving deltas: 100% (125/125), done.
$ cd jdtls-launcher
$ ls
CONTRIBUTING.md install.sh jdtls-launcher.sh LICENSE README.md
$ ./install.sh
INFO: Downloading JDTLS-LAUNCHER
-#O=# # #
INFO: Extracting JDTLS-LAUNCHER
INFO: Creating symlink at /home/gy/.local/bin/jdtls
Installing jdtls...
jdt-language-server-1.28.0-202309221544 is going to be installed
########################################################################################################################### 100.0%########################################################################################################################### 100.0%
Installing lombok...
########################################################################################################################### 100.0%
Lombok installation succesfull
JDTLS installation succesfull
INFO: Installation successful
INFO: Ensure /home/gy/.local/bin is in path
Helix Debugger-Configurations[๐]
https://github.com/helix-editor/helix/wiki/Debugger-Configurations#configure-debuggers
This page can provide additional debugger configurations beyond the ones shipped by default in Helix.
LSP ์ด๊ฒ ์ ค ํฐ๋ฏ? ์ญ์ Eclipse์ดํด๋ฆฝ์ค[๐]
https://github.com/eclipse-jdtls/eclipse.jdt.ls
- jdtls-launcher ๋ฆฌ๋ ์ค์ ๊ฐ๋จํ ์ค์น?
gradle[๐]
https://docs.gradle.org/8.1.1/samples/
https://docs.gradle.org/8.1.1/samples/sample_building_java_applications.html
์ธ๋ถ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ๊ฒ์ํ๊ธฐ[๐]
-build.gradle
// https://mvnrepository.com/artifact/junit/junit
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
- gradle build
gradle build --scan
Eclipse Vim Setting (.vrapperrc)[๐]
-
rust_vim_setting/Eclipse_Vim_settings/
Eclipse __Vim Plug in (vrapper)
Eclipse ์์ฃผ ์ฐ๋ Vimํค ์ ๋ฆฌ[๐]
// ์๋์์ฑ
(Control + Space)
๋น์ผ๋ก ์ธํ
ํด์ ๊ทธ๋ฐ๊ฐ
Control + I ๋๋ฅด๋ฉด ๋ฐ๋ก ๋ฐ ์ ํ๋๊ณ ๋ฐ์ ๋ด๊ฐ ์ํ๋ ์๋ ์์ฑ์ Control ๋๋ฅธ ์ํ๋ก ์ํ๋ฒณ ์ฒซ ๊ธ์ง ์ ํ๋จ. ๊ทธ ๋ค์ ์ํฐ
Control +y ๊ฐ ๋น ๋ฅด๊ณ ์ข์๋ฐ ์ด๊ฑฐ๋ ๊ฐ์ด ๊ธฐ๋ฅ์ ๋ชจ๋ฅด๊ฒ ์
// Reformat code
To reformat code according to the current code style settings, select Code
| Reformat Code from the main menu or press
โฅย ย ย โย ย ย Lย ย
option + command + L
// Comment and uncomment code
Use shortcuts to comment and uncomment lines and blocks of code:
ย ย โย ย ย /ย ย : for single line comments (ย ย //...ย ย )
ย ย โฅย ย ย โย ย ย /ย ย : for block comments (ย ย /*...*/ย ย )
// The Rename refactoring
You can easily rename your classes, methods, and variables with automatic correction of all places where they are used.
Position the caret at the symbol you want to rename, and press
โงย ย ย F6ย ย (Refactor | Rename).
Type the new name and press ย ย โฉย Returnย ย .
// Preview search results
You can use the Preview area of the Find in Files dialog
(ย ย โงย ย ย โย ย ย Fย ย )
for quicker search without leaving the dialog. The Preview dialog displays the first 100 results.
- ์๋์ ๋ ฌ(์ฝ๋ ๊ฐํ์ผ๋ก ์น๊ณ fmt ํด์ ์ ๋ ฌํ๊ธฐ !!! ๊ผญ ํ์ํ ๊ฑฐ)
On Windows and Linux : Ctrl + Shift + F
On Mac : โ + โง + F
(Alternatively you can press Format in Main Menu > Source)
https://stackoverflow.com/questions/15655126/how-to-auto-format-code-in-eclipse
- ๋์ .vrapperrc ์ธํ
" ~~~~~ General Settings
imap jk <esc>
set autoindent
set ignorecase
set smartcase
set nonum
"" Content-Assist Mode ~~~~~~~
set contentassistmode
" ~~~~~~~~~~~~~~
sudo codesign --force --deep --sign - /Applications/Eclipse.app
https://stackoverflow.com/questions/70725347/the-application-eclipse-can-t-be-opened-macos-monterey
https://openjdk.org/projects/jigsaw/quick-start
Java Full Course for free โ(12์๊ฐ์ง๋ฆฌ)[๐]
Java Programming - Course for Absolute Beginners | freeCodeCamp.org[๐]
Java Tutorials Series | freeCodeCamp.org[๐]
https://youtube.com/playlist?list=PLWKjhJtqVAbnRT_hue-3zyiuIYj0OlpyG
์๋ฐ ์ฝ๋ฉ ๋ฌด๋ฃ ๊ฐ์ (๊ธฐ๋ณธํธ) - 9์๊ฐ ๋ค๋ฉด ์ฌ๋ฌ๋ถ๋ ๊ฐ๋ฐ์๊ฐ ๋ ์ ์์ด์ | ๋๋์ฝ๋ฉ[๐]
[๋์ฐ์บ ํผ์ค]java[๐]
https://youtube.com/playlist?list=PLEk6DN9YLL6c_Dy-3yJhIKFP0AktqZVeE&si=LKZwqtWBhup8gY1k
Free University of Bolzano/Bozen | Faculty of Computer Science - Bachelor in Applied Computer Science | Bachelor in Production Engineering
https://www.inf.unibz.it/~calvanese/teaching/06-07-ip/lecture-notes/
ํ๊ธ์ค๋ช [Java] ์๋ฃ๊ตฌ์กฐ01 : ์ ์ถ๋ ฅ, ๋ณ์, ๋ฐฐ์ด, ๋ฐ๋ณต๋ฌธ [๐]
https://ccomrung-programming.tistory.com/m/39
์๋ฐ์ ์ ์(2020๋ ver)[๐]
https://youtube.com/playlist?list=PLW2UjW795-f6xWA2_MUhEVgPauhGl3xIp
์๋ฐFX ๊ฐ์ข[๐]
-
์๋ฐFX๋ GUIํ๋ก๊ทธ๋จ์ ๋ง๋ค ๋ ์ฌ์ฉํ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ ๋๋ค.
https://docs.oracle.com/javase/tutorial/index.html
Java for Beginners[๐]
https://www.youtube.com/playlist?list=PLlrxD0HtieHgX3ExVDMlKjdN8LJsks2CM
Jave_Lang[๐]
- Learning Java Language - Compiled from StackOverflow Documentation (PDF)
https://riptutorial.com/Download/java-language.pdf
ORACLE __ Java Tutorials[๐]
https://docs.oracle.com/javase/tutorial/index.html
๋ชจ๋ ์ธ์ด๋ฅผ ๋ฌด๋ฃ๋ก ๊ณต๋ถํ ์ ์๋ค.[๐]
์ถ์ฒ : stackoverflow.com ์๊ฒ ๋ ๋งํฌ
์ญ์ ๊ฐ ์คํ ์ค๋ฒํ๋ก์ฐ
Github ์ฃผ์ https://github.com/EbookFoundation/free-programming-books
EbookFoundation https://ebookfoundation.github.io/free-programming-books/
- Java ๊ฐ๋ฐ์ ๊ธฐ๋ณธ ์ธํ
https://skypacific.github.io/2019/01/24/kang.heehun@dev-env-setting.html
choco install javaruntime
Java Vim Setting (WindowsOS)[๐]
:LspInstall
Installed eclipse-jdt-ls
Install(Eclipse)[๐]
https://www.eclipse.org/downloads/packages/installer
macOS
https://formulae.brew.sh/cask/eclipse-ide WindowsOS
choco https://community.chocolatey.org/packages/eclipse
eclipse & tomcat[๐]
PS C:\Users\user> choco install tomcat
Chocolatey v1.2.1
Installing the following packages:
tomcat
By installing, you accept licenses for the packages.
Progress: Downloading Tomcat 9.0.74... 100%
Tomcat v9.0.74 [Approved]
tomcat package files install completed. Performing other installation steps.
The package Tomcat wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): a
Extracting 64-bit C:\ProgramData\chocolatey\lib\Tomcat\tools\apache-tomcat-9.0.74-windows-x64.zip to C:\ProgramData\chocolatey\lib\Tomcat\tools...
C:\ProgramData\chocolatey\lib\Tomcat\tools
C:\ProgramData\Tomcat9
Installing the service 'Tomcat9' ...
Using CATALINA_HOME: "C:\ProgramData\chocolatey\lib\Tomcat\tools\apache-tomcat-9.0.74"
Using CATALINA_BASE: "C:\ProgramData\Tomcat9"
Using JAVA_HOME: "C:\Program Files\OpenJDK\jdk-19.0.2"
Using JRE_HOME: "C:\Program Files\OpenJDK\jdk-19.0.2"
Using JVM: "C:\Program Files\OpenJDK\jdk-19.0.2\bin\server\jvm.dll"
The service 'Tomcat9' has been installed.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type `refreshenv`).
ShimGen has successfully created a shim for tomcat9.exe
ShimGen has successfully created a shim for tomcat9w.exe
The install of tomcat was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\Tomcat\tools'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).