How can one improve Apache NetBeans 9.0 installation instruction? - netbeans

The official installation instruction for Apache NetBeans 9.0 not clear. If you go to the installation link and look through the text you would see "Mac OSX" being mentioned and and no mention of "Windows". Reader should be told that "from a ZIP Archive" means "for Windows"!
I know that NetBeans is an open source project, but is there a way to get to the source code of the installation instruction? What should I know before making a change?

Related

Netbeans 8.2 not responding

I am brand new to computer programming for CIS 210 and it's off to terrible start. Downloaded JDK 9 and Netbeans 8.2. Netbeans won't let me open a new project or file. No error message or anything, almost as if I'm not clicking it. Screen remains blank as seen in the link below. It's driving me insane.
Blank Screen when I click on new project:
If you had Netbeans installation over Java 9 then Please note Netbeans does not work with Java 9. Proof: [https://forums.netbeans.org/topic68000.html][1]
The solution is for Windows, but the same logic applied in Linux too.
Solution1:
You have to edit netbeans.conf find to your java installation path. You can find netbeans.conf inside etc folder of Netbeans installation folder.
Make your netbeans.conf like below.
Eg, netbeans_jdkhome="C:\Program Files (x86)\Java\jdk1.8.0_144"
NetBeans 8.2 does not support Java 9. It just won't work.
The solution is to download the latest nightly build of NetBeans, which does support Java 9:
Normally you would go to the NetBeans download page and click the Development link in the top right corner of the screen.
However, I just tried that and it looks like their web page for downloading nightly builds is not working properly at the moment due to "...violates the following Content Security Policy directive..." errors. I've never seen that before.
A temporary workaround for that problem is to go directly to Index of /download/trunk/nightly/latest/bundles/ and select the download that is appropriate for your environment. You should be able to parse the file names to work out which one you want, depending on whether you need 32-bit or 64-bit, whether you are running on Mac OS or Linux or Windows, etc. (To be clear, ignore this bullet point if the Development link in the first bullet point above is working properly.)
Also note that you can safely install and run multiple versions of NetBeans concurrently: use version 8.2 for Java 8 development, and use the Development Version of NetBeans for Java 9 development.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Update:
The page for downloading Development Builds of NetBeans is working again, so go there, select your Platform from the droplist, and then click the appropriate Download button.
NetBeans with Java 9 is working fine for me using that approach.
NetBeans 9 would be supported version for Java 9, which was supposed to be released by Aug 2017
NetBeans 9 will be released from Apache Software Foundation as new
Apache project. NetBeans is being donated to ASG by Oracle. NetBeans
9 main theme will be to support this upcoming Java SE 9 release.
Of course, you can use NetBeans daily build, but there won't be guarantee of it's stability.

Installing Drools Planner in Eclipse

I am almost a newbie in Java technologies (exluding programming foundation at school). But I am interested in NP problems and I want to have a look into Drools Planner.
So I am trying to install Drool Planner following this tutorial.
Steps:
installing Eclipse (at least 3.4.*): done, version: 3.4.2 already installed in
my computer (Windows XP PRO, ok, it's my old good donkey).
installing GEF: done
installing Drools plugins: FAILED.
I have downloaded and unzipped the archive into my Eclipse root directory. The tutorial states that restarting Eclipse after unzipping the archive in the proper directory should have enabled Drools Perspective.
But no Drools perspective is available.
Where am I wrong?
That's the Drools Expert documentation.
Instead, follow this section of the Drools Planner documentation. That section and the following section 1.4.2. Run the examples in an IDE (IntelliJ, Eclipse, NetBeans) should have you running a Drools Planner example in Eclipse in no time.
Installing the drools-eclipse-plugin is completely optional, although it's handy to have code completion when editing DRL files. Either way, focus first on get the examples running.
In newer versions of Eclipse (>= Indigo) and Drools (>= 5.5) both tutorials don't work. Wether installing Drools by update-site nor by Eclipse Marketplace nor by extracting downloaded zip file.
The only solution that worked for me:
First steps like stated in tutorials
1. Installing GEF using "install new software"
2. Installing Drools packages using "install new software"
Now no Drools features appear in eclipse. Thus:
Close Eclipse and restart with parameter "-console"
Type "install http://download.jboss.org/drools/release/5.5.0.Final/org.drools.updatesite/plugins/org.drools.eclipse_5.5.0.Final.jar"
(On newer versions change url properly)
--> Eclipse will give you a bundle id
Type "start [bundle id]"
Eventually I followed the instructions in ReadMeDroolsJbpmTools.txt included in the droolsjbpm-tools-distribution-5.4.0.Final.zip archive:
Open Eclipse.
Open the menu "Help", menu item "Install new software..."
Click on the button "Add..." to add a new software site.
Fill in the name "drools local update site"
Click on the button "Local..." and select ".../binaries/org.drools.updatesite"
Select all the plugins. Click the buttons "Next" and "Finish".
Now I succeed in opening Drool Perspective.

How to (re)attach JDK sources for Eclipse on Snow Leopard?

After updating to the latest (and now deprecated, sniff...) update of Apple's JDK, Eclipse does not show the source code for JDK classes anymore. It asks me to attach the source location file or folder. Where can I find that?
It seems that Java for Mac OS X 10.6 Update 3 does not include the sources anymore. There is a separate package "Java for Mac OS X 10.6 Update 3 Developer Package" now. See http://lookfirst.com/2010/10/how-to-fix-missing-source-for-latest.html
For each update from Apple, I write a new blog post with the updated symlinks. I noticed a lot of traffic on my blog from one of the answers, so I figured I might as well update things with the latest release.
I could write a simple shell script to do this for you, but that would require you to download a file. Seems simpler to just execute a few easy commands.
This is the latest one for update 5:
http://lookfirst.com/2011/06/fix-missing-source-for-java-mac-os-x.html
I am using Mac OS 10.8.5. I downloaded the java for Mac OS 10.7 and installed it. I found the src.jar file in
/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home/src.jar.
Then I
Opened eclipse(JUNO)
Eclipse > Prefereces > JAVA > Installed jre
Edit the java listed
In the jre system libraries section,
Expand the first one (i.e., classes.jar)
You can see that src is not attached
Double click that and provide the above location
That's it.
In my case the sources are in
/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/src.jar
You might need to set this in the Eclipse preferences: Java - installed JREs. Select the 1.6 JVM and click edit. Now select classes.jar from the list of JRE system libraries, click source attachment and enter the path to your src.jar.
To all the guys who's been suffering from searching the source code here and there for hours but finally get nothing.
For Eclipse to attach(imperfectly available for 1.6):
jdk1.7.0_21_src_for_mac.zip

How do I set up derby in eclipse on Ubuntu?

The question basically says it all. I'm trying setup up JavaDB on my virtualbox running Ubuntu 9.10.
I have the package downloaded and installed through the package manager, which I believe is the right to go about it. I have also installed the Eclipse's Data Platform Tools. I've been following this tutorial here: http://www.vogella.de/articles/EclipseDataToolsPlatform/article.html.
I'm stuck at the driver definition step. When I select the driver template from the Name/Type tab and the jar file in the Jar List tab, the OK button is never enabled. At the top of the New Driver Definition dialog it says 'Unable to locate Jar/zip in the file system as specified by the driver definition: derby.jar.' I assume this is the problem. Any help or links to a better tutorial would be much appreciated.
I think my problem was that I had forgotten to initially install derby as an eclipse plugin. I should have thought of this earlier, but Apache actually has a good tutorial for installing derby, integrating it with eclipse and building a sample project.
The link is here: http://db.apache.org/derby/integrate/derby_plugin.html.
Download the latest Derby version from the Apache website http://db.apache.org/derby/. Choose the binary distribution. Unzip the file to the Eclipse installation directory. The zip file will unpack to create a new subdirectory under the plugins directory of the Eclipse installation.
Source: http://db.apache.org/derby/integrate/derby_plugin.html#Install
You can also add a folder "lib" to your project then copy the file derby.jar from your Derby download into this folder.
Derby tutorial: http://www.vogella.com/articles/EclipseDataToolsPlatform/article.html

Configuring Blackberry Eclipse plugin for 4.70 or 5.0 components

I am looking for help in configuring the Blackberry development environment. In fact, it is quite a frustrating process. The blackberry site is pretty useless. Between links that have been moved, details that are assumed and documents that are out of date it is proving very difficult to get anywhere with blackberry development.
Pheww, now that my rant is done. Here is my problem:
I have finally got the JDE for Eclipse working (that is a story in itself). However, my blackberry workspace is only giving me the option of targeting the 4.5 JDE components. How do I update it to use the 4.7 components?
It would be preferable to have step-by-step instructions but I would appreciate any help that can be provided.
Here are the details:
I have Java jdk1.6.0_14
Eclipse version 3.4.1
I have installed the Blackberry JDE 4.7
I have installed the Blackberry JDE Component Package 4.7
I have installed the Blackberry Smartphone simulators 4.7
Totally agreed - it's not at all obvious what to do. I've never had luck using their update site, so I just download and install the component packs manually:
Download the "Eclipse Software Update for the BlackBerry JDE v4.7 Component Pack" from the BlackBerry developer zone (it's a zip file)
From Eclipse open the Help menu and choose Software Updates
Click on the Available Software tab
Click Add Site
Choose Archive and select your zip file
Make sure everything under the JDE 4.7 tree is checked
Click Install and continue through the wizard
You are a life saver!!!!!!!!!!! This worked perfectly. I understand the frustration. If this. If this doesn't work I would recommend deleteing the entire directory and reinstalling eclipse.
You should already have JDK installed:
This is what I downloaded for 64bit windows:jdk-6u16-windows-x64.exe get one that matches your OS. Should be jdk version 6.
I installed this version: Should work for windows x86 and 64bit:
eclipse-java-ganymede-SR2-win32.zip
Other versions shouldn't work. has to be 3.4 but not 3.5 (gallileo) and it has to be for java.
Then I installed the plugin. Then I followed the instructions above and it worked.
eclipse-java-ganymede-SR2-win32.zip does not work with the 64-bit JDK.
You have to use eclipse-SDK-3.4.1-win32-x86_64 with the 64-bit JDK. Once you use these two things together and install the Eclipse Plugin, the installation works fine, but I always get "Cannot find RIMIDEWin32Util.dll. This is a required component of the IDE." and then "Cannot find RIMUsbJni.dll. Without this dll the IDE cannot connect to USB enabled handhelds. Add RIMUsbJni to java.library.path". Both of the supposedly missing files are located in my workspace path under .metadata.plugins\net.rim.eide.bootstrapper\installDlls. I have placed those two files pretty much everywhere I could think of, even c:\windows\system32, and it still claims to not be able to find these files.
Now for the fix....
You can use eclipse-java-ganymede-SR2-win32.zip with the 32-bit JDK. Make sure you add the JDK\bin to your %PATH% environment variable. You can then install the Blackberry JDK Plugin and Component Pack and everything will work!
Note: In order to "Configure Blackberry Workspace" from the Blackberry menu, you must first create a Blackberry project. Found this out the hard way.