Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java in Eclipse: generating .class file automatically

Tags:

java

eclipse

when I change my foo.java file in Eclipse there are no changes in the foo.class inside the bin folder.

I think there must be a way that Eclipse change this automatically when altering an foo.java file?

I even can't make it manually.

Hope you can help me.

Thanks

like image 431
qzar Avatar asked Jul 01 '10 19:07

qzar


2 Answers

  • Make sure it's a java project
  • Make sure the java file is in a source folder (right click project, properties, build path)
  • Make sure you have automatic build turned on (Project menu -> Build automatically)
like image 190
skaffman Avatar answered Nov 13 '22 17:11

skaffman


One of the other most important things people forgot to mention is that you also need to check the "problems" view to make sure there are not errors in your project. To view problems:

Window -> show view -> Problems

If there are 'Errors' you need to correct those before the eclipse can compile.

like image 42
Jolly1234 Avatar answered Nov 13 '22 17:11

Jolly1234