2

I want to see my project code through attached source in eclipse , but my jar file does not contain java source code , so how to create jar file with source code.

8
  • Please leave some more info, how you create your jar? Are you using eclipse for that? Or a build tool like maven, ant or gradle? The answer could depend on that. Commented Aug 25, 2016 at 9:31
  • 2
    Possible duplicate of how to create jar file using eclipse Commented Aug 25, 2016 at 9:32
  • 1
    @KhairulBasarRofi I am not sure if this duplicate is correct. It looks like OP is not asking how to create JAR with .class files (binaries), but one with .java files (source), like when we import external libraries, we have choice of jar with only classes and one with sourcecode if we want to inspect it with our IDEs. Probably like in commons.apache.org/proper/commons-io/download_io.cgi Commented Aug 25, 2016 at 9:38
  • 1
    @KhairulBasarRofi True, I am not saying it is not. All I am saying is that duplicate may not be what OP wants so people shouldn't blindly vote/flag for it as such. Commented Aug 25, 2016 at 9:41
  • 2
    @RajuKapadne since you seem new on Stack Overflow you may not be aware that there is edit option below your question. Use it to clarify it. Maybe add some simple example of your project structure and what JARs should contain. Commented Aug 25, 2016 at 9:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.