Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment(Jar fiel has no source file message while debugging.)
The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1810989] Fri, 23 August 2019 04:43 Go to next message
Man Kan is currently offline Man KanFriend
Messages: 8
Registered: January 2019
Junior Member
I am trying to debug a code but getting the message
"The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment"

Can someone please help me? I am not able to resolve it. This is stopping me from debugging. I tried to search in forum but didn't resolve my issue. I am new to eclipse, so i guess it must be a basic question.
Please see attachment for the screenshot.
When i click on attach source, it is giving pop-up to enter location variable path. I am not sure what it is.
  • Attachment: Doc2.docx
    (Size: 416.42KB, Downloaded 29 times)

[Updated on: Fri, 23 August 2019 04:51]

Report message to a moderator

Re: The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1810997 is a reply to message #1810989] Fri, 23 August 2019 08:53 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30646
Registered: July 2009
Senior Member
You have to point it at a jar or folder that contains the corresponding *.java files.
Re: The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1811006 is a reply to message #1810997] Fri, 23 August 2019 13:35 Go to previous messageGo to next message
Man Kan is currently offline Man KanFriend
Messages: 8
Registered: January 2019
Junior Member
I don't know how to do it. Can you please help?
I did the following way

I download the testng6.9 jar files(there are like 8 jar fles) and then went to java build path in eclipse.
Went to libraries tab and clicked on Add Library and selected the downloaded 8 testng6.9 jar files and clicked ok.
Please see the screenshot in attached doc3 document.
Still getting the message.

Am i doing the right way. Please help.
  • Attachment: Doc3.docx
    (Size: 182.29KB, Downloaded 25 times)

[Updated on: Fri, 23 August 2019 13:50]

Report message to a moderator

Re: The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1811070 is a reply to message #1811006] Mon, 26 August 2019 13:33 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3528
Registered: July 2009
Senior Member

Please stop putting your images into Word documents. Attach them directly.

Do you have the sources for those jars in any form locally?


Nitin Dahyabhai
Eclipse Web Tools Platform

[Updated on: Mon, 26 August 2019 13:33]

Report message to a moderator

Re: The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1811320 is a reply to message #1811070] Fri, 30 August 2019 17:42 Go to previous messageGo to next message
Man Kan is currently offline Man KanFriend
Messages: 8
Registered: January 2019
Junior Member
I have downloaded the testng6.9 jar files locally. I am not sure if they can be called as source files.

[Updated on: Fri, 30 August 2019 17:44]

Report message to a moderator

Re: The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1811328 is a reply to message #1811320] Sat, 31 August 2019 05:13 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30646
Registered: July 2009
Senior Member
If the jar contains *.java files and not just *.class files, then it has source files, otherwise it doesn't.
Re: The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1811335 is a reply to message #1811328] Sat, 31 August 2019 14:16 Go to previous messageGo to next message
Man Kan is currently offline Man KanFriend
Messages: 8
Registered: January 2019
Junior Member
They all are 8 jar files. I don't know how to view the content of each and every jar file.



[Updated on: Sat, 31 August 2019 14:29]

Report message to a moderator

Re: The JAR file M2_REPO\org\testng\testng\6.9\testng-6.9.6.jar has no source attachment [message #1814006 is a reply to message #1811335] Sun, 01 September 2019 04:44 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30646
Registered: July 2009
Senior Member
https://www.google.com/search?q=view+contents+of+jar+windows
Previous Topic:Building Legacy Mars project
Next Topic: Migrating Java Code on Eclipse into an HTML file
Goto Forum:
  


Current Time: Tue Nov 19 18:22:40 GMT 2019

Powered by FUDForum. Page generated in 0.03054 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top