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
10 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
13 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)?
0
votes
0answers
5 views

How to implement a server with J2ME [migrated]

I'm new developing midlets with Java ME, and I'm trying to do a simple server using sockets so an Android app can send commands. However, I can't get it to work, here's the code I'm using: @Override ...
1
vote
2answers
46 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 ...
-1
votes
0answers
22 views

Ultrasonic Sensor code not working

I am using an HC-SR04 as the ultrasonic sensor. I am not sure the code is correct. Have any suggestions? By the way it is two programs called PiBot.java and RangeFinder.java . Thanks for the help! ...
0
votes
0answers
16 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
9 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
35 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 ...
0
votes
1answer
134 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
21 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
123 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
30 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
47 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
81 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
39 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
66 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
133 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
35 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
83 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
165 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
63 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
190 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
74 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
106 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
68 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
250 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
60 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
114 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
210 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
114 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
296 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
62 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, ...
3
votes
1answer
410 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
93 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
89 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
460 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
148 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
37 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
205 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
32 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
78 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
159 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 ...
0
votes
1answer
136 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
170 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
88 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 ...
2
votes
0answers
120 views

interrupts gpio debounce java

My current code does not debounce the input signals from a hardware switch and as a result I get multiple input signals from a single push of the switch. Maybe I'm thinking wrong but I thought that ...
0
votes
0answers
132 views

I can't run GeoGebra on my RPi2B w/ ArchLinux

GeoGebra crashes for me under Arch Linux on my RPi2B:  mf  ~  geogebra Catched FileNotFoundException: /usr/share/geogebra/gluegen-rt-natives-linux-armv6hf.jar (Nie ma takiego pliku ani katalogu), ...
1
vote
1answer
198 views

Serial communication gives incorrect read

I have a serial device which can read and write bytes to the a java application based on inbuilt protocol. The java application in my windows PC gives me the correct output. My java application is ...
0
votes
0answers
249 views

Raspberry Pi 2 : DHT11 : Oracle Java ME Embedded

Anyone integrated DHT11 temperature sensor on Raspberry Pi2 with Oracle Java ME Embedded system? Any direction will be helpful.