Questions tagged [java]

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.

Filter by
Sorted by
Tagged with
1
vote
1answer
68 views

JavaFX application does not accept touch inputs

I am trying to run a javaFX application on a raspberry pi 3b+ with a 7" 1024x600 touchscreen by Lebula. When I plug a mouse in, the application works as normal, but, when I try to use the touchscreen, ...
2
votes
0answers
25 views

Slow Serialcommunication between Raspberry Pi and Ardunio Mega

I'm in the process of tinkering with something, and for that I need an Arduino to collect measurement data, and a PI to process it all and send it on. My problem is that the connection between my Pi ...
1
vote
2answers
71 views

How to run Minecraft 1.12.2 on the latest release of raspbian

I have tried the regular method to installing minecraft 1.12.2, that didn't find ./runOptifine1_12_2.sh: 52: ./runOptifine1_12_2.sh: /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java: not found ...
1
vote
1answer
59 views

Controlling Raspberry PI zero device over the internet

I have five Raspberry Pi zero W devices and each device connected to 4 channel relay module. These five devices are in different locations and connected to the internet. We wrote a python program to ...
0
votes
0answers
47 views

Running a java program on Raspberry Pi

I want to use my pi as a navigation and weather station on my boat. One of the programs I need is JWX.jar. When I try to execute it, I type "java -jar JWX.jar", wich works flawlesly in Linux Mint and ...
1
vote
1answer
311 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=...
1
vote
0answers
21 views

RangeError: index out of range error

I run Noble on the Raspberry Pi 3 (with Bluetooth) and i receive RSSI values from the nearby beacons that i have. However, if noble is ran the whole times i occasionally get the following error. ...
1
vote
0answers
26 views

Most compatible Java on Raspbian

I have run my .jar code on Raspberry Pi 3B - Raspbian Buster with Oracle Java 8 (1.8.0_241). The code will completely run after ~80 seconds. It's read that some java versions/models (like openJdk, ...
0
votes
1answer
5k views

JAVA_HOME not working

I can't set up JAVA_HOME. Before you dismiss this as a noob's question who can't figure out how to Google things let me explain my situation. I bought RaspberryPi and installed Raspbian onto an SD ...
2
votes
1answer
264 views

Fast pictures with PiCam and Java

I was already searching through forums and this stack exchange but I couldn't find anything that helps. So here is my problem. I have written a program in Java that analyzes pictures and outputs ...
2
votes
1answer
50 views

Processing cannot load GStreamer

I'm trying to play a video on Processing 3.5.3 with the GLvideo library, but I am getting an error message that Processing cannot load GStreamer. import gohai.glvideo.*; GLMovie video; boolean ...
2
votes
2answers
262 views

LibreOffice Base in Raspbian Buster image will not find openJDK v 11's JRE

2-8-2020: While attempting to explore Libreoffice Base on the pi4B 4GB running: pi@raspberrypi:~ $ uname -a Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux I ...
3
votes
1answer
148 views

A java jar file runs fine if run from console but generates exception if run at startup

I wrote a JavaFX program which also utilizes JSON. When run at startup, the try catch around the JSON parsing piece of the code throws an exception. I can't see the exception printed in the console ...
1
vote
1answer
302 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....
1
vote
0answers
26 views

Send data from PC to RPi although theyre not in the same LAN

i'm planning a school project that should represent a two-factor authentication. I already made a user interface to type in information to log in like email address and password. My plan was to ...
6
votes
4answers
9k views

Running the PC version of Minecraft on a Pi

In my never ending quest to try and get a Raspberry Pi to run the full PC version of Minecraft, I think I came across something that could help. I nearly have the program booting up on its own. I'm ...
5
votes
2answers
345 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 ...
1
vote
1answer
377 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]...
1
vote
1answer
64 views

Java IDEs won't open on my pi. How do I get them to open?

Of the preinstalled programming tools on raspbian all of them work except for the java IDEs(bluej and greenfoot). I've scoured the internet but have found nothing. really need to code in java for a ...
2
votes
1answer
56 views

Running videos on JavaFX in Raspberry Pi Zero

I am trying to run a program which shows a simple video through mediaView and then shows a QR code that is associated with a string that the program generates on javaFX in a Raspberry Pi Zero. I have ...
0
votes
2answers
827 views

How to install Java 12

I am trying to install java 12 on my pi. I can only use the terminal. Any Ideas what I have to do? it seems that java 12 isnt in the Repositorys. Thank you in advance
0
votes
1answer
597 views

How can I install java on a raspberry pi running kali linux

I am trying out kali Linux on my raspberry pi for the first time, and I am trying to install java, as I use it a lot on my pi. I didn’t want to give this up because of my new os. However, when I try ...
2
votes
1answer
3k views

RaspberryPi MOSI/MISO on java with PI4J

Sorry for my English, but I will try :) I need help with working with RFID reader RC522 (like this). I connected it to Pi with help of this manual, but I cant write right code on Java and Pi4J, which ...
3
votes
3answers
2k views

Unable to run JAVA on Raspberry PI Zero? “VM is only supported on ARMv7+ VFP”

I am using Raspberry PI Zero W. I installed java 1.8 and 1.9 jdk's. Installation is successfully done. When i run the JAVA command on the RPi. Its shows error like: "Error occurred during ...
0
votes
0answers
45 views

Raspberry Pi Cam Stream to Android (Very Low Latency)

I've been looking for a way to get Pi Cam video streaming into an Android device and all Android Source code I found is very high latency. The only one I found was the ShawnBaker´s RPiCameraViewer ...
41
votes
7answers
158k views

