Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bh56

Pages: 1
1
Wiimote Java Whiteboard / Re: WiimoteLogger and Linux
« on: January 26, 2011, 04:42:16 AM »
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

2
Wiimote Java Whiteboard / Re: WiimoteLogger and Linux
« on: January 25, 2011, 04:08:15 AM »
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.

3
Wiimote Java Whiteboard / WiimoteLogger and Linux
« on: January 24, 2011, 07:56:40 PM »
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.



4
Wiimote Java Whiteboard / Re: Java Whiteboard and Linux
« on: January 24, 2011, 07:36:31 PM »
Thanks for the reply.
I got it going in Puppy Linux 5.2
For those interested what I did was:
1. installed bluez and java.
2.make sure that the modules rfkill and l2cap are installed ie lsmod|grep rfkill (using a terminal); if not present   modprobe rfkill. Same with l2cap.
3. check that hci0 is running ie hciconfig. If it is not running type hciconfig hci0 up.
4. at this stage you should be able to detect the wiimote by typing hcitools scan while depressing buttons 1 and 2 on the wiimote. If it doesn't work make sure your batteries in the wiimote are fresh or charged.
5. follow the instructions from ujs.

Again thankyou for this program and your help
Brendan

5
Wiimote Java Whiteboard / Java Whiteboard and Linux
« on: July 30, 2010, 08:02:36 PM »
Morning
I've followed the instructions to install Wiimote Whiteboard on Linux (ie bluecove.jar) but when the application is started i get:
31/07/2010 10:43:09 AM com.sun.corba.se.impl.ior.IORImpl getProfile
WARNING: "IOP00511201: (INV_OBJREF) IOR must have at least one IIOP profile"
org.omg.CORBA.INV_OBJREF:   vmcid: SUN  minor code: 1201  completed: No
   at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:473)
   at com.sun.corba.se.impl.logging.IORSystemException.iorMustHaveIiopProfile(IORSystemException.java:495)
   at com.sun.corba.se.impl.ior.IORImpl.getProfile(IORImpl.java:334)
   at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:787)
   at com.sun.corba.se.impl.encoding.CDRInputStream_1_0.read_Object(CDRInputStream_1_0.java:761)
   at com.sun.corba.se.impl.encoding.CDRInputStream.read_Object(CDRInputStream.java:231)
   at com.sun.corba.se.impl.resolver.INSURLOperationImpl.getIORFromString(INSURLOperationImpl.java:120)
   at com.sun.corba.se.impl.resolver.INSURLOperationImpl.operate(INSURLOperationImpl.java:130)
   at com.sun.corba.se.impl.orb.ORBImpl.string_to_object(ORBImpl.java:836)
   at org.GNOME.Accessibility.AccessUtil.getRegistryObject(AccessUtil.java:143)
   at org.GNOME.Accessibility.JavaBridge.registerApplication(JavaBridge.java:1147)
   at org.GNOME.Accessibility.JavaBridge.<init>(JavaBridge.java:398)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
   at java.lang.Class.newInstance0(Class.java:372)
   at java.lang.Class.newInstance(Class.java:325)
   at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:786)
   at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:875)
   at java.awt.Toolkit.getEventQueue(Toolkit.java:1698)
   at java.awt.EventQueue.invokeLater(EventQueue.java:957)
   at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1292)
   at org.jdesktop.application.Application.launch(Application.java:181)
   at org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard.main(WiimoteWhiteboard.java:79)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:616)
   at com.simontuffs.onejar.Boot.run(Boot.java:306)
   at com.simontuffs.onejar.Boot.main(Boot.java:159)
JarClassLoader: Warning: Unable to load native library: java.lang.NullPointerException
Native Library bluecove not available
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:74)
   at org.uweschmidt.wiimote.whiteboard.WiimoteConnector.connect(WiimoteConnector.java:48)
   at org.uweschmidt.wiimote.whiteboard.WiimoteDataHandler.<init>(WiimoteDataHandler.java:84)
   at org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard.startup(WiimoteWhiteboard.java:99)
   at org.jdesktop.application.Application$1.run(Application.java:171)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available
   at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:381)
   at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:429)
   at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
   at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1018)
   at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1011)
   at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
   at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:67)
   ... 12 more
31/07/2010 10:43:15 AM org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard startup
SEVERE: Error on startup
java.lang.IllegalStateException: Bluetooth failed to initialize. There is probably a problem with your local Bluetooth stack or API.
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:74)
   at org.uweschmidt.wiimote.whiteboard.WiimoteConnector.connect(WiimoteConnector.java:48)
   at org.uweschmidt.wiimote.whiteboard.WiimoteDataHandler.<init>(WiimoteDataHandler.java:84)
   at org.uweschmidt.wiimote.whiteboard.WiimoteWhiteboard.startup(WiimoteWhiteboard.java:99)
   at org.jdesktop.application.Application$1.run(Application.java:171)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: javax.bluetooth.BluetoothStateException: BlueCove library bluecove not available
   at com.intel.bluetooth.BlueCoveImpl.loadNativeLibraries(BlueCoveImpl.java:381)
   at com.intel.bluetooth.BlueCoveImpl.detectStack(BlueCoveImpl.java:429)
   at com.intel.bluetooth.BlueCoveImpl.access$500(BlueCoveImpl.java:65)
   at com.intel.bluetooth.BlueCoveImpl$1.run(BlueCoveImpl.java:1020)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(BlueCoveImpl.java:1018)
   at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(BlueCoveImpl.java:1011)
   at javax.bluetooth.LocalDevice.getLocalDeviceInstance(LocalDevice.java:75)
   at javax.bluetooth.LocalDevice.getLocalDevice(LocalDevice.java:95)
   at wiiremotej.WiiRemoteJ.<clinit>(WiiRemoteJ.java:67)
   ... 12 more
I've used both Linux Mint and Puppy Linux and get the same bluetooth error. I assume the bluetooth stack is working on both distributions as I can connect to my phone using bluetooth.
On Linux Mint I disabled the bluetooth manager in case it was interfering with the application but I still get the same error.
Can any one help? Thanks
Brendan

Pages: 1