Skip to main content



      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 06:53 Go to next message
Eclipse UserFriend
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 07:41 Go to previous messageGo to next message
Eclipse UserFriend
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 11:09 Go to previous message
Eclipse UserFriend
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: Mon Nov 10 06:31:13 EST 2025

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

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

Back to the top