Package not accessible question [message #1839666] |
Thu, 25 March 2021 07:35  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.07658 seconds