Software development with Java



The course software installation for this course is not particularly straight forward. Follow these steps after you installed NetBeans:

  • I assume your m256 folder is /files/open university/m256 and you installed netbeans into /files/netbeans-4.1. Adjust the paths to the actual locations in the guide.
  • From the Course software CD-ROM, copy M256Code to your m256 folder
  • In your home directoy, find a folder named .netbeans. If it doesn't exist, start netbeans once, exit it and it'll be there.
  • Create the directory .netbeans/4.1/config/org-netbeans-api-project-libraries/Libraries
  • From the CD-ROM, copy configurationFiles/m256gui.xml into that newly created directory. Open it in an editor.
  • You will now need to replace those jar:file: entries in the <resource> tag with the actual library locations. For the m256 folder I assumed, this will look like this:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE library PUBLIC "-//NetBeans//DTD Library Declaration 1.0//EN" "">

<library version="1.0">



  • Save it and copy the file over to m256date.xml, and open this one in an editor. Replace all occurences of m256gui with m256date. Save it.
  • Now create the directory .netbeans/4.1/config/Palette/Swing
  • From the CD-ROM, copy configurationFiles/M256JList.palette_item into the newly created folder and open it in an editor.
  • Where it says name=, make it read name="/files/open university/m256/M256Code/m256libraries/m256gui.jar". Save it.
  • Now replace .netbeans/4.1/ with the one from the CD-ROM in configurationFiles. Open it in an editor.
  • Replace all occurences of C:\\Program Files\\netbeans-4.1\\ with /files/netbeans-4.1/ and all occurences of C:\\Documents and Settings\\me28\\My Documents\\M256\\ with /files/open university/m256/. Finally, replace all occurences of \\ with /. Save the file.
  • Now do a nice:
find ~/.netbeans -type d -exec sudo chmod 755 {} \;
find ~/.netbeans -type f -exec sudo chmod 644 {} \;
find /files/open\ university/m256 -type d -exec sudo chmod 755 {} \;
find /files/open\ university/m256 -type f -exec sudo chmod 644 {} \;
find ~/.netbeans -name "*~" -exec rm {} \;

That should be it, fire up NetBeans and see if you can load one of the M256 Projects.