Cannot find main class on Linux - Classpath issue

后端 未结 1 587
孤独总比滥情好
孤独总比滥情好 2021-01-27 11:43

I am having some trouble running a few jar\'s on a linux box. Basically, I am getting an error saying it cannot find the main class of my main jar. The class is defenetly presen

相关标签:
1条回答
  • 2021-01-27 12:22

    The problem is in the following line:

    TEST_ROOTDIR = /Test/app
    

    I'm certain that upon executing the script, it'd have emitted an error message saying:

    TEST_ROOTDIR: command not found
    

    which you seem to have ignored. Remove the spaces around = while setting the environment variable. Say:

    TEST_ROOTDIR=/Test/app
    
    0 讨论(0)
提交回复
热议问题