-
Notifications
You must be signed in to change notification settings - Fork 44
Fedora 14 install
Install all of the needed dependencies:
sudo yum install maven2 git wget bluez-libs-devel cwiid-utils
Make the mouse events visible to the applications by doing the following:
pushd /dev/input sudo chmod og+rw event* popd
Install the Lightweight Java Game Library:
wget http://sourceforge.net/projects/java-game-lib/files/Official%20Releases/LWJGL%202.1.0/lwjgl-2.1.0.zip unzip lwjgl-2.1.0.zip
Make sure that java trusts the PlugTree repository by adding it's public key to the cacerts file. To do that, follow these steps:
- Browse to
https://repository-plugtree.forge.cloudbees.com/snapshot/ - Select "Tools->Page Info" from the menu.
- Select the "Security" icon and then click the "View Certificate" button.
- Select the "Details" tab.
- In the "Certificate Hierarchy" pane, select "*.forge.cloudbees.com" and then click the "Export..." button at the bottom of the dialog.
- Save the certificate in a file (I used "publickey.forge.cloudbees.com") and select the "X.509 Certificate (PEM)" format.
- Execute the following command (you may need to adjust the arguments for
alias,keystore, andfilebased on your installation and where you saved the public key):
sudo keytool -import -alias mail.redhat.com -keystore /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/security/cacerts -file ~/publickey.forge.cloudbees.com
- When prompted, the default keystore password is "changeit".
$HOME/.m2/settings.xml file so that it contains the following active profile:
<settings>
<profiles>
<profile>
<id>jboss-public-repository</id>
<repositories>
<repository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatepolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatepolicy>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name>
<url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
<layout>default</layout>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatepolicy>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatepolicy>
</snapshots>
</pluginrepository>
</pluginrepositories>
</profile>
</profiles>
<activeProfiles>
<activeProfile>jboss-public-repository</activeprofile>
</activeprofiles>
</settings>
Grab the source code using:
git clone https://github.com/Salaboy/emergency-service-drools-app
Adjust the pom.xml files for the various projects.
pushd emergency-service-drools-app pushd emergency-service-core vi pom.xml
Add <argument>-Djava.net.preferIPv4Stack=true</argument> then save the file.
popd pushd emergency-service-world-ui-slick vi pom.xml
Make the following changes to the file:
- Fix the
<argument/>element containing thejava.library.pathto point to thelwjgl-2.1.0/native/linuxpath. - Add
<argument>-Djava.net.preferIPv4Stack=true</argument> - Remove the
<argument/>element for-d32
popd pushd emergency-service-taskslists-ui-swing vi pom.xml
Make the following changes to the file:
- Add
<argument>-Djava.net.preferIPv4Stack=true</argument> - Remove the
<argument/>element for-d32
popd mvn clean install -DskipTests=true 2>&1 | tee build.log popd
If the mvn command is unable to locate a dependency, you can work through that by repeating the mvn command sans the clean.
Determine the MAC address for your Wiimote by pressing "1+2" simultaneously on the Wiimote to make it discoverable. Then type the command:
lswm
Note the MAC address for use later in the demo.
To launch the demo application, please use the following script:
(add link to file here)