Java is a high level programming language. Roughly four billion devices run Java, as it is used in almost all computers and mobile phones, as well as other interactive devices. In order to program with Java, a separate JDK has to be installed beyond the normal language kit.

learn more… | top users | synonyms

0
votes
0answers
32 views

How can I change the IP address of my Pi running Raspbian using Java? [closed]

My Pi is running Jessie. I need to be able to change the IP address using Java, though I could also use a solution in C and use the JNI to run it. Does anyone have experience doing this?
0
votes
1answer
25 views

Possible to run java UI (AWT/Swing) application on Raspberry Pi 2 running OSMC?

Is it possible to run a java UI (AWT/Swing) application on a Raspberry Pi 2 running OSMC. I don't know if OSMC runs on top of an X11 layer, or is compatible with the Java UI (AWT/Swing).
0
votes
0answers
23 views

Easy way to build and configure raspberry pi images on windows and export it to the raspberry pi SD card?

I'm working with a java program and currently it works on the raspberry pi, but I want to be able to develop this on my windows pc via a vm raspbian instead of having to configure it on the pi itself. ...
0
votes
0answers
16 views

how to use I2C make pcf8591 work? [duplicate]

I want to use raspberry pi3plus to make i2c work(sorry,I'm from another country and my english very pool,but I need your help),so I need a example to learn how to use i2c,who can give me a example or ...
0
votes
0answers
23 views

Pi4j snapshot 1.1 exampleCode error

We have manually installed the latest pi4j snapshot (version 1.1) to solve the BigDecimal issue, but now we have both a run error and compile error. We use the PCA9685GpioServoExample.java as example ...
0
votes
0answers
15 views

RMI Server impact(memory footprint and processing power)

How big is the impact of an RMI server (memory footprint and processing power) on a Raspberry Pi(B+)? I made a small research but I could not find any alternative. Do you know any? A paper would help ...
0
votes
0answers
13 views

Compile JInput on ARM

I have a Raspberry Pi 2, and an arduino pro micro set up as a Joystick. On the Pi i have a java application that runs well on a PC with both Linux and Windows with the arduino joystick connected. But ...
0
votes
0answers
17 views

How to read photocell in Java (Pi4J)

I connected photocell to GPIO 23 (Pin 16) on my Raspberry Pi 3 Model B. It works with python code, but how I can read it in Java (PI4J)?
1
vote
2answers
54 views

Conveniently devolop Java on my Desktop PC and testrun on Raspberry PI 3

Is there any way to develop Java on my Desktop PC and test-run it conveniently on my RaspberryPi. I'd prefer developing on a more powerful PC, but I'd need to run it on the RaspberryPi due to ...
0
votes
0answers
22 views

javaSound with RaspberryPi

I have a problem with my audio out. I am trying to get a wav file to the speakers with Java on a Raspberry Pi. When I run my code, I hear some noise. My sound file says "This language is not ...
0
votes
0answers
10 views

Write to LCD screen on Arduino based on conditional output run from Java program on Pi

I'm trying to figure out how my Java program can generate output on the LCD screen on the aArduino. So far I haven't found any Java solutions that can work, only Python. Below is my Java code. ...
0
votes
0answers
49 views

KeyPad 4x4 + MCP23017 don't work

I have a KeyPad 4x4 and a MCP23017. Here is code (I'm now author of this code, I modified it to work with MCP23017): package me.mikigal.lcd; import com.pi4j.gpio.extension.mcp....
0
votes
1answer
302 views

How do I update Java 8 in Raspbian

My Raspberry Pi 3 came with Java version 1.8.0_65 installed. I could not update it to a later version using apt-get - I assume there's no Debian repo for it. I do not know how to update it, and ...
0
votes
0answers
31 views

Can SwingNode be used in OpenJFX?

Is the class SwingNode unavailable in OpenJFX? I just recently got a Raspberry Pi 3, and knowing that it now supported JDK8, it made sense to me to work with JavaFX instead of Swing. I then realized ...
1
vote
1answer
171 views

Cant record 16bit 16000 Hz audio in Java (Raspberry Pi 3)

I am trying to record audio in Java using my RaspBerry Pi 3 and Raspbian Jessie. My app works on my Mac both with internal and external USB micro. On the Raspberry Pi, with whatever format I use, I ...
1
vote
1answer
34 views

Set external usb mixer as default

I'm trying to set my Logitech C-170 as a default mixer. I followed this guide: Unable to set default input and output audio device on Raspberry jessie but it didn't help me. My webcam is recognized by ...
0
votes
1answer
62 views

“/usr/bin/ld: cannot find -ljvm” error when trying to install javabridge

I'm trying to use Weka with python-weka-wrapper on my Raspberry Pi. I have to install javabridge to use the wrapper but I got the above mentioned error when I run sudo pip install javabridge I ...
0
votes
0answers
106 views

Java 8 + Eclipse configuration for Raspberry Pi

I have installed Java 8 and Eclipse with the help of following post: Java Eclipse configuration for raspberry-pi. However the installed Eclipse is not compliant with JDK 8. The installed version of ...
0
votes
0answers
8 views

Installing Java OpenCV 3.1.1 on a Raspberry Pi 2? [duplicate]

Is it possible to do this and if so how? I was able to install the C++ libraries but I would prefer to work in Java.
0
votes
0answers
40 views

Running pi4j Java Program

When trying to run the example programs such as BlinkGpioExample I get this error: Unable to load native library: libverify.so: cannot open shared object file: No such file or directory
0
votes
1answer
96 views

java code help for temperature sensor(DHT11)

I've the raspberry pi model b and i am trying to connect a temperature sensor(DHT11). I am facing problem on how to fetch the data from the sensor. I am using JAVA. Which API should i use to get this ...
0
votes
0answers
163 views

pi4J For Orange Pi Plus 2 [closed]

for a school project I recently bought an Orange Pi +2 hoping to use it to control a few electronics with the GPIO pins. I have many years of Java experience so I naturally wanted to write my code in ...
0
votes
0answers
37 views

RejectedExecutionException in pi4j

I have a Java program that is using pi4j project to interact with the GPIOs. I have one test class that listens for a button to be pressed and then does something. The class is part of many in a ...
2
votes
3answers
93 views

Connecting relays to a Raspberry Pi via radio

For example, I have a relay that turns lights on/off in my room, and a Raspberry Pi in another room. Is there any way to send commands to relay wirelessly? I googled and found NRF24L01 transmitters ...
0
votes
1answer
233 views

Running a Java Swing GUI on start up

I'm fairly new to the world of java and the Pi so please bear with me and explain to me in great detail how to fix my problem. So as the title says, I'm trying to run a Swing GUI at start up and have ...
0
votes
0answers
75 views

JavaFX Embedded | Mouse Events registering incorrectly

I am running Java 8 SE Embedded hard float with Gluon's JavaFX Embedded SDK on a Raspberry Pi 2 using this touchscreen (which doesn't actually create touch events but instead simulates a mouse). The ...
3
votes
2answers
249 views

Can the Raspberry Pi Zero run Java 8? And on which OS image?

I'm looking to run a java 8 application on the raspberry pi zero. Which is a recommended image to use to run Java 8?
0
votes
1answer
92 views

How to run a java serial data command with arguments on start-up

I am using Raspberry Pi 2 to a telosB base station to collect data from other sensors. I receive (on the terminal) hex data and redirect these incoming data into a python script which will clean and ...
0
votes
1answer
158 views

How to execute Java command which would shutdown Raspbian Operating System?

Our team is working with Raspberry Pi running the standard Raspbian OS. All code is written in Java. We are using a Java library package (pi4j), which is able to listen to the voltage change in GPIO ...
3
votes
2answers
83 views

Trying to port an Eclipse RCP application to Raspberry Pi

I have a pre-existing Eclipse RCP application that I'd like to port to the Raspberry Pi. In Eclipse Mars (4.5), there is support for cross-platform export to multiple Linux platforms (PPC, PPC64, ...
2
votes
0answers
300 views

Pi4J and Mifare RC-522 via SPI

I am having problems with coding a program that allows me to read RFID Tags with Pi4J on my Raspberry Pi 2 Model B. I am totally new to Python and would prefer a program written in Java to save some ...
3
votes
1answer
68 views

Caused by: java.lang.RuntimeException: libname: linux-arm.lib not found

uname -a: Linux raspberrypi 4.1.6-v7+ #810 SMP PREEMPT Tue Aug 18 15:32:12 BST 2015 armv7l GNU/Linux Trying to launch application that controls RFID reader. 2016-01-07 21:42:19.593 [main] INFO ...
3
votes
2answers
134 views

Java headless or headful?

I've written a Java app with a GUI to run on the Rasp Pi. It runs OK with keyboard, mouse and display attached to the Pi. This has been fine for development, but I want to run the Pi without it ...
0
votes
1answer
239 views

JAVA: no such file or directory (libjli.so)

OK. Let me start. I am busy making a musical floppy player, connected everything up to my Raspberry Pi, and wrote a Java program to control it. I used OpenJDK 7 on Raspbian Jessie Lite. Then I took a ...
0
votes
2answers
119 views

Java native code

I'm interested is it possible to compile Java code to native code so that I can run it on some cheap board like Arduino or Raspberry pi? What compiler can you recommend?
1
vote
2answers
347 views

Java and DS18B20

I want to read temperature from DS18B20 sensors. Sensors are connected and works fine. How can I read temperature using Pi4J? Is there API for this?
1
vote
0answers
68 views

unable to launch usertest.sh

When I try to execute sudo ./usertest.sh I get the following error: Java is starting. Press Ctrl-C to exit Frame buffer device detected: BCM2708 Frame buffer '/dev/fb0' detected: 656x416, depth=...
3
votes
1answer
514 views

Java GUI app on Startup

I am building a machine using the Raspberry Pi (Raspbian). I am developing a JAVA GUI application and I want it to run at startup. Basically the machine's only purpose is to run that application, ...
1
vote
1answer
94 views

Raspberry Pi GUI

I was wondering would it be functionally acceptable to get just a terminal OS for the Raspberry Pi and make my own GUI with java. Would that be a sufficient language for making my own 'desktop' ...
4
votes
1answer
93 views

Why is my LED display code so slow?

I have a Raspberry Pi 2 and I am trying to create an led display for it from scratch. It works.. but the refresh is far to slow. My project is running very very slow averaging around 21 ms per ...
8
votes
1answer
511 views

Do all GPIO pins have a internal pull-up/pull-down resistors?

So question is: Does all Raspberrys GPIO have a internal pull-up/pull-down resistor which can be enabled from program, in my case Java language with PiJ4? I have Raspberry Model B+.
1
vote
1answer
186 views

Java Servlets and Raspberry Pi IO

I'm trying to learn how to write simple servlets to use with a Raspberry Pi. I want to control the board I/O via web.I'm using the Pi4J library which is a wrapper for the WiringPi C library.It works ...
1
vote
1answer
38 views

Nebeans + Tomcat dying constantly

I'm using Netbeans 8.0.2 with Tomcat 8.0.15 on Raspbian and run some JSP-Projects on it. The performance of Netbeans is not that great but mostly it does well... until everything crashes. I ...
3
votes
2answers
242 views

Java is crashing my Pi

I am running ScreenConnect on some Rasp Pis and the Pi eventually hangs up and then it will crash and require a reboot to allow ScreenConnect to work again. This is in the ScreenConnect logs: # # ...
1
vote
0answers
34 views

How can I derive the Oracle build number from the Rasbian JDK package?

I'm trying to report a JDK bug to Oracle. However, the Rasbian package number doesn't have the Oracle package number, and the java -version output doesn't match any of the expected build numbers. ...
1
vote
1answer
88 views

Java GPIO options other that PI4J?

What are the options other than PI4J on Java? I looking as lack of response them. I have 3 Tickets open one this Java one with Vaadin and one with PI4J trying to find out why I get a core dump. ...
3
votes
0answers
174 views

Raspberry Pi 2 and JavaFX8: Can't render small images without more GPU RAM

I'm trying to write a simple FX8 image display program on the Raspberry Pi2 without increasing the GPU memory beyond the default 64MB. I seem to get me a NullPointer Exception at com.sun.prism.impl....
0
votes
1answer
151 views

Upgrading to the Latest Java JDK on Raspberry Pi

I'm running in circles trying to figure out how the latest java JDK should be installed or upgraded to on the raspberry pi (it is currently using the original 1.8.0-b132 build). I've found the java ...
2
votes
1answer
187 views

Cannot find package openjdk-7-jre

I am trying to install JDownloader on my raspberry pi who have osmc (debian) as a OS. I am trying to install run below command sudo apt-get update sudo apt-get install openjdk-7-jre and it says ...
0
votes
0answers
89 views

Oracle Embedded suite on Raspberry pi2

I am installing oracle java embedded suite on Raspberry pi2. Raspberry pi2 is already have Java 8 Se pre installed. Now, when i go into JES(Java embedded suite) directory and run java -version, it ...