Java: my code is shown as a text file .. not as in a java format
eclipse, java
Solution
Perhaps you are opening your Java file in a text editor. To fix:
- Select the file
- Right-click -> Open With -> Java Editor
Problem
I downloaded Eclipse (Indigo - version 3.7.2) from my local machine into a VM (Linux Ubuntu), and I managed to run subclipse to connect to the repository and pull my project(with all the code files inside the source folder). now I am able to see my project and open my files, nonetheless my code is just a bunch of "normal text" lines.. when I try to check the Editor, it is a Text Editor and there is no Java editor available what is missing .. here is a screen shot