Go to advanced search

by sr29067
Fri Nov 01, 2013 1:25 pm
Forum: Java
Topic: Access to USB ports from Java
Replies: 3
Views: 3964

Re: Access to USB ports from Java

You need to set where Java loads native libraries from. You can either do this with something like:

export LD_LIBRARY_PATH=/usr/lib/jni

or explicitly on the command line:

java -Djava.library.path=/usr/lib/jni ...
by sr29067
Fri Nov 01, 2013 1:10 pm
Forum: Java
Topic: RPi and Arduino over RXTX Java
Replies: 3
Views: 3370

Re: RPi and Arduino over RXTX Java

One problem you can have is that the USB device names are different. Windows uses COM1, etc, but Linux uses things like /dev/ACM0, as you have found. The other thing with the RXTX library is that, by default, it believes that serial ports can only be of the form /dev/ttyS* on Linux. To get round thi...
by sr29067
Wed Oct 30, 2013 12:48 pm
Forum: Java
Topic: STICKY: Integrating NetBeans for RPi Java Development
Replies: 23
Views: 43412

STICKY: Integrating NetBeans for RPi Java Development

I've posted an entry on my blog, https://blogs.oracle.com/speakjava/entry/integrating_netbeans_for_raspberry_pi that explains how to set things up so you can develop Java code using NetBeans on your laptop or PC and have the compiled code automatically copied to your Raspberry Pi. This helps make th...
by sr29067
Fri Oct 25, 2013 3:51 pm
Forum: Java
Topic: Java NetBeans or Eclipse on Raspberry Pi
Replies: 16
Views: 13521

Re: Java NetBeans or Eclipse on Raspberry Pi

For the NetBeans users I just posted a blog entry that explains how to configure a Ras Pi and NetBeans project to do auto-copying of jar files whenever you build a project. Doesn't solve the issue of testing code on a laptop, etc, but does make the whole edit-compile-deploy cycle easier. https://blo...
by sr29067
Thu Mar 07, 2013 11:55 am
Forum: Java
Topic: System.getProperty Values
Replies: 2
Views: 2199

Re: System.getProperty Values

For what it's worth, here are the results for running Java SE 7 Embedded (soft float on Wheezy) and JDK8 EA (hard float on Raspbian): Java SE-E 7: The information about OS Name of the OS: Linux Version of the OS: 3.1.9+ Architecture of the OS: arm JDK8 EA: The information about OS Name of the OS: Li...
by sr29067
Mon May 28, 2012 9:36 am
Forum: General discussion
Topic: Serial Port Adapter Compatibility
Replies: 10
Views: 4045

Re: Serial Port Adapter Compatibility

At the end of the boot I'm presented with a login prompt. However, when I type anything nothing appears on the screen. Before I start testing my connections and board is this something anyone else has seen? I connected a serial interface to the GPIO connector. It uses the FT232RQ USB-to-serial chip...
by sr29067
Fri May 25, 2012 12:42 pm
Forum: General discussion
Topic: Serial Port Adapter Compatibility
Replies: 10
Views: 4045

Re: Serial Port Adapter Compatibility

I've built a simple TTL-RS232 board using the MAX3232 and I get all the boot messages nicely displayed via the serial link. At the end of the boot I'm presented with a login prompt. However, when I type anything nothing appears on the screen. Before I start testing my connections and board is this s...

Go to advanced search