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
0
votes
1answer
36 views

Issues with linux and Jar files. Jar works in eclipse, but doesn't run in raspberry pi

I'm trying to run a .jar file made in Eclipse using JDK 11 on a raspberry pi 4. For the Raspbian OS I had to use a 64-bit version instead of a 32 bit. I put the jar into a folder together with the ...
0
votes
1answer
164 views

Minecraft 1.16.2 on Raspberry Pi 4

As of this writing, I have been attempting for some time now to get Minecraft 1.16.2 working on my Raspberry pi 4. I have been using the instructions on this guide which helped me set up Minecraft 1....
0
votes
1answer
24 views

JAVA development environment for Raspberry Pi 2 or perhaps from the command line?

Hi I'm new to Raspberry (Pi 2) and would like to know (1) if it's feasible to develop simple JAVA apps in a development environment (Eclipse? Others?) or failing that from the command line. (2) a ...
1
vote
2answers
138 views

Pi 4 performance against x86 - CI/CD server with Java/Maven

I was considering using a Raspberry Pi 4 as a cheap CI/CD server with Jenkins & Maven. Does anyone have a performance comparison of a Pi 4 against a modern Intel Core i3/i5/i7. For example, how ...
1
vote
1answer
16 views

CLASSPATH seems to be ignored by openJDK8 on RaspiOS Lite Buster

I installed openJDK8 on a Raspberry Pi 0H with RaspiOS Lite (BUSTER). I also installed wiringpi and pi4j libraries. I added the directories to CLASSPATH in the /etc/environment file and even tried ...
1
vote
1answer
23 views

Rasberry Pi 3 Pi4j does not work for digital pins other than RaspiPin.GPIO_07

I am trying to get a led working with the Raspberry Pin 3 model B+ with Raspbian. I am using Java Pi4j library this way: GpioPinDigitalOutput digitalOutputPin = GpioFactory.getInstance()....
0
votes
3answers
319 views

How to install Oracle JDK 14 on my Rasberry Pi 4B?

I'm trying to install jdk 14 on my raspbian pi 4b but all tutorials either show how to download open-jdk or how to download an old oracle jdk version. I've already tried to install the .deb file ...
1
vote
1answer
113 views

cannot execute binary file: Exec format error while running java 11.0.7-open with sdkman

I installed java 11.0.7-open using sdkman and I get this error: bash: /home/pi/.sdkman/candidates/java/11.0.7-open/bin/java: cannot execute binary file: Exec format error when running java --...
1
vote
2answers
108 views

Getting a NRF24L01 module running with Java

I'm currently trying to make a NRF24L01 module work by using Java. I found this library that makes use of the JNI, but I can't get it to work. When I try to run the provided example code the ...
0
votes
0answers
36 views

Subsonic not finding java's jaxb on fresh Raspbian Buster install

I love my Subsonic install on my Raspberry Pi 3. Just installed Buster (was running Stretch but I freshly installed Buster) and would like Subsonic back! Any help appreciated :-) In brief: fresh ...
2
votes
0answers
42 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
1answer
164 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, ...
1
vote
1answer
65 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
62 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
0answers
37 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
35 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, ...
2
votes
1answer
142 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
479 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 ...
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 ...
1
vote
2answers
133 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
111 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
101 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
1k 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
139 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 ...
3
votes
4answers
4k 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
1answer
572 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 ...
2
votes
1answer
121 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 ...
1
vote
1answer
238 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
356 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
65 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
1answer
753 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 ...
0
votes
0answers
510 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
172 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 ...
0
votes
1answer
406 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 ...
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
1answer
197 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
387 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 ...
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 ...
0
votes
0answers
43 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 ...
0
votes
1answer
59 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 ...
1
vote
1answer
70 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 ...
2
votes
0answers
246 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 ...
1
vote
2answers
392 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
36 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
1answer
375 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
80 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
459 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
78 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
2answers
6k 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
124 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; /** * ...

1
2 3 4 5