Is it possible to install Hibernate Plugin in Apache NetBeans 14? The trick with swaping 238 freemarker.jar file doesn't work in this particular NB version. I followed instructions for Apache NetBeans 12x [https://issues.apache.org/jira/browse/NETBEANS-4468] and I even saw Hibernate featues in New File wizard, but NetBeans was bugged. Every project or file I created wasn't appear in Project tree, instead i had to close and reopen appliacation to actually see changes. Later i couldn't even create anything inside NB... The same is true while using plugin download manager. Any tips? Or should i just go back to NetBeans 8.2 where everything works like a charm?
Related
I am getting below error while installing Findbugs into Netbeans 8.2:
"There were some problems while storing Establishing a connection …
Cause: Cannot resolve external reference to m2:/org:ow2:asm:asm-debug-all:5.0.2:jar"
I have tried uninstalling NetBeans 8.2 and removing anything associated with the installation to get a fresh install with no success there, and I have tried the latest version of NetBeans 11.3 which I found does not have Findbugs available. I need the plugin for a school project and no one there has been able to help me with this issue either. Any help would be greatly appreciated.
I am using a Windows 10 PC.
Thank you.
The reason of the error
The error happens because when you download the plugin, NetBeans also tries to download additional dependencies. The links where to download the jars from are written inside the nbm package.
For example, one of the dependencies is asm-debug-all-5.0.2.jar, and the link is:
http://repo1.maven.org/maven2/org/ow2/asm/asm-debug-all/5.0.2/asm-debug-all-5.0.2.jar.
The maven repository is no longer accessible using the HTTP link. You can read more about it here.
So basically, you could not install the plugin because the plugin is outdated and contains invalid links for downloading dependencies from maven repo.
Before solving the issue, consider using SpotBug instead because the FindBug is outdated and is no longer actively maintained, for more information, please, see here in another answer. Also, keep in mind that it works only with JDK8.
How to solve it?
To solve the issue, you need to fiddle around a bit with plugins.
You need two plugins FindBug Libs (org-netbeans-libs-findbugs.nbm) and FindBug Integration (org-netbeans-modules-findbugs.nbm). Download them using thees links:
https://updates.netbeans.org/netbeans/updates/8.2/uc/final/certified/82/extra/org-netbeans-modules-findbugs.nbm
https://updates.netbeans.org/netbeans/updates/8.2/uc/final/certified/82/extra/org-netbeans-libs-findbugs.nbm
Unzip org-netbeans-libs-findbugs.nbm manually as if it is a simple zip file.
Edit the files in org-netbeans-libs-findbugs\netbeans\modules\ext extracted folder. In every file, you need to change the link from http to https.
Edit manifest file org-netbeans-libs-findbugs\META-INF\MANIFEST.MF. You need to remove all lines that contain CRS checksum. After editing it should contains only these lines:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.2
Created-By: 1.8.0_45-b14 (Oracle Corporation)
Remover other two files in org-netbeans-libs-findbugs\META-INF (ORACLE_C.RSA and ORACLE_C.SF).
Zip it again.
After that, the file is ready for manually installing into Net Beans. Alternatively, you can download the file from here. I have already modified the plugin using the steps.
How to install and use it?
Got to Windows -> Plugins -> Downloaded -> Add Plugins
Manually add the modified org-netbeans-libs-findbugs.nbm file and click install.
Then add org-netbeans-modules-findbugs.nbm and click install.
When installing, it shows that it downloads the plugin, but actually, it downloads only dependencies. It can take some time.
After that, select your project in the project tree, make sure it was compiled before. Got to Source -> Inspect, choose FindBus in the Configuration.
After you click to inspect your report will be ready.
It works both on NetBeans 11.3 and 8.2. Make sure you are using JDK8 with NetBeans. I'm not sure it will work with the newest versions of JDK.
Here is an example with running it on 11.3 using JDK8 on some NetBeans module:
A week ago I upgraded my Java IDE to Netbeans 12 (and JDK 14), and only yesterday I noticed the window Project Properties (MYPROG) lacks of essential functionality i.e. there are not lines for compiling in *.jar, and mostly there is not any line for adding *.jar libraries, there is instead an empty line for JavaScript libraries, and it is impossible to add them in any other point.
The real oddity of NetBeans 12 is that it works perfectly even with old projects made with NetBeans 8 and JDK6! but reinstalling previous NetBeans 10 still remaisn a trouble.
I'm stuck making new projects that need libraries.
Minor problems are: System.err.println doesn't write in red colour, the path src/mycode has become src/main/java/mycode, why? and perhaps many others.
My attempts are over.
I've installed
OS: Window 10
jdk-14_window-x64_bin.exe
Apache NetBeans 12 LTS
Binaries: netbeans-12.0-bin.zip (SHA-512, PGP ASC) 1st try
Installers: Apache-NetBeans-12.0-bin-windows-x64.exe (SHA-512, PGP ASC) 2nd try.
It's a Java project using Maven
I don't know Gradle and Ant (what are they for?)
Project Properties (MYPROG)-->Build has only Compile without Compiling, Packaging, Deployment, Documenting
Project Properties (MYPROG)--> Libraries does not exist
instead: JavaScript libraries (empty)
When you are using Maven, the Project properties do not have a Libraries section, because the libraries are managed through Maven (and not NetBeans).
You manage the needed libraries through the "Dependencies" node of the project or by editing pom.xml directly:
But this has been the case since NetBeans started supporting Maven (so probably 8.0 or something along those lines). If you had a "Libraries" section in the project properties before, you were using an Ant based project.
path src/mycode has become src/main/java/mycode, why?
Because src/main/java is the default directory layout Maven uses.
If you recreate the project as Ant project, you will have the option to import library in the project properties.
Netbeans Java project with Ant
I am new to NetBeans and I can't create a "Java Application" project, like shown in all tutorials. I can only create a Java Free-Form Project, but this requires a build script, which I don't have either.
Do I have to download a plugin for it and if so which plugin? Or did I download the wrong NetBeans version?
I am using ubuntu version 15 and NetBeans IDE 8.1.
http://imgur.com/90AeiDG screenshot.
Just make sure you have JDK installed on your system. (I am pretty sure, it would be as Netbeans doesn't install if JDK is not found on your machine, but just to be sure about it). Also, You might have missed to select Java in Select Languages during installation.
To activate a feature manually:
Open the Tools > Plugins menu
Go to the Installed tab.
Select and activate the feature you need.
Return to the New Project dialog.
Visit this link for more help:
http://wiki.netbeans.org/FaqMissingProjectCategories
Found the plugin:
It was in the the "Ant" or the "Ant 1.9.4. Documentation 1.9.4" or Mobility plugin. I downloaded those 3 at the same time, but If I have to guess it was the Mobility plugin.
Not sure if this will help you. I've been working on Windows. I have Netbeans 8.1 and JDK 8 (version 1.8.0.73). When I first started with Netbeans and tried to create my first new Project it opened the New Project window with the Categories portion of the new Project screen focused on the Samples section. I also thought I couldn't create the type of project I wanted to create. If this is what is happening to you, see if you can scroll up in the Categories box. If you can, you should find Java at the top. If you click that, you should then be able to select Java Application in the Projects part of the window.
I reinstall my Eclipse environment every year when the new version is released. The most recent release - Juno - however, does not work as expected.
Currently, when I try running demos from Oracle, for example, it asks me to select an Ant file to run before compiling. After creating a blank Ant file to bypass the requirement (which I thought was rather dumb, since I don't think TDD is something that should be forced on people), it still refused to run, saying the "Selection could not be launched."
I understand that Juno is an update from the 3.x track to the 4.x track, but this seems a little ridiculous to me. What can or should I do so I can get Eclipse back up and running again?
Just to clarify:
All files in question are on my Eclipse workspace path
I don't do much in the way of Java development, though I know I'll need to do so soon. Hence, my unfamiliarity with the most recent version of Eclipse.
I would like to run my files & projects without Ant files. I know it has something to do with Run configs, but I don't know how to change them.
Here's what I did to run the demo from Eclipse Juno:
Downloaded the project from http://docs.oracle.com/javase/tutorial/uiswing/examples/zipfiles/components-FrameDemoProject.zip (if this is not the correct demo, then please provide the link you're using)
Unzipped it to my projects directory (not my workspace), so that you have:
PROJECTS_DIR/components-FrameDemoProject/src
PROJECTS_DIR/components-FrameDemoProject/nbproject
PROJECTS_DIR/components-FrameDemoProject/build.xml
From Eclipse, File > New > Java Project
List item Uncheck Use default location and navigate to <PROJECTS_DIR>/components-FrameDemoProject
Hit Finish
Drill down to src/components/FrameDemo.java
Right-click on FrameDemo.java and select Run As > Java Application
Let me know if any of these steps give you trouble.
Take a look at you project properties and select the Builders entry. Do you see an Ant Builder entry? Try to select or create a Java Builder entry instead.
I just created a new Java Project in Juno and added the FrameDemo.java source. In my case, the Java Builder was selected as the default for this new project.
Yesterday I updated NetBeans from 7.0 to 7.0.1 and it made me lose all my projects. They're still physically there on my hard drive, but NetBeans does not recognise them as Projects.
The anoying thing about this mostly is that they are all PHP projects that use a remote FTP connection, So simply putting them back in is not an option, I'll have to add a new project, setup the FTP connection and to complete the wizard NetBeans needs to download all the external resources that takes up about 1.5 hours for each project...
Luckily I still found an installed NetBeans 7 Beta 2 somewhere that still had the projects in it. So I'll be using that one for now, but I'd really like to see my old projects working again on the last version of NetBeans.
Can anyone help me with putting my old projects into my new NetBeans 7.0.1?
you can use the import option in netbeans to recover them. just point the new net beans to the projects you want recovered.