Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

would it be a problem as path ?

 
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
 
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 ..
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic