JAVA

ec2 접속 오류

도도대표 2023. 1. 5. 00:34

Amazon Linux jdk 18 install

 rpm --import https://yum.corretto.aws/corretto.key
 curl -L -o /etc/yum.repos.d/corretto.repo https://yum.corretto.aws/corretto.repo

ec2접속

ssh -i "testkey.pem" ec2-user@3.39.161.108
 ssh ec2-user@localhost

자바 버전 확인

java -version

no main manifest attribute

execute오류

 jar cmvf META-INF/MANIFEST.MF new.jar