All, I am one to give credit where credit is due. Emilian was correct in as far as the basic C/C++ functionality does not require JDK 8. So I will amend my instructions to reflect that revelation. For my own circumstances, we still require the JDK 8 to have the software perform as expected. The reason is unclear, and probably not worth digging into a this point. I'm just elated to be able to run the same, identical software baseline on Ubuntu 18.04 on all of our Enterprise, Tactical and now pocket versions. I spent the afternoon testing the software and it performs better than expected. A few issues that require some attention but nothing I'm going to lose sleep over. I am elated!
Thanks so much everyone. On Fri, Feb 28, 2020, at 21:34, Emilian Bold wrote: > I'm not entirely certain why you installed Java 8 from Oracle when you > also have JDK 11 in the repository and NetBeans runs with Java 11. > > The RPi is a capable machine, only slow part is the IO... You could > never compile something heavy on that thing although in the past you > would have compiled many things on a quad core / 4GB machine. > > --emi > > On Fri, Feb 28, 2020 at 11:26 PM John G. Weed <nonsequi...@fastmail.com> > wrote: > > > > All, > > > > Forgive me if this needs to be sent via some other venue, but since this > > has been such a pain in the butt to find an answer to, I thought I'd write > > out the steps I followed to build a Raspberry Pi 4B (4GB) running the > > Ubuntu 18.04.4 LTS operating system, with the xubuntu desktop, for the > > purpose of running the NetBeans 11.2 IDE with (most importantly) support > > for the NetBeans 8.2 C/C++ plugin--one long run-on sentence. > > > > Our software baseline is currently running on some pretty hefty HP DL-380s > > (the Enterprise version), as well as some smaller tactical units. But we > > were missing a portable, pocket version platform. I wanted to be able to > > use not only the same operating system (Ubuntu 18.04), but the same IDE as > > well. This would dramatically decrease any cross platform maintenance > > issues. The following steps make this entirely possible. Many thanks to the > > folks who provided valuable suggestions. > > > > The following are the steps required to build a Ubuntu 18.04.4 LTS server > > based on the Raspberry Pi 4B (4GB) platform supporting the Apache NetBeans > > 11.2 IDE with the NetBeans 8.2 C/C++ plugin. If you are already well versed > > in Ubuntu and Raspberry Pi you may find the instructions a tad verbose. > > However, in order to reach the widest possible audience, I’ve taken the > > time to illustrate in excruciating detail. Please forward any changes or > > correction to nonsequi...@fastmail.com. > > > > Required: > > > > Raspberry Pi 4B 4GB > > > > HDMI monitor > > > > USB Keyboard and mouse > > > > USB power supply > > > > 16GB MicroSD > > > > Windows 10 or equivalent PC (to burn Ubuntu image to MicroSD card) > > > > Windows PC Steps: > > > > Wipe-clean (delete all exiting partitions) and format the 16GB MicroSD card > > using MiniTool Partition Wizard or equivalent > > > > Download file ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img from site > > https://ubuntu.com/download/raspberry-pi > > > > Using Win32 Disk Imager or equivalent, write the > > ubuntu-18.04.4-preinstalled-server-arm64+raspi3.img to the MicroSD card. > > > > Raspberry PI 4B (RPi4): > > > > With power off, connect monitor, keyboard and mouse to the RPi4 > > > > Insert imaged MicroSD card into the RPi4 and power up > > > > Login using username "ubuntu" and password "ubuntu" > > > > Respond to the change password request as appropriate and login > > > > Update configuration sources by entering: sudo apt-get update > > > > Install xubuntu desktop environment by entering: sudo apt-get install > > xubuntu-desktop > > > > Login to RPi4 using the changed password > > > > Run the Software Updater application, if it doesn’t start automatically, to > > update the various operating ystem components before continuing further; > > this include any requested reboots > > > > Using the Firefox browser, download file > > jdk-8u241-linux-arm64-vfp-hflt.tar.gz from site URL > > https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html > > > > Bring up a Terminal window and enter the following commands to expand and > > install the java components necessary to run NetBeans-11.2: > > > > cd Downloads > > > > sudo mkdir /usr/lib/jvm > > > > sudo tar xvf jdk-8u241-linux-arm64-vfp-hflt.tar.gz --directory /usr/lib/jvm/ > > > > /usr/lib/jvm/jdk1.8.0_241/bin/java -version > > > > /usr/lib/jvm/jdk1.8.0_241/bin/javac -version > > > > sudo apt-get install openjdk-11-jdk > > > > java -version > > > > sudo update-alternatives --install /usr/bin/java java > > /usr/lib/jvm/jdk1.8.0_241/bin/java 1 > > > > sudo update-alternatives --install /usr/bin/javac javac > > /usr/lib/jvm/jdk1.8.0_241/bin/javac 1 > > > > sudo update-alternatives --config java > > > > sudo update-alternatives --config javac > > > > Using the same Terminal window, enter the following command to baseline the > > NetBeans dependencies: > > > > sudo apt-get install g++ > > > > sudo apt-get make > > > > Using the same Firefox browser, download file > > Apache-NetBeans-11.2-bin-linux-x64.sh, to the Downloads directory, from > > site URL > > https://www.apache.org/dyn/closer.cgi/netbeans/netbeans/11.2/Apache-NetBeans-11.2-bin-linux-x64.sh > > > > From the Terminal window, enter the following to begin the installation of > > the NetBeans 11.2 application: > > > > sudo chmod +x Apache-NetBeans-11.2-bin-linux-x64.sh > > > > sudo ./Apache-NetBeans-11.2-bin-linux-x64.sh > > > > Note: The installation procedure will prompt for the location of the JDK > > for the Appache NetBeans IDE:… Select the > > /usr/lib/jvm/java-1.11.0-openjdk-arm64 > > > > When the installation procedure completes, which may or may not require a > > restart, start the NetBeans 11.2 application from the start menu, path > > Whisker Menu→Development→Apache NetBeans 11.2 IDE, and execute the > > following to setup NetBeans 8.2 C++ support: > > > > Bring up the Plugins Settings menu by following Tools→Plugins→Settings > > > > Under the Configuration of Update Centers, check the NetBeans 8.2 Plugin > > Portal box > > > > Under the Automatically Check for Updates drop-down menu select Every > > Startup > > > > Close the Plugins window and restart the NetBeans application > > > > When the application restarts, bring up the Available Plugins menu by > > following Tools→Plugins→Available Plugins > > > > Check the box for C/C++ > > > > Click the Install button and proceed with the installation > > > > Once again close the Plugins window and restart the NetBeans application > > > > For my particular application, I did the following to verify the > > installation; simple but effective: > > > > Start the Apache NetBeans 11.2 IDE application > > > > File→New Project→C/C++→C/C++ Application->Next > > > > > Leave all of the defaults, with the exception of changing version to > > C++14->Finish > > > > To compile press Fn/F11 > > > > > > Note: This configuration compiled slightly more than 100,000 lines of code > > in about 28 seconds, a coarse estimate. Not too bad. > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org > > For additional commands, e-mail: users-h...@netbeans.apache.org > > > > For further information about the NetBeans mailing lists, visit: > > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org For additional commands, e-mail: users-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists