Skip to content

Tag: eclipse

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 …

Eclipse — Add Space After Square Bracket (Formatter)

What I am looking for is very similar to what can be found here: Eclipse: Adding Spaces to Parentheses However, I also need to do this for square brackets. For example: Thank you in advance. Answer It can be done as in the referenced answer but on Whitespace -> Arrays section. Remember to work on a copy of…

How to setup web url for JavaFX documentation?

I’m trying to use Eclipse 2021-06 (4.20.0) with an OpenJDK implementation by BellSoft, Liberica JDK 16, that has JavaFX included out of the box. So far, everything goes OK except one rather unpleasant flaw. From Eclipse Java Editor, JavaFX documentation doesn’t open in the browser. When I click th…