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.
Asked
Active
Viewed 161 times
2
-
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. – Sergej Werfel Aug 25 '16 at 09:31
-
2Possible duplicate of [how to create jar file using eclipse](http://stackoverflow.com/questions/17981958/how-to-create-jar-file-using-eclipse) – MD. Khairul Basar Aug 25 '16 at 09:32
-
provide some more information about your question? It is not clear. – Anju Aug 25 '16 at 09:37
-
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 https://commons.apache.org/proper/commons-io/download_io.cgi – Pshemo Aug 25 '16 at 09:38
-
@Pshemo Question in unclear. May be you are right and i misunderstood the question. – MD. Khairul Basar Aug 25 '16 at 09:40
-
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. – Pshemo Aug 25 '16 at 09:41
-
Yeah ! right ! :( @Pshemo – MD. Khairul Basar Aug 25 '16 at 09:43
-
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. – Pshemo Aug 25 '16 at 09:44