Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Package not accessible question
Package not accessible question [message #1839666] Thu, 25 March 2021 11:35 Go to next message
Blake Evans-Pritchard is currently offline Blake Evans-PritchardFriend
Messages: 1
Registered: March 2021
Junior Member
Hi -

I have what is probably a fairly basic question, so I'm really hoping someone can help me out. but I've looked everywhere and can't find a satisfactory answer.

I'm trying to import a set of third party libraries - in this case htmlunit from Gargoyle Software. I followed the instructions to do so but it doesn't work.

I click on Build Path for the project and then add all the 'jar' files to my library.

I then include the relevant imports in my java code:

-

package com.srccodes.example;

import java.io.*;
import com.gargoylesoftware.*;

-

And it doesn't work!

It picks up java.io.* okay, but with com.gargoylesoftware.* it returns "the package ... is not accessible"

The odd thing is that with the autocomplete in the IDE, it is recognising the library, so it must be picking it up from somewhere.

Can anyone tell me what step I am missing?

Thanks so much!
Blake
Re: Package not accessible question [message #1839672 is a reply to message #1839666] Thu, 25 March 2021 13:07 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33146
Registered: July 2009
Senior Member
It's this thing right?

https://htmlunit.sourceforge.io/apidocs/overview-summary.html

So there is no com.gargoylesoftware Java package with Java classes. The ".*" does not import from subpackages; each needs to be imported separately.



Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Eclipse keeps crashing
Next Topic:Autocomplete, intelli-sense or content assist
Goto Forum:
  


Current Time: Thu May 09 09:28:58 GMT 2024

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

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

Back to the top