-4

I got the error when i run my spring project it will show the messages which is found in image link.

I downloaded spring jar files 4.1.6 version and configured as a user library.

Kindly help me to get rid of this error so i can continue my project.

Kindly download the screen shot

Waiting for a response.

Thanks. Image Link

  • 1
    Its not an error..you need to attach the source file to view the content of that jar file – Akash Rajbanshi Jun 05 '15 at 14:53
  • 1
    There is a separate source code ZIP that comes along with the binary release. Search for it in your preferred maven repository and add it as source attachment. Simply click on 'attach source' and choose the sources file that is shown on the left – Marged Jun 05 '15 at 14:53

1 Answers1

0

When you make a jar file from .java files these jar file will contain .class files which represent the code that the java compiler need to run the program.

In eclipse opening the jar file you need the source code of the .class file so as you see in the error you need the attached source.

So you have to find the source code of jar or download the jar with the source code build it.

I think you can find it on Github

Also if you want take a look here

Also you can check the javadoc of the jar file you have downloaded it has a total presentation of all the classes and methods.

Community
  • 1
  • 1
GOXR3PLUS
  • 6,877
  • 9
  • 44
  • 93
  • I think the sources are already there, look at the left oft the screenshot – Marged Jun 05 '15 at 15:48
  • What should i download from Githib there are many files in it. – Abtisam Ansari Jun 05 '15 at 15:52
  • @Abtisam Ansari what exactly you want to check ? let me know.. As i saw now your project has javadoc inside go and open them if you want to see details about classes and methods. – GOXR3PLUS Jun 05 '15 at 15:53
  • Actually i want to run my spring project but it is not running, While debugging it shows an error in "ApplicationContext context = new ClassPathXmlApplicationContext("springConfig.xml");" line . Complete code is in next comment. – Abtisam Ansari Jun 06 '15 at 11:00
  • import org.springframework.context.ApplicationContext; importo rg.springframework.context.support.ClassPathXmlApplicationContext; public class TestingSpringProject { public static void main(String[] args) { String demo = ""; ApplicationContext context = new ClassPathXmlApplicationContext("springConfig.xml"); Resturant resturantObj = (Resturant) context.getBean("resturantBean"); resturantObj.greetMessage(); } } – Abtisam Ansari Jun 06 '15 at 11:05