Author Topic: how can i compile Wiimote Whiteboard java on windows ^^?  (Read 13592 times)

Offline kurizuto

  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
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



Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #1 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 :)


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Reply #2 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


Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline KE7JLM

  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
Reply #3 on: August 08, 2009, 10:20:19 PM
How do you use the Ant build-script?



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Reply #4 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

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.