Wiimote Project

Wiimote Projects => Wiimote Interactive Whiteboard => Wiimote Java Whiteboard => Topic started by: kurizuto on September 30, 2008, 10:53:29 PM

Title: how can i compile Wiimote Whiteboard java on windows ^^?
Post by: kurizuto on September 30, 2008, 10:53:29 PM
thats all, how can i compile the entire source  , and what i need ^^... because i want to traslate to other languages, is a powerfull tool for students and teachers ...

sorry for the bad english ^^... hii to everyone and thanks
Title: Re: how can i compile Wiimote Whiteboard java on windows ^^?
Post by: benpaddlejones on September 30, 2008, 10:59:31 PM
kurizuto
Rather than reinventing the wheel, I suggest you work with Uwe the Java author, Wiimote Project user ujs. He may be able to allow for easy translations. I.e. tranlations in a text file that is loaded as the language.

This has the advantage of maintaining stability and improvements.

Benpaddlejones :)
Title: Re: how can i compile Wiimote Whiteboard java on windows ^^?
Post by: ujs on October 01, 2008, 11:15:52 AM
Hi kurizuto,

thats all, how can i compile the entire source  , and what i need ^^...

you need to add all jar files in the lib-folder to your classpath in order to compile the software.

The following ant build-script will compile and run the software:
Code: [Select]
<project name="WiimoteWhiteboard" default="run" basedir=".">

  <property name="src" location="src"/>
  <property name="lib" location="lib"/>
  <property name="bin" location="bin"/>

  <target name="init">
    <mkdir dir="${bin}"/>
  </target>

  <target name="compile" depends="init">
    <javac srcdir="${src}" destdir="${bin}">
      <classpath>
        <fileset dir="${lib}" includes="*.jar"/>
        <pathelement path="${java.class.path}/"/>
      </classpath>
    </javac>
  </target>

  <target name="run" depends="compile">
    <java dir="${bin}" fork="true" classname="org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard">
      <classpath>
        <pathelement path="${bin}"/>
        <pathelement path="${src}"/>
        <fileset dir="${lib}" includes="*.jar"/>
        <pathelement path="${java.class.path}/"/>
      </classpath>
    </java>
  </target>

  <target name="clean">
    <delete dir="${bin}"/>
  </target>

</project>

because i want to traslate to other languages, is a powerfull tool for students and teachers ...

Support for other languages besides English is planned for the next version.
You can even change most of the interface right now: http://www.wiimoteproject.com/wiimote-whiteboard/java-version-developed-under-mac-os-x/msg3794/#msg3794

Uwe

Title: Re: how can i compile Wiimote Whiteboard java on windows ^^?
Post by: KE7JLM on August 08, 2009, 10:20:19 PM
How do you use the Ant build-script?
Title: Re: how can i compile Wiimote Whiteboard java on windows ^^?
Post by: ujs on August 09, 2009, 10:54:29 AM
Hi KE7JLM,

How do you use the Ant build-script?

you first need to install Ant on your machine: http://en.wikibooks.org/wiki/Apache_Ant/Getting_Started/Installation
Then just run the command "ant" at the command line in the folder where you've extracted my source code to.

Uwe