Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Package * not accessible(Error received due to packages not being accessible)
Package * not accessible [message #1824037] Mon, 06 April 2020 19:54 Go to next message
Suzanne Saunders is currently offline Suzanne SaundersFriend
Messages: 2
Registered: April 2020
Junior Member
I am attempting follow a tutorial on Cucumber using eclipse. I followed the steps up to the point where I enter the following lines in an eclipse class

import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

I'm receiving an error that these packages are not accessible. I've been researching it and even posted a help comment on the tutorial, but haven't heard anything yet.

Does anyone out there have any ideas?
Re: Package * not accessible [message #1824044 is a reply to message #1824037] Tue, 07 April 2020 02:27 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 3707
Registered: July 2009
Senior Member

Which tutorial?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Package * not accessible [message #1824077 is a reply to message #1824044] Tue, 07 April 2020 13:21 Go to previous messageGo to next message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 92
Registered: February 2018
Member
I would guess that you either miss the dependencies (you need to add Cucumber's JARs to your project's build path) or face issues related to Java 9+ modules. This thread might help.
Re: Package * not accessible [message #1824089 is a reply to message #1824077] Tue, 07 April 2020 18:22 Go to previous messageGo to next message
Suzanne Saunders is currently offline Suzanne SaundersFriend
Messages: 2
Registered: April 2020
Junior Member
Following the steps of the tutorial, I did add the jar files to the build path. Unfortunately the thread didn't help me. Thanks anyway.
Re: Package * not accessible [message #1824115 is a reply to message #1824089] Wed, 08 April 2020 07:24 Go to previous message
Emmanuel Chebbi is currently offline Emmanuel ChebbiFriend
Messages: 92
Registered: February 2018
Member
So, could you maybe tell us which tutorial you're following or share a link to your source code?
Previous Topic:ECLIPSE BUILD ERRORS
Next Topic:Eclipse with Wordpress
Goto Forum:
  


Current Time: Wed May 27 23:00:12 GMT 2020

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

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

Back to the top