Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Import not accessible(Import not accessible)
Import not accessible [message #1823966] Sat, 04 April 2020 23:48 Go to next message
Eclipse UserFriend
Hey Guys,

Hoping to get a lil help. I am finding with nearly any package I am importing I am always coming across the "X is not accessible" even when going through tutorials and following it to the letter.

Have experienced this with attempting to run a simple Junit test and with trying to start a basic spring file by calling ClassPathXmlApplicationContext.

Right now I am attempting to import ClassPathXmlApplicationContext but I am getting that it is not accessible.

I have:
* Declared the import org.springframework.context.support.ClassPathXmlApplicationContext;

* Configured build path > library > Classpath > Add External jars > and selected all JARs provided. (have also tried copying them all into a folder in my eclipse project and then using Add Jar instead External jar. Same outcome

Any advice would be really appreciate and if need more info happy to provide. Have included a screenshot to show folder setup and error.

Thanks
Sean
Re: Import not accessible [message #1823977 is a reply to message #1823966] Mon, 06 April 2020 01:05 Go to previous messageGo to next message
Eclipse UserFriend
Delete the module-info.java file. It's only used if you're using Java's built-in module system.
Re: Import not accessible [message #1828905 is a reply to message #1823977] Sun, 21 June 2020 20:59 Go to previous messageGo to next message
Eclipse UserFriend
Thank you! Works a charm :)
Re: Import not accessible [message #1871847 is a reply to message #1823977] Sun, 13 October 2024 23:36 Go to previous messageGo to next message
Eclipse UserFriend
Thank you from 15 years later. I was losing my mind with this crap. What an odd problem to the situation.
Re: Import not accessible [message #1871850 is a reply to message #1823966] Sun, 13 October 2024 23:37 Go to previous message
Eclipse UserFriend
Oops 4 not 15 years
Previous Topic:Cannot complete the install because one or more required items could not be found.
Next Topic: Issue with Eclipse IDE Performance after Latest Update
Goto Forum:
  


Current Time: Mon Feb 17 03:23:24 GMT 2025

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

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

Back to the top