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.
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.
@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
@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.
@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.
.classfiles (binaries), but one with.javafiles (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