Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual Box #3

Open
robouden opened this issue Dec 20, 2014 · 28 comments
Open

Virtual Box #3

robouden opened this issue Dec 20, 2014 · 28 comments

Comments

@robouden
Copy link

the serial ports are not found on Virtual Box on a mac

@FriedCircuits
Copy link
Owner

Hi,

You can run the app directly on OSX. Just install Java.

@robouden
Copy link
Author

running Java V8 update 25.. but how to startup?

@FriedCircuits
Copy link
Owner

Double clicking might work or java -jar filename

@FriedCircuits
Copy link
Owner

In Vbox does the serial port show up in Device Manager? I should test it in Vbox, never did that.

@robouden
Copy link
Author

double click on jar gives only a interface_main on the menu bar.. nothing else..
Vbox does only tries to install Leonard serial port.. but fails..

@FriedCircuits
Copy link
Owner

Try terminal and use the java -jar filename

Oh okay, then you need the Leonardo drivers. It might come with the Arduino IDE.

@robouden
Copy link
Author

In the terminal:

MacBook-Pro:FC-USB-Tester-Data-Logger-App-master user$ java USBTester.jar
Error: Could not find or load main class USBTester.jar
MacBook-Pro:FC-USB-Tester-Data-Logger-App-master user$

@FriedCircuits
Copy link
Owner

I have 7 downloading 8 now.

@FriedCircuits
Copy link
Owner

Try with -jar in front of file name.

@robouden
Copy link
Author

On Windows Xp under Vbox got it going..needed the adruino ide installed and drivers updated..
Buy on OSX (Yosemite) no luck:
MacBook-Pro:FC-USB-Tester-Data-Logger-App-master user$ java -jar USBTester.jar
A1.00
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at gnu.io.CommPortIdentifier.(CommPortIdentifier.java:83)
at Main.Interface_Main.listPorts(Interface_Main.java:261)
at Main.Interface_Main.(Interface_Main.java:570)
at Main.Interface_Main$14.run(Interface_Main.java:1473)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
^CMacBook-Pro:FC-USB-Tester-Data-Logger-App-master user$ java -jar USBTester.jar
A1.00
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1857)
at java.lang.Runtime.loadLibrary0(Runtime.java:870)
at java.lang.System.loadLibrary(System.java:1119)
at gnu.io.CommPortIdentifier.(CommPortIdentifier.java:83)
at Main.Interface_Main.listPorts(Interface_Main.java:261)
at Main.Interface_Main.(Interface_Main.java:570)
at Main.Interface_Main$14.run(Interface_Main.java:1473)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

@FriedCircuits
Copy link
Owner

Do you have the libraries folder is OSX?

@robouden
Copy link
Author

Not sure why it will not run..

@robouden
Copy link
Author

yes, got the lib folder in OSX

@robouden
Copy link
Author

also the pre-json.. same, not running at least the display does not show anything

@FriedCircuits
Copy link
Owner

Hmm, strange. Is the RXTXSerial lib inside the lib folder?

Maybe I need to recompile for Java 8. Windows is easier because Launch4js figures out the Java environment stuff for you.

@robouden
Copy link
Author

William,

Hereby my folders/files. Let me know if you want me to test the new
compiled version.

regards,
rob

Regards,
Rob Oudendijk Yuka Hayashi
http://yr-design.biz http://oudendijk.biz http://about.me/robouden
tel +81 80-22605966 Skype: robouden Facebook:robouden
http://on.fb.me/QeKw2P twitter:robouden http://bit.ly/RAiSTC

On Sat, Dec 20, 2014 at 5:25 PM, William notifications@github.com wrote:

Hmm, strange. Is the RXTXSerial lib inside the lib folder?

Maybe I need to recompile for Java 8. Windows is easier because Launch4js
figures out the Java environment stuff for you.


Reply to this email directly or view it on GitHub
#3 (comment)
.

@FriedCircuits
Copy link
Owner

I don't see the list. But anyways I will mess with it tomorrow and see if I can get it going on my Mac and send the new one to you. I also need to make a update for , vs . for international. Someone posted the code and needs to be merged.

@robouden
Copy link
Author

Was attached a picture

screen shot 305

@FriedCircuits
Copy link
Owner

See if this is any different.

https://dl.dropboxusercontent.com/u/16071234/USBTester.jar

@robouden
Copy link
Author

William

Tested it. Same.
Seems RXTX lib is the issue on my mac..
Maybe best if we could make a real app.

Tomorrow I will check more.

regards
rob

Regards,
Rob Oudendijk Yuka Hayashi
http://yr-design.biz http://oudendijk.biz http://about.me/robouden
tel +81 80-22605966 Skype: robouden Facebook:robouden
http://on.fb.me/QeKw2P twitter:robouden http://bit.ly/RAiSTC

On Sat, Dec 20, 2014 at 6:38 PM, William notifications@github.com wrote:

See if this is any different.

https://dl.dropboxusercontent.com/u/16071234/USBTester.jar


Reply to this email directly or view it on GitHub
#3 (comment)
.

@robouden
Copy link
Author

Got it..

  • Downloaded the RXTXcomm.jar and librxtxSerial.jnilib from http://jlog.org/rxtx-mac.html.
  • copy the files to /Library/Applications Support/Java/Extentions .
  • chown the files to root:wheel
  • chmod the files to 644.
  • startup from terminal. with java -jar USBTester.jar

only issue is that if you stop it it cashes. But not an issue for now.

Thanks for all the help

regards
rob

@FriedCircuits
Copy link
Owner

Great, you got it working. I forgot that there is a different version for Mac. I will have to do testing on Mac then. Figure out why its crashing.

When is crashes is there an output error in the terminal?

@robouden
Copy link
Author

William,

Attached is the error.log file.
https://www.dropbox.com/s/bwq2qwludlrsoup/hs_err_pid32633.log?dl=0

regards
rob

Regards,
Rob Oudendijk Yuka Hayashi
http://yr-design.biz http://oudendijk.biz http://about.me/robouden
tel +81 80-22605966 Skype: robouden Facebook:robouden
http://on.fb.me/QeKw2P twitter:robouden http://bit.ly/RAiSTC

On Sun, Dec 21, 2014 at 10:06 AM, William notifications@github.com wrote:

Great, you got it working. I forgot that there is a different version for
Mac. I will have to do testing on Mac then. Figure out why its crashing.

When is crashes is there an output error in the terminal?


Reply to this email directly or view it on GitHub
#3 (comment)
.

@FriedCircuits
Copy link
Owner

Doesn't look like it attached.

@robouden
Copy link
Author

look again..:) I inserted the file from drop box..

rob

@FriedCircuits
Copy link
Owner

Right, its right in front of me!

@FriedCircuits
Copy link
Owner

Interesting, crash happened outside the JVM in native code. I will have to see if I can replicate it. So it happens when you stop logging? Must be something to do with the serial port.

@robouden
Copy link
Author

Let me check later on when I am back..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants