NetBeans plugin fails if nb-javac installed - netbeans

Using NetBeans 11.1 with Java 11 on Linux (haven't tried on other platforms).
If I install the 'nb-javac' plugin, as recommended by the IDE notifications, the CodenameOne plugin module fails to load and therefore CodenameOne features are unavailable.
Any suggestions or workarounds?

I am using Windows 10, NetBeans 12 and had the same problem.
I solved it by removing
org-netbeans-modules-nbjavac.jar
org-netbeans-modules-nbjavac-api.jar
org-netbeans-modules-nbjavac-impl.jar
files from directory C:\Users[USERNAME]\AppData\Roaming\NetBeans\12.0\modules.
After staring NB, it notifies that some modules are missing. You can click the link to install the lastest version. It worked for me.
I hope this will help someone.

I had a similar problem with Netbeans 12.0 on Windows. I installed the nb-javac plugin as suggested in the notifications, and then immediately after was unable to run my application. I use Java FX and Netbeans said it couldn't find the javafx.controls module. Deleting the three files from C:\Users[USERNAME]\AppData\Roaming\NetBeans\12.1\module worked for me too.

Related

Problems creating a project with CodenameOne in Netbeans

Install Netbeans 12.6 on a Windows 10 machine. I was able to install the CodenameOne plugin with no problem. When creating a project I get the following error message:
Cannot invoke "org.openide.filesystems.FileObject.getFileObject(String)" because "folder" is null
I've been surfing the internet and can't find a way to fix it.
Thank you for your support.
This approach is no longer supported. The plugin is only used for legacy applications and no longer works in newer IDEs due to breaking changes in almost all IDEs.
Starting with Codename One 7.x we moved to maven projects which don't require the plugin and can be created in https://start.codenameone.com/
I have followed the instructions in the manual and it mentions as important:
"Before opening the project in NetBeans, you need to copy the contents of the tools/netbeans directory into the root project directory. These files are required by NetBeans to build, run, and debug the project correctly. "
But I can't find this folder in netbeans version 12.6.

Auto save plugin for netbeans 8.2

Is there plugin for auto save feature in netbeans 8.2? I find it from IDE's plugins list but can't find it.
For netbeans 8.1 was a plugin in IDE's plugins list. It was not tested/verified for netbeans 8.2.
I download it(http://plugins.netbeans.org/plugin/63714/autosavemodified) manually and install it by IDE's plugin`s download section. It works well for me in Ubuntu 16.04!
Since you have not quite clarified your question, I assume you're referring to this Netbeans plug-in.
If so, this plugin is not marked as compatible with Netbeans 8.2, that's why you can't find it in the plug-ins list in Netbeans itself.
From my experience, it is possible to manually download and install it in Netbeans 8.1 (even if marked as compatible only with Netbeans 8.0 and lower), but it does not seem to work anymore with Netbeans 8.2 at all and it will work with Netbeans 8.2 also.
Edit:
It was not showing as installed at first, and I could not get it to install when I tried, probably because it was already installed when I imported the 8.1 profile in 8.2 (some non-descript error popped up), but after a while I found it to be working. Not sure what exactly happened... a machine reboot, Java update, another thing?
Anyway, I just wanted to confirm that it seems to work with Netbeans 8.2 without any issues.

Eclipse without plugins for windows

I am using eclipse 3.8.1 right now on Xubuntu and there were no problems until now. But 2 days ago some friends and me started a project together, they are using Windows 7 and Windows 8 (x64). When I installed eclipse in Xubuntu, it didnt have any plugins and features installed but I couldnt find any eclipse version for windows that has no plugins pre-installed.
Does anyone know how to do that?
Thanks a lot for every idea! :)
I know I'm three years late but: you can download it from here: http://download.eclipse.org/eclipse/downloads/index.html. There you can find 'clean' builds of Eclipse, which do not ship with common development tools.
If you do an apt-get install eclipse, it gets installed in a read-only directory; each user that runs Eclipse gets their own directory with the plugins he/she installs afterwards from within Eclipse.
On both Windows and Linux, you can just download a zip file of Eclipse, unzip it somewhere, and then run it directly. This is also the way to run different versions of Eclipse, and there is just one place for each version to store plugins: within its own directory.

Java Eclipse SWT OSX bug

So I researched a lot about this problem and haven't found anything useful for me yet.
It is mainly about this bug with:
[Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Which seems to be related to a bug Eclipse know themselves.
I have tried running Eclipse Indigo, Eclipse 4.2.1 and Eclipse 4.3 with the same result. I tried starting the Eclipse on the second thread as suggested by somewhere "-XStartThreadSecond"<--- something like that, but Eclipse dont recognize that anymore it seems. So maybe someone found a solution to this after so long time?
I am running OSX Mountain Lion, JRE 6, above Eclipse's and I also tried making JRE 7 work in my Eclipse, but the JRE 7 VM dont exist in the folder it should be(I Haven't installed anywhere else).
EDIT:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=212617
http://www.eclipse.org/forums/index.php/m/809088/
I had the same problem when I was using JFreeChart, however none of the solutions worked. Every time I tried to run java application that created a JFrame it crashed on a Mac.
However, I had realized that I have had included all libraries that came with JFreeChart in the Project build path. If you have the same problem, check your library under:
Project -> Properties -> Java Build Path -> Libraries
All you need are: jcommon-1.0.17.jar, and jfreechart-1.014.jar
If you are not using JFreeChart, still check your build path if you are using some conflicting libraries.
Cheers!
I had the same problem using JFreeChart with Eclipse on OSX. It seems adding only jcommon-1.0.17.jar and jfreechart-1.014.jar into your JAR reference path instead of the whole list of libraries is the solution.
Thanks

Pydev missing after upgrading Eclipse on FreeBSD

I recently updated my ports on my FreeBSD 9.0 release machine and I think eclipse was upgraded due to a port upstream forced Eclipse to be rebuilt. Now Pydev is gone. I tried uninstalling then reinstalling Eclipse, then installing Pydev using pydev.org/updates inside Eclipse. It appears to install ok but I can't create a Pydev project or use the Pydev view. I tried removing my ~/.eclipse folder to force the creation of a new one, and reinstalling Eclipse and Pydev to no avail. What am I doing wrong? I'm running Eclipse Indigo version 3.7.1 build id: R3_7_1
This question was most similar to mine, but the solution didn't work for me. I also tried pointing my install site as: http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml per another question on StackOverflow, to no avail.
After some more testing I finally got the newest FreeBSD port to work. I had to launch and install the plugins as root. It didn't work another time I ran it but, this great troubleshooting document helped out. I methodically went through each step one by one, and the logs indicated there was an error on my /usr/local/lib file it was trying to unzip. My user doesn't have write access to that directory but root does. I don't know why it didn't work the last time I ran it as root, perhaps I didn't install the plug-in as root. It works now, so I'm happy. Thanks Fabio, for your input.
I'm not sure how FreeBSD packages things, so, maybe an easy way out would be getting Eclipse from Eclipse.org and installing PyDev on that fresh install (or if you're also doing web stuff, I'd suggest grabbing Aptana Studio 3, which comes with PyDev preinstalled, so, you don't have to worry about configuring it).
See: http://pydev.org/download.html for details