Hi Marc, Thanks for your reply, but I'm not sure what you mean in your second step"Then in the Repository view right-click on “Working Tree” node and select “Import Projects…”" I downloaded Jacoco repo to my local, and then imported it as Maven projects, all failed. P.S. I updated JDK to version 14
在 2020年7月18日星期六 UTC-4下午3:58:01,[email protected]写道: > > Good Day, > I am a college student and have some eclipse environment set up issues, > wish you could help. > Eclipse : 2020-06 (4.16.0) > Java: 9.0.4 > JDK: 9.0.4 > Maven: 3.6.3 > m2e : 1.16.0 > > Here is the process I import jacoco into Eclipse: > Part one: > 1. I import projects from Git (with smart import). > 2. copy jacoco github uri. > 3. select only master branch to work with. > 4.Select the 1st jacoco folder and import it as maven project. > 5.The jacoco maven structure is as fig 5. > 6. Run "mvn clean verify" under org.jacoco.build folder, and it builds > successful. > 7. I didn't seen any jar file after update the maven project, the > structure is like fig 7. > 8. I was not able to edit the java file, the error said: This compilation > unit is not on the build path of a java project. like fig8 (I checked the > project nature is Maven nature), also I was not able to use command + click > to navigate to a method definition, key words, methods, variables etc are > not highlighted by different color like normal java file. > > Part two: > This time I deleted the whole maven project in eclipse and cleaned up the > work space, then repeated part one's step 1 to 3, > 4, I imported all the eclipse projects except the first maven project > instead, as fig 9. > 5. The structure is as fig 10, there is an error signal in each project. > 6. Run "mvn clean verify" under org.jacoco.build folder, this time I > encountered build failures on org.jacoco.core.test.validation.kotlin, and > org.jacoco.core.test.validation.scala as fig 11. I fixed this by change > the bytecode.version from 6 to 7. > 7. Even though there were errors everywhere in the projects, but it still > can build successful, and this time I see target file and jar file like fig > 12. Also this time all the java files appeared to be normal, I can edit, > use short cut. > > Would you please tell me why in part one, I was not able to edit java > file, and why in part two, there were errors everywhere. > Wish you a good weekend. > > [image: Screen Shot 2020-07-18 at 14.26.05.png] > > fig1[image: Screen Shot 2020-07-18 at 14.26.25.png] > fig2[image: Screen Shot 2020-07-18 at 14.26.44.png]fig3 > > [image: Screen Shot 2020-07-18 at 14.27.14.png] > > fig4[image: Screen Shot 2020-07-18 at 14.27.26.png] > fig 5 > > > [image: Screen Shot 2020-07-18 at 15.01.48.png] > fig6 > > [image: Screen Shot 2020-07-18 at 15.14.25.png] > > fig 7 > > [image: Screen Shot 2020-07-18 at 14.27.59.png] > fig 8 > > [image: Screen Shot 2020-07-18 at 15.26.00.png] > fig 9 > > [image: Screen Shot 2020-07-18 at 15.35.55.png] > fig 10 > > [image: Screen Shot 2020-07-18 at 15.39.12.png] > > fig 11 > [image: Screen Shot 2020-07-18 at 15.49.32.png]fig 12 > > > > > > > > > > > > > > > > > > > > > > > -- You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/920561cb-b1a6-4a18-8842-59839614f5f4o%40googlegroups.com.
