Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How to attach .java files as source(Trying to attach a .java file as source instead of .jar /.zip)
How to attach .java files as source [message #1806159] Sat, 04 May 2019 10:53 Go to next message
Sebastian Hoffmann is currently offline Sebastian HoffmannFriend
Messages: 2
Registered: May 2019
Junior Member
I can only attach .jar or .zip files, though I have the .java files as source. Do I need to build a .jar file from the .java files or is there another way to attach it directly as .java file?
Re: How to attach .java files as source [message #1806162 is a reply to message #1806159] Sat, 04 May 2019 11:41 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30644
Registered: July 2009
Senior Member
The Java Source Attachment dialog has choices for "Workspace location" and for "External location" and for the latter, you can use "External File..." to choose a jar or zip, or "External Folder..." to choose folder containing *.java files. Note that you should point at a source root folder, i.e., a folder below which are folders that correspond to Java packages and ultimately the leaves of this tree are *.java files. This way when the source for class a.b.C is looked up, JDT can file a/b/C.java in that folder.
Re: How to attach .java files as source [message #1806167 is a reply to message #1806162] Sat, 04 May 2019 15:09 Go to previous message
Sebastian Hoffmann is currently offline Sebastian HoffmannFriend
Messages: 2
Registered: May 2019
Junior Member
Thank you this solved my problem. Can I give u a thumbs up or so? How can I mark this as settled?
Previous Topic:Help
Next Topic:Error opening eclipse
Goto Forum:
  


Current Time: Tue Nov 19 00:26:34 GMT 2019

Powered by FUDForum. Page generated in 0.03037 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top