This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes File Path error (Invalid Path) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Path error (Invalid Path)" Watch "File Path error (Invalid Path)" New topic

File Path error (Invalid Path)

Alex Lemberg

Joined: Nov 19, 2007
Posts: 2
After I changed the "initial folder" entry in the textpad configuration options for the "compile java" operation, I recieved the following error.

-d . -classpath "c:\program files\java\jdk1.6.0_03\;.;c:\program files\java\jdk1.6.0_03\karel\KarelJRobot.jar"
G:\AlexGridWorld\projects\KingCrab\ contains an invalid path

what does this mean, and how can I fix it?

Nicholas Jordan
Ranch Hand

Joined: Sep 17, 2006
Posts: 1282
It means that one of these is wrong:

From the view of the operating system.

See if you can figure out which one it is.

"The differential equations that describe dynamic interactions of power generators are similar to that of the gravitational interplay among celestial bodies, which is chaotic in nature."
Rob Spoor

Joined: Oct 27, 2005
Posts: 19674

The quotes are incorrect. You don't need to quote the entire classpath, only individual paths that contain spaces:

-d . -classpath "c:\program files\java\jdk1.6.0_03\";.;"c:\program files\java\jdk1.6.0_03\karel\KarelJRobot.jar"

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: File Path error (Invalid Path)