How to import source code into Eclipse from jar file?

I got a file jarthat was packed with source codein it. I want to download it as a top-level project and start working on the source code. How can I do this in Eclipse?

For example: if I have helloworld.jar when I import this jar. I want the project name to be helloworld, with all packages and src inside it.

I don't need this code when building path.but in my IDE to work.

+4
source share
3 answers

Create a directory called "helloworld" and unzip the JAR into this directory:

mkdir helloworld
cd helloworld
jar xvf ../helloworld.jar

. , Eclipse JAR.

+3

@eagertoLearn . Eclipse , @Erik Gillespie.

eclipse. fooobar.com/questions/348329/...

:

  • *.
  • *. -
  • *.
  • *. Tar.gz
  • * TGZ
+3

.jar "" → winrar ( ), "".

Eclipse .

0

Source: https://habr.com/ru/post/1547482/


All Articles