Damir
Damir

Reputation: 56249

Add static files like resources in Java eclipse project

I have couple .c files in my java project. How to achieve in Eclipse to project see this .c files like resources ?

Upvotes: 0

Views: 5245

Answers (3)

Saito
Saito

Reputation: 168

Are your .c files C programs?.

You can install c/c++ eclipse plugin named CDT to view the source.

CDT site.

Upvotes: 1

Andreas Dolk
Andreas Dolk

Reputation: 114847

Define an additional src folder that points to the file system folder which contains those files.

Or, inside your src folder, create a new file/folder which is a link to the external file/folder.

Upvotes: 2

Jigar Joshi
Jigar Joshi

Reputation: 240996

if it is maven project then simplyput all c file in /resource/c/

if it is simple java project , put all C file in a different package.

if it is a web project put it in WEB-INF/C/

Upvotes: 1

Related Questions