Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NetBeans 12.0 LTS - Hibernate Plugin require Freemarker Integration implementation version 238

In Apache NetBeans 12.0 LTS

When I'm trying to install Hibernate plugin it says :

Some plugins require plugin Freemarker Integration to be installed

The plugin Freemarker Integration is requested in implementation version 238.
The following plugin is affected:

Hibernate

But there's on Apache NetBeans Plugin Portal Freemarker plugin is not available.

I tried installing Freemarker plugin from old plugin portal of NetBeans

FreeMarker support for NetBeans

but getting same error.

I'm using:

Debain 10.4 Buster LXQt AMD 64-bits  
openjdk 11.0.7 2020-04-14 LTS
Apache NetBeans 12.0 LTS  

I've also created issue there at Apache's JIRA issue tracker
No dependent plugins are available at Apache NetBeans plugin portal for Hibernate

But I think they will not pay attention.

like image 336
Hemlata Avatar asked Jun 19 '20 06:06

Hemlata


People also ask

Does NetBeans 12 support Java EE?

The key new feature for Gradle users in Apache NetBeans 12.0 is its support for Java EE. Currently, Apache NetBeans supports Java EE, though not yet Jakarta EE.

Is FreeMarker plugin available on Apache NetBeans plugin portal?

But there's on Apache NetBeans Plugin Portal Freemarker plugin is not available. I tried installing Freemarker plugin from old plugin portal of NetBeans but getting same error. Debain 10.4 Buster LXQt AMD 64-bits openjdk 11.0.7 2020-04-14 LTS Apache NetBeans 12.0 LTS But I think they will not pay attention.

How to install the hibernate plugin in NetBeans?

Navigate to ide/modules subfolder in apache netbeans installation directory You will find the freemarker library org-netbeans-libs-freemarker.jar, replace this with your downloaded library. Restart the netbeans (or perhaps restarting the computer should work) and you should be able to download the hibernate plugin

Which NetBeans plugin is affected by implementation version 238?

The plugin org.netbeans.libs.freemarker is requested in implementation version 238. The following plugin is affected: Hibernate You need to provide more detail on exactly how you attempted to install the Hibernate plugin. Describe the steps in sufficient detail so that others can attempt to reproduce your problem.

What license does NetBeans support for Java code formatters integration?

External (Eclipse and Google) Java Code Formatters Integration for NetBeans Apache License, Version 2.0 NB 11.0 - Verified NB 12.0 - Verified Apache License, Version 2.0


2 Answers

This causes because there is a conflict for the version of freemarker, netbeans is looking for freemarker.jar with OpenIDE-Module-Implementation-Version: 238, but in my case the OpenIDE-Module-Implementation-Version: was 239 and that was causing the issue.

You can fix this by

  1. Close your running netbeans application
  2. Download freemarker.jar with OpenIDE-Module-Implementation-Version: 238 org-netbeans-libs-freemarker-RELEASE81.jar and rename the downloaded library to org-netbeans-libs-freemarker.jar
  3. Navigate to ide/modules subfolder in apache netbeans installation directory
  4. You will find the freemarker library org-netbeans-libs-freemarker.jar, replace this with your downloaded library.
  5. Restart the netbeans(or perhaps restarting the computer should work) and you should be able to download the hibernate plugin

ps- you can check the OpenIDE-Module-Implementation-Version by opening the jar library as an archive and inside the META-INF/MANIFEST.MF file

Also refer this for more information

like image 174
Rasheek Mohamed Avatar answered Sep 20 '22 17:09

Rasheek Mohamed


This is the way.

  1. unistall netbeans.

  2. install netbeans (but not started it yet)

  3. Open: "netbeans-12.0/netbeans/ide/modules/org-netbeans-libs- freemarker.jar" with an arquive manager and go to META-INF/MANIFEST.MF

  4. change the value 239 for 238 in lines. To be like this:

    OpenIDE-Module-Implementation-Version: 238
    OpenIDE-Module-Specification-Version: 2.42.0.238

  5. close and update you change.

  6. start the netbeans for the fist time and all will go well.

like image 31
Emanuel Silva Avatar answered Sep 19 '22 17:09

Emanuel Silva