How to install the Java JDK on Raspberry Pi

I am an experienced Java programmer who received the Raspberry Pi for Christmas. Unfortunately, it appears that only Python is installed in it. What command do I type at the start command line where I ...
3
votes
4answers
3k views

Does Raspberry Pi runs Minecraft and Netbeans 7.2?

I have a computer with 512MB of RAM Memory, CPU Intel Celeron 1.60GHz and a 80GB HD. After the new Minecraft update to 1.3.X, Minecraft don't run on my computer any more even on Windows XP and Lubuntu ...
-1
votes
1answer
292 views

Installing interactive brokers IB gateway on raspy 3B+

I found some posts that walk you through the installation but they are very old and don’t work anymore. I tried to install the oracle java for Arm Linux and then modify the IB installation script to ...
0
votes
2answers
310 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 ...
2
votes
1answer
86 views

Trying to understand where to start with Rasbperry PI, Java and Jazelle

My project in class is requiring me to get an audio player to work with Rasbperry, Java and Arm Jazelle technology. I've been reading here and there trying to understand what Jazelle is and how to use ...
19
votes
4answers
71k 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 ...
1
vote
1answer
156 views

Cannot execute or open .jar files

hi have tried executing a .jar file using java -jar jarfilename.jar but it just returns: Error occurred during initialization of VM Server VM is only supported on ARMv7+ VFP and it returns the ...
1
vote
0answers
116 views

install eclipse luna on raspberry pi 3

I'm new here and I want to ask if there is any way to install eclipse luna or higher on raspberry pi. I'm using Rasbian and the already installed Eclipse (3.8) sudo apt install eclipse doesn't ...
0
votes
1answer
316 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 ...
1
vote
0answers
256 views

JSch / Java SDK 1.8 - getting Auth Fail from working key file

I'm having an issue with JSch using the ARM variant of Java 8. Using SSH works fine with the key: pi@raspberrypi:~ $ ssh -i .ssh/Pi2Desktop2 -p 22 astump@192.168.1.2 Welcome to Ubuntu 18.04.2 LTS (...
2
votes
2answers
49 views

How do I make a Java application I made run as a deamon?

I have a Java Application is going to be my Discord Server's bot. How do I make this application run as a daemon on a Raspberry Pi, it uses the latest version of Raspbian and the Java application ...
0
votes
0answers
374 views

Using Java JNA and native library on Raspberry Pi

I am trying to use JNA on raspbian. I have installed libjna-java sudo apt-get install libjna-java When I run my java application I get an "java.lang.UnsatisfiedLinkError" for libjnidispatch.so. This ...
1
vote
0answers
147 views

JavaFX missing class JFXPanel

So I have an OpenJDK 8 installed on Raspbian Stretch; it crashes all the time. I then manually installed Oracle JDK 8u201 ; my app runs fine now no crashes. It misses JavaFX, though. I installed ...
2
votes
0answers
3k views

Simplest way to grab camera images from Java

I want to write a software that runs on the JVM (in Scala but you can think Java). I am looking for the simplest way to capture images from the standard camera module (v2). I find the raspstill quite ...
0
votes
1answer
354 views

Python script unable to receive input from Java

I am quite aware that this might be more of a Java/Python problem but it's on the RasPi and I also don't know if Java or Python is the problem. So here is the situation: I have a python script ...
0
votes
1answer
157 views

Java error javax.net.ssl.SSLHandshakeException: when trying to read from webpage

I am using java to read from a webpage using this code: import java.net.*; import java.io.*; public class URLReader { public static void main(String[] args) throws Exception { URL oracle = new ...
3
votes
1answer
1k views

Java 11 not working

I want to start experimenting with Java on a PI, following this guide http://docs.gluonhq.com/embedded/#_setting_up_the_raspberry_pi and started with PI ARMv6 rev 7 (v61) Kernel Linux 4.14.79+ ...
0
votes
0answers
22 views

How can I gain internet access after a valid login? [duplicate]

I set up my iptables on my raspberry pi to redirect ALL traffic to localhost where my landing page is hosted, so that people on my AP can't access internet without logging in(correctly) first. On the ...
2
votes
1answer
994 views

I2C LCD with LCM1602 module

I bought this LCD: https://www.sunfounder.com/i2clcd.html And I want to use it under Java program, for example with pi4j framework. Being I2C restricts a lot the examples I found and in that world, ...
0
votes
0answers
35 views

BTS7960 pwm values

I have a BTS7960 h-bridge and I am trying to make a motor to move forward and backward using pwm values. I am using the pi4j library to control the pins. The pins L_EN and R_EN are initialized as ...
2
votes
0answers
4k views

HTML Button onclick function()

I would like to seek help on my Web Control Interface - LED On and OFF button REST API. I just started node.js two weeks ago and manage to created a basic REST API. It manage to display mySQL database ...
2
votes
2answers
698 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
1answer
58 views

My Raspberry Pi B+ has the Ri 2 B pinmap

I trying out different java programs for my RPi B+ V1.2 and as far I have only tried to blink with a lamp for a few seconds. It works. Now I want to try to blink with a lamp by using a button. In ...
3
votes
2answers
384 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 ...
3
votes
1answer
1k views

java aggressive heap floating point exception

Hello I have been recently experimenting with kali linux 2.0 on my raspberry pi 3 . When I try running armitage I get the following error message Floating point exception When I looked into the ...

1
2 3 4 5