Skip to main content



      Home
Home » Newcomers » Newcomers » Package not accessible question
Package not accessible question [message #1839666] Thu, 25 March 2021 07:35 Go to next message
Eclipse UserFriend
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 09:07 Go to previous message
Eclipse UserFriend
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.

Previous Topic:Eclipse keeps crashing
Next Topic:Autocomplete, intelli-sense or content assist
Goto Forum:
  


Current Time: Sat Jul 12 22:40:13 EDT 2025

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

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

Back to the top