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 error: not a valid directory 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 "error: not a valid directory" Watch "error: not a valid directory" New topic
Author

error: not a valid directory

sahar sa
Ranch Hand

Joined: Jul 06, 2009
Posts: 102
Dear friends
I had my project in one computer and know that i copy it to my laptop it throws me this error:
do you know what may cause this error? an how can i solve it?

thank you in advance,
sahar
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

I don't know if this might be the cause, but try to move your project to a directory without spaces in it.


[My Blog]
All roads lead to JavaRanch
sahar sa
Ranch Hand

Joined: Jul 06, 2009
Posts: 102
Dear friend
Still the error is there, I wonder why it prints out the address of the directory which was on my previouse pc ? (previousley my program was on C:\Documents and Settings\student\Desktop\project incomplete\1-work On\BookTrading\BookTrading )
because the program is already in :C:\testTrading\BookTrading\BookTrading\

any suggestion?
thank you
sahar
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

The path must be hard-coded in build-impl.xml. Try to change it.
sahar sa
Ranch Hand

Joined: Jul 06, 2009
Posts: 102
Dear
im sorry if it's a silly question but Im really new in this one.
the mentioned path address is not exist in build.xml file so I couldn't find where should I change! can you tell me which line I should change?
here is the content of built.xml


thank you so much!
sahar
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

The top line says "GENERATED FROM project.xml". Did you try to regenerate the files on your machine ?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Also, it seems that it gets a bunch of properties from external properties files : nbproject/project.properties, nbproject/private/private.properties. Check them.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38472
    
  23
Not "beginning" question. Moving thread.
 
jQuery in Action, 2nd edition
 
subject: error: not a valid directory