Eclipse 4.12 – java.lang.ClassNotFoundException: com.sun.xml.internal.bind.v2.ContextFactory

Sun people have remove directly access to jaxb package in java 11. These dependency will work instead of it. Same fix if you are facing hibernate NullPointerException issue. <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId> <version>2.3.0.1</version> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.1</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.1</version> </dependency> <dependency> <groupId>org.javassist</groupId> <artifactId>javassist</artifactId> <version>3.25.0-GA</version> </dependency>

Where is javax.annotation

The dependency including version: <dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.3.2</version> </dependency> See: http://mvnrepository.com/artifact/javax.annotation/javax.annotation-api Or for the newer jakarta.annotation: <dependency> <groupId>jakarta.annotation</groupId> <artifactId>jakarta.annotation-api</artifactId> <version>1.3.5</version> </dependency> See: https://mvnrepository.com/artifact/jakarta.annotation/jakarta.annotation-api The Java Common Annotations Module java.xml.ws.annotation was deprecated in Java version 9 and was removed in java version 11. If this leads to a problem you could try to add javax.annotation. The … Read more

How can I run a subprocess in Equinox with dynamic bundle installation?

you can use the Equinox Launcher API. Here’s an example of how you can use the Equinox Launcher api to launch a new instance of equinox with a set of bundles: ` EquinoxLauncher launcher = new EquinoxLauncher(); String equinoxHome = “/path/to/equinox/home”; String[] bundlePaths = { “/path/to/bundle1.jar”, “/path/to/bundle2.jar” }; EquinoxRunConfiguration runConfig = launcher.newConfiguration(); runConfig.setWorkingDir(new File(equinoxHome)); runConfig.setFramework(new … Read more

Eclipse RCP plugin + embedded Jetty + JSF

Take a look at setting a context in jetty. You can define it before start your server. public class OneWebApp { public static void main(String[] args) throws Exception { String jetty_home = System.getProperty(“jetty.home”,”..”); Server server = new Server(8080); WebAppContext webapp = new WebAppContext(); webapp.setContextPath(“https://stackoverflow.com/”); webapp.setWar(jetty_home+”/webapps/test.war”); server.setHandler(webapp); server.start(); server.join(); } }

How to use IntelliJ IDEA for Eclipse plugin development?

It should be possible by using Eclipse Tycho. You’ll be using maven and that works perfectly with IntellIj. Tycho is focused on a Maven-centric, manifest-first approach to building Eclipse plug-ins, features, update sites, RCP applications and OSGi bundles. Tycho is a set of Maven plugins and extensions for building Eclipse plugins and OSGi bundles with … Read more

Where does Eclipse store preferences?

Source : Eclipse wiki If you want to keep preferences from one version to the other, export them using File/Export/Preferences. Preferences are stored in various places (this applies to Eclipse 3.1) for each installation (but this may vary for multi-user installations), in files stored in: <eclipse_home>/eclipse/configuration/.settings/ There is typically one file per plugin, with a … Read more

How can I add a key binding for a quickMenu similar to the “Refactor” context menu in JDT?

You can also do it like this: Add a command for the quick menu and set a default handler. <command defaultHandler=”myplugin.refactoring.QuickmenuHandler” id=”myplugin.refactoring.quickMenu” name=”Show Refactor Quick Menu”> </command> The handler should be able to create the menu. Something like this: @Override public Object execute(ExecutionEvent event) throws ExecutionException { … Menu menu = new Menu(some parent); new … Read more

What does $NON-NLS-1$ mean?

They silence a warning that Eclipse emits when it encounters string literals (and has been configured to complain). The idea is that UI messages should not be embedded as string literals, but rather sourced from a resource file (so that they can be translated, proofed, etc). Consequently, Eclipse can be configured to detect string literals, … Read more