ploink
ploink

Reputation: 61

Eclipse java builds contains both .java and .class files

When i build my java projects in eclipse for some reason it puts both class and java files inside the build Which makes it double the size How to turn this off?

Edit: Export sources is NOT checked (would have been a real DOH moment!) When building blackberry projects there is no such option

Edit2: It's happening in 2 different eclipse environments so as far as i can figure it must be a global "setting" somewhere

Upvotes: 0

Views: 387

Answers (3)

Chlang Jou
Chlang Jou

Reputation: 21

I had the same problem, but my colleague is fine, he is using older version of Eclipse. Now, I have to open the war file and delete java source files with 7zip or other zip manager.

Upvotes: 2

Dan D.
Dan D.

Reputation: 32391

When exporting to a war file in Eclipse, there is a checkbox saying "Export source file". If checked, it will export the .java files, otherwise not. It is not checked by default.

Upvotes: 0

Vivek
Vivek

Reputation: 1336

When you export it as a WAR file there is a check option to select if you want to export the sources as well. uncheck it.

Upvotes: 1

Related Questions