Custom refactoring with Eclipse JDT library

Eclipse source code clean-up wizard and other refactoring tools are great, but sometimes they are just not quite powerful enough. For example a large legacy application with 100s of instances of non-standard Java package and class names. These could be cleaned by refactoring each in turn. Additionally Eclipse “update fully qualified names in non-Java text… Continue reading Custom refactoring with Eclipse JDT library

JOGL with Java 17

JOGL 2.3.2 fails on Java 17 with errors such as Exception in thread “main” java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 1 at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:171) There is limited info on this, traced to this nasty chosenGC = Win32SunJDKReflection.graphicsConfigurationGet(device, winConfig.getPixelFormatID()); This relies on reflection on core JDK classes, obviously a no-no from Java 9 onwards, but… Continue reading JOGL with Java 17

Simple minimal install

Refreshing some very old hardware for use with iPlayer etc. Only 2GB RAM and latest Ubuntu is very bloated. Did minimal install from standard desktop ISO which I happened to have on USB key # old school – no display manager, just openbox sudo apt remove gdm3 gvfs cups kerneloops whoopsie modemmanager sudo apt install… Continue reading Simple minimal install

Ubuntu 12.04 – minor updates

Slight change in syntax to mythfilldatabase, not really ubuntu 12.04 related, but that’s when the version changed. # before ubuntu 11.10 /usr/bin/mythfilldatabase –file 1 grab.xml # after ubuntu 12.04 /usr/bin/mythfilldatabase –file –sourceid 1 –xmlfile grab.xml