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

Classpath too long to run exec command on Windows #52

Open
jihry opened this issue Jul 13, 2018 · 0 comments
Open

Classpath too long to run exec command on Windows #52

jihry opened this issue Jul 13, 2018 · 0 comments

Comments

@jihry
Copy link

jihry commented Jul 13, 2018

Trying to use FileUtils.execDeleteRecursively when error occurred complaining about the size of the line. This is on a Windows system. Getting the classpath variable from the System results in a very large path for my project; however this command doesn't need all of the loaded jars. It may be sufficient to use:
String classpath = DeleteRecursively.class.getProtectionDomain().getCodeSource().getLocation().getPath();

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

1 participant