Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Pages: [1]
  Print  
Author Topic: WiimoteLogger and Linux  (Read 3017 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 5
Offline Offline
View Profile Email
« on: January 25, 2011, 04:56:40 AM »

Morning
I've just got the Wiimote Whiteboard application running on Puppy Linux 5.2.
I'd like to use WiimoteLogger application in physics experiments for high school use.
I've followed the instructions ie
1.added bluecove to a library within the wiimote logger directory and typed zip WiimoteWhiteboard.jar lib/bluecove-gpl-2.1.0.jar. It returned the message deflated 2%.
2.started the application with java -cp bluecove-gpl-2.1.0.jar:WiimoteLogger.jar.
However the application doesn't run.
The messages seem to indicate that the application cannot be found:

sh-3.00# java -cp bluecove-gpl-2.1.0.jar:WiimoteLogger.jar
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)

where options include:
    -d32          use a 32-bit data model if available

    -d64          use a 64-bit data model if available
    -client     to select the "client" VM
    -server     to select the "server" VM
    -hotspot     is a synonym for the "client" VM  [deprecated]
                  The default VM is server,
                  because you are running on a server-class machine.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A : separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose[:class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -jre-no-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                    see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument
    -splash:<imagepath>
                  show splash screen with specified image

If I try the application by itself (no bluecove) I get

sh-3.00# java -jar WiimoteLogger.jar
Jan 25, 2011 12:52:01 PM org.jdesktop.application.Application$1 run
SEVERE: Application class org.uweschmidt.wiimote.logger.WiimoteLogger failed to launch
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.

and a heap of other errors
Does anyone have any ideas on what I'm doing wrong?
Thanks
Brendan.


Logged
*
Karma: +0/-0
Posts: 5
Offline Offline
View Profile Email
« Reply #1 on: January 25, 2011, 01:08:15 PM »

I've also tried (in a terminal, same directory as WiimoteLogger)

java -cp bluecove-gpl-2.1.0.jar:WiimoteLogger.jar org.uweschmidt.wiimote.logger.WiimoteLogger

java -cp bluecove-2.1.0.jar:bluecove-gpl-2.1.0.jar:WiimoteLogger.jar org.uweschmidt.wiimote.logger.WiimoteLogger

The second command I found on the bluecove website. I also tried repeating these commands after downloading the bluecove-2.1.0 (in addition to the bluecove-gpl-2.1.0) and zipping it.
Logged
*
Karma: +10/-0
Posts: 134
Offline Offline
View Profile WWW
« Reply #2 on: January 25, 2011, 08:37:18 PM »

Hi Brendan,

java -cp bluecove-gpl-2.1.0.jar:WiimoteLogger.jar org.uweschmidt.wiimote.logger.WiimoteLogger

this command should work as suggested on the website.

I also tried repeating these commands after downloading the bluecove-2.1.0 (in addition to the bluecove-gpl-2.1.0) and zipping it.

You don't need to add the BlueCove GPL'd library to the jar-file with the zip command. This is only required for my Wiimote Whiteboard app.

Greetings,
Uwe
Logged

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.
*
Karma: +0/-0
Posts: 5
Offline Offline
View Profile Email
« Reply #3 on: January 26, 2011, 01:42:16 PM »

Alleluia!
Many thanks for your help.
I downloaded the application again and simply pasted the bluecove library in the same directory. Your startup command now works.
Again, thanks for your help. How much is a coffee?
Brendan
Logged
*
Karma: +10/-0
Posts: 134
Offline Offline
View Profile WWW
« Reply #4 on: January 27, 2011, 12:28:19 AM »

Hi Brendan,

Again, thanks for your help. How much is a coffee?

I'm glad I could help. Thank you very much for your donation, it will certainly cover the cost of a coffee Smiley

Greetings,
Uwe
Logged

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.
Pages: [1]
  Print  
 
Jump to:  

Clicky Web Analytics