I set the following in settings.xml:
Code: Select all
<mediadir>d:\mp3</mediadir>
<ratingsdir>ratings</ratingsdir>
where the folder ratings does not exist. This results in
Code: Select all
C:\tmp\fairdj>java -jar FairDJ_0.2.3\fairdj.jar -settings settings.xml
2006-02-28 09:45:46,554 [Main Thread ] INFO net.sf.fairdj.FairDj: Loading settings from C:\tmp\fairdj\settings.xml
2006-02-28 09:45:47,023 [Main Thread ] INFO net.sf.fairdj.FairDJFactory: Creating Fair DJ subsystems.
2006-02-28 09:45:47,148 [Main Thread ] INFO net.sf.fairdj.FairDJFactory: Initializing Fair DJ subsystems from XML.
2006-02-28 09:45:47,163 [Main Thread ] INFO net.sf.fairdj.users.UserDbImpl: userdb not set, faking it in C:\DOCUME~1\mattias\LOCALS~1\Temp\fairdj-demo-userdb
2006-02-28 09:45:47,257 [Main Thread ] FATAL .sf.fairdj.tracks.TracksDbImpl: Can't locate mserv db root.
java.io.FileNotFoundException: The given path to the Mserv database 'ratings' do esn't exist
at net.sf.fairdj.mservdb.MservDb.<init>(MservDb.java:49)
at net.sf.fairdj.tracks.TracksDbImpl.setRatingsRoot(TracksDbImpl.java:124)
at net.sf.fairdj.tracks.TracksDbImpl.loadFromXml(TracksDbImpl.java:411)
at net.sf.fairdj.FairDJFactory.initializeTracksDb(FairDJFactory.java:231)
at net.sf.fairdj.FairDJFactory.loadFromXml(FairDJFactory.java:184)
at net.sf.fairdj.FairDj.loadFromXml(FairDj.java:439)
at net.sf.fairdj.FairDj.initiateFromSettings(FairDj.java:384)
at net.sf.fairdj.FairDj.start(FairDj.java:349)
at net.sf.fairdj.FairDj.main(FairDj.java:339)
2006-02-28 09:45:47,288 [Main Thread ] INFO net.sf.fairdj.FairDj: Shutdown complete, see ya
C:\tmp\fairdj>
I suggest deafult action is to create folder and move on.