Basic question about import [message #1797725] |
Mon, 05 November 2018 16:27 |
Hanz Wurst Messages: 3 Registered: November 2018 |
Junior Member |
|
|
Hi,
I am new to eclipse, and have a simple problem:
I need Jackson to do some JSON stuff.
After some research, I found the best way to install my packages is using Orbit. (http://download.eclipse.org/tools/orbit/downloads/)
Help -> isntall new software -> work with..
Found all the packages I need, installed. (Honestly, I installed everything containing Jackson or JSON, just to ensure not to miss something).
"What is already installed" shows f.e.
Jackson-core Source
2.9.2.v20180207-1730
com.fasterxml.jackson.core.jackson-core.source
Eclipse Orbit
now back to my program, I have f.e. the import
import com.fasterxml.jackson.core.JsonParseException;
and it says the import cannot be resolved.
(btw, "import com.fasterxml.jackson.core.*;" is also not possible)
Also, for a test, created a new project, new class, import is not possible.
Sorry for my noob question: what did I wrong?
My Eclipse:
Eclipse IDE for Java Developers
Version: 2018-09 (4.9.0)
Build id: 20180917-1800
OS is Win10
|
|
|
|
Re: Basic question about import [message #1797738 is a reply to message #1797736] |
Mon, 05 November 2018 22:27 |
|
Your research led to the wrong conclusion. Installing a feature into Eclipse, in this case
the sources for jackson, doesn't add it to the Java Build Path of your projects. Among
other problems it would make it impossible to properly work on Jackson itself.
If you want to write code that uses Jackson, download the relevant Jackson jar files and add
them to your project's Java Build Path.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.03699 seconds