FairDJ FAQ

FairDJ is a music jukebox designed for a room with a couple of people in it and one set of speakers. The users rate songs, and the program selects songs so that everybody gets to hear music they like.

Moderators: Marcus, walles

Locked
User avatar
Marcus
Site Admin
Posts: 1860
Joined: 2005.04.04 10:52
Location: Küssnacht am Rigi
Contact:

FairDJ FAQ

Post by Marcus »

Q: How do I get plugins to work?
A: For Fair DJ < 0.2.6 you need to specify the classpath when using plugins. The following batch script illustrates this, and should be helpful.

Code: Select all

@echo off
set PLUGINDIRS=C:\clients\opensource\fairdj\plugins\bin
set FAIRDJLIBS=fairdj.jar;lib/crypt.jar;lib/jl1.0.jar;lib/jorbis-0.0.13.jar
set FAIRDJLIBS=%FAIRDJLIBS%;lib/PluginLoader-20050423.jar
set FAIRDJLIBS=%FAIRDJLIBS%;lib/jogg-0.0.7.jar;lib/junit.jar
set FAIRDJLIBS=%FAIRDJLIBS%;lib/log4j-1.2.9.jar;lib/tritonus_share.jar
set FAIRDJLIBS=%FAIRDJLIBS%;lib/vorbisspi1.0.1.jar;lib/mp3spi1.9.2.jar
set JAVA_HOME=C:\jrockits\jrockit-R26.0.0-jdk1.5.0_04
@echo Starting fairDJ
%JAVA_HOME%\bin\java -cp %PLUGINDIRS%;%FAIRDJLIBS% net.sf.fairdj.FairDj -settings c:\fairdjsettings.xml
Also, if you wish to configure a plugin to start automatically, or configure it, you need to add an element with the plugin name in the configuration file. The following example illustrates this:

Code: Select all

       
<pluginmanager class="net.sf.fairdj.PluginManagerImpl">
     <url>file:/C:\clients\opensource\fairdj\plugins\bin</url>
     <http startonload="true">
         <port>80</port>
         <timeout>2000</timeout>
         <toplength>10</toplength>
         <tcpdelay>false</tcpdelay>
     </http>
 </pluginmanager>
 
Q: How do I report bugs?
A: We have a bugzilla up and running now: http://hirt.se/bugzilla/

Q: FairDJ won't start listening for connections.
A: You probably have an old version of the settings file. Do:

Code: Select all

java -jar fairdj.jar -install
to create a new settings file. Transfer the relevant settings from your old one.
Locked