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

I downloaded Eclipse (Indigo - version 3.7.2) from my local computer to VM (Linux Ubuntu), and I managed to run a subtitle to connect to the repository and pull out my project (with all the code files inside the source folder).

now I can see my project and open my files, however, my code is just a bunch of lines of β€œplain text”. 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 screenshot enter image description here

+6
source share
3 answers

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

  • select a file
  • Right Click -> Open With -> Java Editor
+11
source

Get a version of Eclipse that includes Java developer tools, such as

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

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

+2
source

You can change a regular eclipse project to a Java project, as suggested here:

In the section "Project Properties" β†’ "Project Borders" β†’ "Convert to Form Face" ... you can select Java - this will add Java functionality to your project. There you can also add other faces, such as the Dynamic Web Module.

+1
source

Source: https://habr.com/ru/post/944140/


All Articles