wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Path error (Invalid Path)" Watch "File Path error (Invalid Path)" New topic
Author

File Path error (Invalid Path)

Alex Lemberg
Greenhorn

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\KingCrab.java contains an invalid path

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

Thanks,
-Alex
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
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

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"


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
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