Skip to main content



      Home
Home » Newcomers » Newcomers » Basic question about import
Basic question about import [message #1797725] Mon, 05 November 2018 11:27 Go to next message
Eclipse UserFriend
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 #1797736 is a reply to message #1797725] Mon, 05 November 2018 16:45 Go to previous messageGo to next message
Eclipse UserFriend
50+ hits and no response - added a screenshot, maybe it helps..

https://www.bilder-upload.eu/thumb/b0a5f0-1541454296.jpg
Re: Basic question about import [message #1797738 is a reply to message #1797736] Mon, 05 November 2018 17:27 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: Basic question about import [message #1797760 is a reply to message #1797738] Tue, 06 November 2018 03:32 Go to previous message
Eclipse UserFriend
Ah okay, downloading the jar´s directly and adding as external jars did the trick, thank you :)
Previous Topic:Report design
Next Topic:Is there a work around for this problem - EMF tutorial and error launching debug as Eclipse App.
Goto Forum:
  


Current Time: Fri Jul 25 08:07:06 EDT 2025

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

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

Back to the top