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

Hello everyone.

I currently have a total of four .ino files in my sketch.

Main sketch: "hub.ino"

Includes:

#include <Memory.ino>
#include <RF24.ino>
#include <WiFi.ino>

Directories:

./hub:
Credentials.h  hub.ino  Memory.ino  RF24.ino  WiFi.ino

When I try to compile, I get the error:

hub.cpp: fatal error: Memory.ino: No such file or directory

I then also get a whole bunch of Java errors:

My version of Java:

~$ > update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      auto mode
* 1            /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java   1051      manual mode

Press enter to keep the current choice[*], or type selection number:

Any help would be much appreciated.

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.

thanks!