Arduino IDE (Ubuntu 12.04) Error with including .ino files & java

That is not how the IDE "includes" other sketch code. Remove the .ino includes from hub.ino. On the menu bar, select "Sketch - Add File". Find "Memory.ino" and add it. It will be loaded into a second tab. Do the same for the other .ino files. They will also be in separate tabs. Then it should compile ok.