Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
5 views

I cannot compile Java code with Pi4J library - java.lang.UnsatisfiedLinkError

I tried to compile Java code on Ubuntu 18.04. I'm trying to use Remote JDK so I can compile on my local computer and then send the compiled code to my Raspberry Pi. But I having som trouble with ...
1
vote
1answer
34 views

Music Sequence, which hardware and software is best? [closed]

This question is supposed to be subjective.. well I need to ask this one way or the other... soooo: As a project I wanted to create my own music sequencer (like a drum machine or synthesiser) from ...
0
votes
0answers
12 views

Java AWT full screen window / touch screen: mouse events “fall through”

I'm having a Scala (Java) app open a javax.swing.JFrame and put it to full screen; the physical display is a 3.5" touch screen on the GPIO. I just noticed that when I click on parts of my UI where ...
0
votes
0answers
16 views

Maven Build fails on Raspberry board with VM crash

When running mvn clean install for my code on raspberry , I get below error Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] org.apache.maven.surefire.booter....
0
votes
0answers
10 views

How to do Maven build of Raspberry code on MacBook

While trying to do maven build on MacBook for Raspberry Pi 3 B+ board I am getting the following errors (I have written a simple program using pi4j library). The problem is while linking dynamic .so ...
2
votes
0answers
145 views

PI4J + Adafruit LCD with MCP23017

Got this device. Python example char_lcd_plate.py is working perfect. But I would like to manage it with Pi4J. I copied bits from python example LCD_PLATE_RS = 15 LCD_PLATE_RW ...
0
votes
0answers
20 views

How to run exported processing jar file on raspbian

I have created a processing program and exported it to a .jar file and I think the only way I will be able to run it headless is to use a virtual display, does anyone know how to create a virtual ...
1
vote
2answers
58 views

I've researched it here but I still can't get a .jar file to run at startup on a raspberry pi

I admit I'm a complete noob at this, but I've done my homework on this site and I still can't get what I want to happen. I'm trying to get a .jar file to run at startup on a rasbpian installation. Let'...
0
votes
0answers
16 views

Java Audio Clip is not stopping at right time

I wrote a program to start and stop a wav file in Java which will run on pi 3/b. The program works well in windows pc but it doesn't works good in pi (Raspbian Installed). It stops the audio clip ...
0
votes
0answers
18 views

Trouble running RPi cmd commands in Java

To test my program, I was trying to run the shutdown command. I tried using a ProcessBuilder to just run the command: ProcessBuilder builder = new ProcessBuilder("shutdown"); builder....
0
votes
1answer
40 views

Gstreamer with Java | WARNING and Failed to load plugin

I try to launch the gst1-java binder on the Raspberry Pi 3B with the latest Raspbian Stretch and latest firmware. If I launch anything with gst-launch-1.0 it work great, I have hardware ...
0
votes
0answers
26 views

Browser swt on Raspberry Pi can't play audio when click a video on youtube

Firstly, I am sorry about my bad english. I am doing a web browser on Raspberry Pi. I use Java SWT Browser Widget and this browser work fine, but it don't play audio when i click a video on youtube. ...
0
votes
1answer
99 views

JavaFX and transparency

I'm working on a project who involve JavaFX and Omxplayer. On Windows, where I develop, my code works. I set my stage to stage.initStyle(StageStyle.TRANSPARENT); stage.setOpacity(0.5); On Windows, ...
2
votes
2answers
42 views

Raspberry Pi 3 getting hot over time

So I‘m currently working on a program to turn on or off my Philips Hue lights when I enter my room. The detection if somebody is coming or which direction he is going is provided by one HCSr505 and ...
0
votes
0answers
48 views

Java application uses wrong audio output

I have a raspberry pi 3 model b+. I have paired it with a bluetooth speaker, and it plays sound correctly through that speaker. Except when my own java application tries to play an mp3 file, it sends ...
0
votes
2answers
450 views

How do I set the default maximum Java heap size? [closed]

I want to set the default Java heap size to 1024m without needing to specify the -Xmx option every time I run a jar file. Tried adding export JAVA_OPTIONS=-Xmx1024m to .bashrc file but it didn't ...
1
vote
0answers
61 views

How to get stream of data from arduino serial monitor on Apache Edgent application (Java application)?

