*
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
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: 38007
    
  22
Not "beginning" question. Moving thread.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: error: not a valid directory
 
Similar Threads
Wrapping an existing core Ant task
Canoo web testing
SQL
"Hello World" compilling error
Error in building EJB 2.1 on WAS6.1 using ANT 1.6.1