This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android 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: 19654

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)
Similar Threads
Build failed when configuring sailfin
Java 6 Posing Trouble Win XP Profile
java jdbc
Assertion Doubt.
Exception in thread "main" java.lang.NoClassDefFoundError: client/ui/RecorderMainFrame