Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it completely impossible to work now? Whether it's fat jar or classpath #15682

Closed
Smilewh888 opened this issue Mar 8, 2024 · 2 comments
Closed

Comments

@Smilewh888
Copy link

          > It seems that -jar cannot work with -cp together,-jar cannot get -cp's libraries,Is your shell worked success?have you test your shell script?

Yes, -jar can not work with -cp.

Once we use -jar then the jar should be a fat jar, the better way is to add ext jar by set Class-Path at MANIFEST.MF.

So Can we add entry class in UI and use -cp to refactor this.

Originally posted by @ruanwenjun in #15645 (comment)

@Smilewh888
Copy link
Author

Can both classpath and fat jar be supported?

Is it completely impossible to work now? Whether it's fat jar or classpath

image

Can you explain this Java command?

${JAVA_HOME}/bin/java -classpath .:/tmp~~/285:/tmp/~~~/285//tmp/~~~/285/deploy/SSHPing-3.2.0.jar -jar /tmp/~~~/285//tmp/~~~/285/deploy/SSHPing-3.2.0.jar

@Smilewh888 Smilewh888 changed the title > It seems that -jar cannot work with -cp together,-jar cannot get -cp's libraries,Is your shell worked success?have you test your shell script? Is it completely impossible to work now? Whether it's fat jar or classpath Mar 8, 2024
@SbloodyS
Copy link
Member

Please use issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants