• Post Reply Bookmark Topic Watch Topic
  • New Topic

would it be a problem as path ?  RSS feed

 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, currently my project path is on ====>/D:/Documents and Settings/user/IdeaProjects/Testing/build/classes/mapping/

when i run the ant script which suppose run a java class and i get the message on log.debug on path ====>/D:/Documents%20and%20Settings/user/IdeaProjects/Testing/build/classes/mapping/

due to java class need to get some file in mapping directory, would it be a problem if the compiler detect the path string like this ?

the template as follow :



result for log.debug("fdirname ====>" :
fdirname ====>/D:/Documents%20and%20Settings/Alvin/IdeaProjects/Testing/build/mapping/

result for log.debug("file path===> :

file path===> D:\Documents%20and%20Settings\Alvin\IdeaProjects\Testing\build\mapping==== file name 0

error code :

at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:525)
at hibernate.HibernateSingleton.<init>(Unknown Source)
at hibernate.HibernateSingleton.getInstance(Unknown Source)
at hibernate.DAOLocator.setup(Unknown Source)
at hibernate.DAOLocator.<init>(Unknown Source)
at hibernate.DAOLocator.getInstance(Unknown Source)
at hibernate.DAOLocator.getInstance(Unknown Source)
at Manager.EventManager.main(Unknown Source)

thank you very much for helping
 
Stuart Ash
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple Rule: Never use directory with spaces.

Following this decreases likelihood of classpath issues.
 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, Stuart Ash ...i think that would be better way ..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!