0

I need to start a java application with lot of additional libraries (libraries can be linked in runtime using -cp argument). When I paste this command line in command prompt, it says the command line is too long and does not start anything. Any attempts to use batch file and variables have failed too. How can I correctly execute a statement that has over 3600 characters in length?

1
  • 1
    For Microsoft Windows XP or later, the maximum length of the string that you can use at the command prompt is 8191 characters
    – JosefZ
    Commented Jun 9, 2015 at 9:52

1 Answer 1

0

Move the java app so the route to execute the file is shorter,e.g c:\java instead of C:\Users\Computer\Documents\Mycode\java. secondly shorten the file name as well,using these steps you can reduce the number of characters you use, although this wont work if you are many characters over the limit

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .