Reputation: 377
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.
Upvotes: 13
Views: 19954
Reputation: 336
I had the same issue with NetBeans version 16 and solved it by installing freemaker.jar
module which replaced the default module that comes with NetBeans.
Please try the following
step 1: Download freemaker modules from the following link:
https://drive.google.com/file/d/1AySqHHh73y1SDXU9H0wqGtu4VqMWYfRi/view?usp=sharing
step 2: Close all NetBeans running applications and copy the downloaded module and go to the NetBeans installation directory as follows:
C:\Program Files\NetBeans-16\netbeans\ide\modules
first delete the org-netbeans-libs-freemar.jar
and paste the downloaded module to replace org-netbeans-libs-freemar.jar
that comes with NetBeans ( I mean the one you deleted)
Start NetBeans and go to Tools > Plugins >Available Plugins
then scroll until you see Hibernate
This is my screenshot of my installation on windows 10
Upvotes: 0
Reputation: 1154
The hibernate plugin was not anything important. I was trying to install that one, but because of the above error, Netbeans
did not load, and on top of it, the CentOS-8-Stream came to logged-out.
So, I remove the hibernate instances.
cd ~/.netbeans/13/
grep -r "hibernate"
Resolution: Removal of the faulty plugins
Removed the JAR
s from /home/jacobd/netbeans-13/netbeans/java/modules/locale/
Removed the XML
s from /home/jacobd/netbeans-13/netbeans/java/config/Modules
name matching hibernate, two xml will be here.
Upvotes: 1
Reputation: 216
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
org-netbeans-libs-freemarker.jar
org-netbeans-libs-freemarker.jar
, replace this with your downloaded library.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
Upvotes: 10
Reputation: 19
This is the way.
unistall netbeans.
install netbeans (but not started it yet)
Open: "netbeans-12.0/netbeans/ide/modules/org-netbeans-libs- freemarker.jar" with an arquive manager and go to META-INF/MANIFEST.MF
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
close and update you change.
start the netbeans for the fist time and all will go well.
Upvotes: 1