Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java: my code is shown as a text file .. not as in a java format

Tags:

java

eclipse

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 enter image description here

like image 827
McLan Avatar asked May 02 '13 17:05

McLan


2 Answers

Perhaps you are opening your Java file in a text editor. To fix:

  1. Select the file
  2. Right-click -> Open With -> Java Editor
like image 112
Andrew Eisenberg Avatar answered Oct 20 '22 01:10

Andrew Eisenberg


Get a version of Eclipse that includes the Java developer tools, for example

http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/junosr2

See http://www.eclipse.org/downloads/ for a complete list of all flavors you can choose from.

like image 36
flup Avatar answered Oct 20 '22 01:10

flup