We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0answers
10 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
0answers
23 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 ...
1
vote
1answer
387 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 ...
-1
votes
1answer
90 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
50 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
87 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
88 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 ...
1
vote
0answers
127 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
38 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
323 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
243 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
88 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
215 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
755 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
113 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 ...
2
votes
0answers
173 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
19 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
28 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
46 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
64 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
213 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
268 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
32 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
226 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
71 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
346 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
56 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
4k 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
116 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
719 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
2answers
258 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
87 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.
4
votes
1answer
885 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
166 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
1answer
831 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
756 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 ...
2
votes
0answers
311 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
336 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
783 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 ...
2
votes
0answers
869 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 ...
6
votes
5answers
11k 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
568 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
4k 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
193 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
251 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
909 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
1k 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
188 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
849 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
173 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 ...