aspose file tools
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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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: 19896

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)