Best practice basic Object Oriented Code Java

I am a beginner programmer trying to learn how to better organize my code. I simplified my program here to show my question. Essentially the concept is this, Class 1 holds an HashMap of locations. Class 2 is an object which has a Location. Class 1 is telling Class 2 to do an action. Class … Continue reading “Best practice basic Object Oriented Code Java”

JDK 8 (Zulu) – “Error: Could not find or load main class” – Executable JAR

Cheers! I’m currently “migrating” from Oracle JDK 8 (completely uninstalled) to Azul Zulu JDK 8 with JFX (zulu8.40.0.25-ca-fx-jdk8.0.222-win_x64). I’ve set up the Path & JAVA_HOME variable, working with Eclipse and running my program works fine there. Now, when I’m trying to use my with Eclipse already created Executable JAR (or even if I’m creating a … Continue reading “JDK 8 (Zulu) – “Error: Could not find or load main class” – Executable JAR”

Javafx – Two KeyFrames operating at different speeds – determine intersection

I have two Key Frames operating at different speeds. One oscillates a rectangle vertically. The other oscillates a rectangle horizontally. When the rectangles first intersect I want to slow the vertical oscillate and print a time stamp. The program works. How do I determine intersection of rectangles? The ultimate goal is self regulating oscillation. package … Continue reading “Javafx – Two KeyFrames operating at different speeds – determine intersection”

Cannot start jbpm on http://localhost:8080/business-central

I am a student trying to learn jbpm. Teacher wont help me, so this is my only hope. I have installed java 13. Server starts, but with some errors. after i type “http://localhost:8080/business-central” i get a error 404. Here is only the error (last) part of the log since the whole thing has more than … Continue reading “Cannot start jbpm on http://localhost:8080/business-central”

usbdeviceconnection bulktransfer is negative 1 for second time data transfer

I am working on an application which needs data communication between Android phone and Camera. Android phone and camera connected via usb. I can read and write data first time with bulkTransfer(),but cannot read or write next time. I am getting negative 1 when I try to send data second time. I also tried with … Continue reading “usbdeviceconnection bulktransfer is negative 1 for second time data transfer”