Author Topic: uweschmidt's Wiimote Whiteboard  (Read 7807 times)

Offline KE7JLM

  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
on: August 31, 2009, 10:23:25 AM
I'm new to programming and I don't know how to "install" Java Advanced Imaging. Here is the link -

https://jai.dev.java.net/binary-builds.html

I've downloaded all four of them (I'm running windows) and installed the exe and include the JAR  file to my cross path and nothing (tried each individually). This is a problem because in order to compile the src code you need to have JAI "installed". If it means anything i am getting this error -

on this line -
Code: [Select]
throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
the compiler can not find "Jail18N"

How do you install JAI?

Any help is greatly appreciated, sorry if this a noob type of question.



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Reply #1 on: September 07, 2009, 03:22:06 PM
Hi,

[...]i am getting this error -

on this line -
Code: [Select]
throw new IllegalArgumentException(JaiI18N.getString("Generic0"));
the compiler can not find "Jail18N"

just delete (or comment out) this particular line that gives the error.

Sorry for the late reply,
Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline KE7JLM

  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
Reply #2 on: September 10, 2009, 10:55:56 AM
Thanks Uwe for your advice, I got it to compile and run but as always it never that easy...


The first warning-

Code: [Select]
"Sep 10, 2009 8:24:26 AM org.jdesktop.application.SingleFrameApplication initRootPaneContainer

WARNING: couldn't restore sesssion [mainFrame.session.xml]

org.jdesktop.application.LocalStorage$LSException: load failed "mainFrame.session.xml"

at org.jdesktop.application.LocalStorage.load(LocalStorage.java:150)....

Caused by: java.lang.ClassNotFoundException: org.jdesktop.application.SessionStorage$WindowState"

I am guessing this is not very important (Maybe caused by the commented out JAI lines) and has nothing to do with the following error -
Code: [Select]
Sep 10, 2009 8:25:12 AM wiiremotej.WiiDeviceDiscoverer deviceDiscovered

SEVERE: Error discovering device.

java.io.IOException: Can't query remote device

              at com.intel.bluetooth.RemoteDeviceHelper.getFriendlyName(RemoteDeviceHelper.java:404)

              at javax.bluetooth.RemoteDevice.getFriendlyName(RemoteDevice.java:130)

              at wiiremotej.WiiDeviceDiscoverer.deviceDiscovered(WiiDeviceDiscoverer.java:63)

              at com.intel.bluetooth.BluetoothStackBlueSoleil.deviceDiscoveredCallback(BluetoothStackBlueSoleil.java:278)

              at com.intel.bluetooth.BluetoothStackBlueSoleil.runDeviceInquiryImpl(Native Method)

              at com.intel.bluetooth.BluetoothStackBlueSoleil.runDeviceInquiry(BluetoothStackBlueSoleil.java:262)

              at com.intel.bluetooth.DeviceInquiryThread.run(DeviceInquiryThread.java:103)

I get the same in the log window.

Ive search around and found that some people solve this "Can't query remote device" error by changing the .getFriendlyName() method to false... not sure this is good advice and they where also not working with wiimotes. What is your take on it? I understand this would require getting the src code for the wiiremotej api and editing the bluetooth connection method and recompling to a jar file.

I also understand that it could be my bluetooth stack. If this is the problem it would be a easy fix, right?

If it matter I am able to run Smoothboard and it works fine

Any help is greatly appreciated, thank you very much your previous response.


I am using BlueCove version 2.1.0 on bluesoleil



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Reply #3 on: September 15, 2009, 03:50:30 PM
Hi,

I also understand that it could be my bluetooth stack. If this is the problem it would be a easy fix, right?
[...]
I am using BlueCove version 2.1.0 on bluesoleil

I'm afraid my app won't work with the BlueSoleil Stack. Please see http://www.uweschmidt.org/comment/166

Sorry for the late reply,
Uwe


Java WiimoteWhiteboard for Mac OS X, Windows and Linux.


Offline KE7JLM

  • *
  • Posts: 14
  • Karma: +1/-0
    • View Profile
Reply #4 on: September 18, 2009, 10:07:10 AM
Thank you very much, I will get a new dongle that is widcomm compatible.



Offline ujs

  • *
  • Posts: 134
  • Karma: +10/-0
    • View Profile
    • uweschmidt.org
Reply #5 on: September 18, 2009, 10:15:48 AM
Thank you very much, I will get a new dongle that is widcomm compatible.

Make sure you don't buy something that won't work either. Please see this post.
I unfortunately can't really help you with that since it's been a while that I dealt with Bluetooth on Windows...

Uwe

Java WiimoteWhiteboard for Mac OS X, Windows and Linux.