user3393561
user3393561

Reputation: 21

How to get .java file from eclipse

Have to submit homework for my class but as a .java file, but I have no idea on how to get just the .java source file. They don't want .class, .jar, or .zip. Any idea on how to do this? I am new to Eclipse so thank you for any help.

I have tried clicking on the class itself in the eclipse window and exporting it from there but it just tries to turn it into a .jar file.

Answered than you so much!

Upvotes: 2

Views: 4559

Answers (1)

Ryuzaki L
Ryuzaki L

Reputation: 40078

There are multiple way to get the .java file from eclipse

1) You can simple right click on file and select copy

enter image description here

2) Second approach is right click on project -> select resources, there you can see the Location of project, so you can copy directly from that path

enter image description here

Upvotes: 2

Related Questions