Long Eclipse 3.2 classpath in Windows

Posted in development at 12:12 pm by wingerz

A few weeks ago I installed the latest Eclipse 3.2 milestone. I had trouble running some of my programs (“Exception executing command line”) and tracked it down to a very long classpath in a command being passed to Windows to execute (it got cut off a bit past the 1000th char). To fix it:

  • Navigate to the Run configuration of your program.
  • Open the Classpath tab.
  • Navigate to your project under “User Entries”.
  • Click “Edit…”
  • Check “Only include exported entries”


  1. Yateen Shaha said,

    April 26, 2007 at 4:38 am

    Thank you very much. It would have taken me long time to identify. You really saved a day or two for me.

  2. thankful said,

    August 8, 2007 at 12:47 pm

    Thanks man…..
    A great help indeed.

    From a needy friend.

  3. Ragu said,

    March 3, 2009 at 2:02 am


    I am having same issue of Exception occurred executing command line.

    I am using IBM RAD 6.0 and I dont see any way to edit the user Entries as said in your post.

    Can you pls let me know how should I do that?


  4. wingerz said,

    March 4, 2009 at 2:03 am

    Haven’t used IBM RAD 6.0 before so if the option isn’t there, I’m not sure what to do.

  5. Venky said,

    June 17, 2009 at 1:47 pm

    Really appricated for this posting. I spent two hours to figure out “Exception occurred executing command line.CreateProcess” after upgrading Eclipse 3.3.2. Posting helps me resolve this issue and wondering if there is any fix for this exception in current Eclipse build.

    Thanks again,

Leave a Comment