Error: one of create, extract, list, describe, or hash must be specified -- Kotlin -- IntelliJ

Error Message

In IDE intelliJ in Kotlin, I met this runtime Error.

  • Error: one of create, extract, list, describe, or hash must be specified Usage: jmod (create|extract|list|describe|hash) <OPTIONS> <jmod-file>use --help for a list of possible options

-------------------------------------

Detailed Error Message

The detailed message of error is:

  • C:\Users\user\.jdks\corretto-20.0.1\bin\java.exe "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2023.1.3\lib\idea_rt.jar=61861:C:\Program Files\JetBrains\IntelliJ IDEA 2023.1.3\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath C:\Users\user\IdeaProjects\IntelliJ_Kotlin_test_v4\out\production\IntelliJ_Kotlin_test_v4;C:\Users\user\.m2\repository\org\jetbrains\kotlin\kotlin-stdlib-jdk8\1.9.0\kotlin-stdlib-jdk8-1.9.0.jar;C:\Users\user\.m2\repository\org\jetbrains\kotlin\kotlin-stdlib\1.9.0\kotlin-stdlib-1.9.0.jar;C:\Users\user\.m2\repository\org\jetbrains\kotlin\kotlin-stdlib-common\1.9.0\kotlin-stdlib-common-1.9.0.jar;C:\Users\user\.m2\repository\org\jetbrains\annotations\13.0\annotations-13.0.jar;C:\Users\user\.m2\repository\org\jetbrains\kotlin\kotlin-stdlib-jdk7\1.9.0\kotlin-stdlib-jdk7-1.9.0.jar;C:\Users\user\.m2\repository\org\testng\testng\7.1.0\testng-7.1.0.jar;C:\Users\user\.m2\repository\com\beust\jcommander\1.72\jcommander-1.72.jar;C:\Users\user\.m2\repository\com\google\inject\guice\4.1.0\guice-4.1.0-no_aop.jar;C:\Users\user\.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar;C:\Users\user\.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Users\user\.m2\repository\com\google\guava\guava\19.0\guava-19.0.jar;C:\Users\user\.m2\repository\org\yaml\snakeyaml\1.21\snakeyaml-1.21.jar;C:\Users\user\eclipse\java-2023-06\eclipse\configuration\org.eclipse.osgi\545\0\.cp\lib\kotlin-test-1.9.0.jar jdk.tools.jmod.Main Error: one of create, extract, list, describe, or hash must be specified Usage: jmod (create|extract|list|describe|hash) <OPTIONS> <jmod-file> use --help for a list of possible options

-------------------------------------

Reason

Why?

The main reason cause the runtime error is:

The wrong runtime configuration, for more details, see Figure 2.

(You can set it in Edit -> configuration, see Figure.1)

Figure.1

Figure.2 

I guess the reason it is because it just appears after I edit configuration.

--------------------------------------

NOTICE

Notice that the

When the exit code is NOT 0, it does NOT success.

Thus, in the following message,

        Process finished with exit code 2

we can know that the process does NOT success.

--------------------------------------

Info

IDE:

IntelliJ

Project:

Progamming Language:

Kotlin

Build with:

IntelliJ

--------------------------------------

Detailed info about IDE

IntelliJ IDEA 2023.1.4 (Ultimate Edition)
Build #IU-231.9225.16, built on July 12, 2023
Licensed to Geek Math
Subscription is active until July 31, 2023.
Evaluation purpose only.
Runtime version: 20.0.1+9-29 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 2026M
Cores: 12
Non-Bundled Plugins:
    org.jetbrains.kotlin (231-1.9.0-release-358-IJ8770.65)

Kotlin: 231-1.9.0-release-358-IJ8770.65

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值