Skip to content

Tag: java

Intellij cannot see the path /usr/share/java

I’m trying to set up the mysql-connector to work with intellij on my Pop OS. I know it is located on /usr/share/java but when I go in “Select Library Files” to search for it, the ide cannot find this path. Any suggestions? Answer Snap/flatpack packaging systems are limiting IDE access to cer…

2d double array to image

I’m currently working on a simulation with continuous agents, which leave a pheromone trail on a 2d double array. The pheromone trails need to be on a 2d array because of a diffusion with a mean filter that needs to be performed. Ultimately, I need to visualise the agents and the pheromone trails, by tr…

JavaFX .JAR file won’t run on ubuntu 20.04 from terminal

I’m trying to build my javafx program into a .jar file. The program runs fine when i’m running it from intelliJ but won’t run from .jar file. I’m using intelliJ with java11 and javafx version 11. I followed all the instructions correctly to build the project into a .jar file but when i…

the declared package does not match the expected package

I have imported a maven project from git. As the sources were not seen I add the src directories as sources. Maven compiles correctly. But In Eclipse I have the error. Tthe declared package com.mypackage does not match the expected package src.main.java.com.mypackage I have another error when updating import …