Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Basic question about import
Basic question about import [message #1797725] Mon, 05 November 2018 16:27 Go to next message
Hanz Wurst is currently offline Hanz WurstFriend
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 #1797736 is a reply to message #1797725] Mon, 05 November 2018 21:45 Go to previous messageGo to next message
Hanz Wurst is currently offline Hanz WurstFriend
Messages: 3
Registered: November 2018
Junior Member
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 22:27 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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
Re: Basic question about import [message #1797760 is a reply to message #1797738] Tue, 06 November 2018 08:32 Go to previous message
Hanz Wurst is currently offline Hanz WurstFriend
Messages: 3
Registered: November 2018
Junior Member
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: Thu Apr 18 07:29:12 GMT 2024

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

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

Back to the top