The sample java application for reading random sensor value is given as: package org.apache.edgent.samples.topology; import java.util.Random; import org.apache.edgent.function.Supplier; /** * ...
0
votes
1answer
108 views

ReentrantLock and right way to handle IllegalMonitorStateException

I'm doing some experiments with openHAB2 to control a simple relay that is linked to my garage lights. I've created a rule for this Switch item, so the relay can switch back to the ON state after one ...
0
votes
0answers
97 views

Error when deploy spring boot application in docker

I have created an application spring boot and successfully run it with the java -jar app.jar command on a Raspberry Pi 3 model B, installed with HypriotOS. But when I run Dockerfile file to deploy ...
0
votes
1answer
70 views

Pin state change event doesn't trigger

I recently bought a PIR Motion Sensor and wrote a java program which prints in the console whenever movement is detected. I connected the pins properly, and the signal to GPIO_17 according to the BCM ...
0
votes
1answer
59 views

How can i listen to input in very precise manner of microseconds. Like piscope. Using pigpio socket interface, pigs or liberary

I want to get time and count of input pulse in microseconds using pigpio. How can i Listen to gpio pin in spreate thread.
0
votes
0answers
161 views

Java VM max memory and Apache Flink

Has anyone successfully run Apache Flink on a Pi 3? The configure file defaults to requiring 2GB of memory for the managing processes. I've set up my Pi to have 8GB of swap, and I'm well aware this ...
3
votes
1answer
322 views

PyCharm 2017.3.3 hangs

There is PyCharm, an IDE for programming Python. It's available in a Community edition for Linux as well. The problem affects (at least) version 2017.3.3. I installed it as a normal user with wget ...
1
vote
0answers
67 views

How to generate JRE fontconfig files on Arch ARM?

I'm trying to make a small Java application with UI and run it on Arch Linux ARM, but every time I try rendering a text, it crashes with the following error: Exception in thread "AWT-EventQueue-0" ...
0
votes
0answers
522 views

JavaFX error: Cannot open display and create resource

I am currently using a Raspberry Pi 3 (with the latest version of NOOBS) to run a JavaFX application. I installed all the necessary libraries for JavaFX. However when I run my applications using: ...
0
votes
0answers
104 views

Raspberry pi owncloud or nextcloud setup

I am a java developer, so, I setup the apache tomcat 8 in my raspberry pi and able to host the java web application and use it and what I want now is my own cloud storage and I have found lot of ...
0
votes
1answer
348 views

Opening jar in fullscreen in terminal [closed]

How can I open a JAR file in fullscreen? I mean that kind of fullscreen that it hides taskbar and other stuff like videogames in fullscreen mode. I remember finding a way a couple of months ago but ...
0
votes
1answer
421 views

Java program on Pi board

I am planning to start writing java program on raspberry Pi3. I found out some java IDE on Internet. I saw that NetBeans is most commonly use on raspberry Pi3. I am confuse, Do I need to install java ...
0
votes
0answers
46 views

Weird issue receiving data from Serial through Usb Converter

I'm developing a project whose main goal is collecting several data and storing it in a database. A raspberry pi is deployed within a vehicle and it's running a Java application. The goal is to ...
0
votes
0answers
194 views

java says “Error occurred during initialization of VM” when trying to run MInecraft server from terminal script

Hi I'm trying to run a Minecraft pocket edition server on my raspberry pi I have already succeeded when running it from the terminal alone but when ran from terminal script it errors stating: "Error ...
2
votes
0answers
149 views

Numpad keys don't throw KeyEvents under JavaFX on RPi3 [closed]

While programming a JavaFX application for the Raspberry Pi 3 using the official JavaFXPorts from Gluon, I encountered the following problem: Pressing the numpad keys on my keyboard doesn't give me ...
1
vote
1answer
137 views

GPIO (using sysfs problem)

I'm presently trying to use the built-in indicator lights on the Raspberry Pi B+ to provide status: Green = OK; Red = Problem After turning off the triggers (writing none to /sys/class/leds/led[0,1]...
0
votes
1answer
495 views

Disable Raspbian gui and boot straight into application

I have a jar file I am trying to run without the raspbian os. Basically just boot straight into the application. I have my commands to run the jar file in /etc/xdg/lxsession/LXDE-pi/autostart. Is ...
3
votes
0answers
566 views

Stream a camera, and get the video feed on Java

For my project, I have two USB cameras. I would like to plug them to the Raspberry Pi to stream over the internet. Also, I am developing a software in Java, and these videos streams (2) have to be ...
5
votes
5answers
7k views

Raspbian Stretch: Getting Error: missing `server' JVM at `/usr/lib/jvm/java-8-openjdk-armhf/jre/lib/arm/server/libjvm.so'

I am trying to get the arduino utilite installed to my Pi Zero, so I did sudo apt-get install arduino And it chugs away for a moment, then barfs this: pi@raspberrypi:~ $ sudo apt-get install ...
0
votes
1answer
328 views

Continuously send data between RPi and Laptop

I have seen a lot of threads about this question, but most of the threads covers only from RPi to laptop or the other way around, or just suggest to use some API's, in my case I cannot do that. I need ...
1
vote
1answer
3k views

Upgrading or installing Java 9

I need some help installing Java 9 onto the Raspberry Pi. Java 9 SE has been recently released and I have installed it on my laptop, however, I have tried to follow these instructions How to install ...
0
votes
1answer
140 views

Java ME 8 on RPi. Error: 'detect_fb_type: unknown device type'

I have a Raspberry Pi 3 and I have installed Java ME 8 on it. I want to deploy, debug and profile programs on it remotely from NetBeans on my Windows laptop, and run them on my Pi but I am getting an ...
1
vote
1answer
88 views

LineUnavailableException when loading audio clip with Java on RPi

My RPi is Zero W and using Raspbian Jessie 4.9.35 / Oracle JDK8 1.8.0_65. I'm having problem with loading audio clips on Java Program with RPi. I have two audio files named "piano_0.wav" and "piano_1....
0
votes
1answer
690 views

Controlling DC motor with PWM in Processing

I'm trying to control DC motors with L298N motor driver. I'm using Raspberry Pi 3B and java GUI called Processing. I can't find PWM libraries for software control or use hardware PWM because I need ...
1
vote
3answers
566 views

Can Java / Android development be done with a Raspberry Pi 3?

I have several questions closely related to each other. All are pertaining to a Raspberry Pi 3 running Raspbian: Is a recent Java Development Kit (i.e. Java SE 8) available? Is a recent version of ...
0
votes
0answers
94 views

Missing PWM Files For DIOZero

I'm running a Raspberry Pi Zero W with a fresh install of the latest Raspbian Jessie. I'm making a robot and I want to control its two DC Motors with PWM. I decided to use the DIOZero library, (...
0
votes
0answers
129 views

cannot play sounds on RPI3-B with java

im creating a java game library with support for raspberry, on that library I have a class that is in charge of sound effects, I created a game to test GPIO pins and sound was not working, I got an ...
0
votes
2answers
317 views

How do I switch java 8 to the default java, instead of java 7

I started getting errors on my pi from running a java program that should run on java 8, which i thought i had on my pi, so i did java -version on my pi and it turns out I have java 7 installed (java ...
2
votes
0answers
114 views

Driving a HC-SR04 requires a 10 microsecond pulse, Java does 14. Any success stories?

I'm working on Android Things on an rpi3 dev kit, with the IMHO excellent Picon Zero hat. I'm trying to trigger and read the reply from a HC-SR04, which requires a ~10 μS trigger pulse, then ...
2
votes
4answers
1k views

Latest Firefox/Chrome possibilities

I have a project that requires me to run Selenium. For this I need webdriver to interact with browsers. I have a Raspberry Pi 3 running the latest Raspbian. Currently I was only able to get Chromium ...
2
votes
0answers
54 views

Jar file running on one RPI but not another RPI

I have two RPI's, a model B+ and a Pi 3 model B. They are both running Rasbian. I have made sure they have the same Java JDK on both (1.8.0_131) but one will execute a jar file, whereas the other ...
6
votes
2answers
268 views

Pi4J kills USB bus?

Hello fellow Pi enthusiasts :) I am currently attempting to control a standard 16x2 character LCD display from the PI's GPIO pins from Java. I downloaded Pi4J and wrote a small program to initialize ...
3
votes
1answer
934 views

How can I get audio (ultrasonic Nearby API) working with Android Things?

I'm trying out Android Things on my Raspberry Pi 3, and besides a little bit of a learning curve around the adb utility, things are going well. However, it doesn't seem like audio is working at all. ...
0
votes
0answers
443 views

(Android) SSH with Raspberry Pi Zero W setup as a Wireless Access Point

I'm trying to SSH into my Raspberry Pi Zero W configured as wireless access point from my Android app. I'm able to SSH from my Mac to the Pi when connected to the Pi WAP but when attempting on the ...