Search

[Error] no main manifest attribute, in JAR file

[Error] no main manifest attribute, in JAR file

Main 클래슀λ₯Ό μ§€μ •ν•˜λŠ” μ½”λ“œ
// ---------------[MAIN CLASS]--------------- jar { manifest { attributes( 'Main-Class': 'com.example.sample.App' ) } } mainClassName = 'com.example.sample.App' // ---------------[MAIN CLASS]---------------
Markdown
볡사
MANIFEST.MF νŒŒμΌμ— μ•„λž˜ λ‚΄μš©μ„ μΆ”κ°€ν•΄μ€€λ‹€.
Main-Class: com.example.sample.App
Markdown
볡사
MANIFEST.MF νŒŒμΌμ— Main-Class λ₯Ό μ§€μ •ν•˜λŠ” μ½”λ“œκ°€ μžˆμ–΄μ•Ό. App.jar μ‹€ν–‰ μ‹œ, 메인 클래슀λ₯Ό μΈμ‹ν•˜μ—¬ ν”„λ‘œκ·Έλž¨μ„ μ‹€ν–‰μ‹œν‚¬ 수 μžˆλ‹€.