• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Unable Import Json-Processing Classes  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I know only core java but recently I got a requirement to load JSON file and work on the data set. After browsing few websites, I wanted to write a test program. Below is my test code.

For JSON-P jar file I went to JSR 353 and downloaded javax.json-api-1.0-javadoc.jar. I added this jar to the build path. But I still get the error JsonReader unable to resolve to a type

One thing I noticed is after adding the jar, I can add import javax.json.* but not individual classes.

Kindly help



 
K Raghavendra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

K Raghavendra wrote:Hi

I know only core java but recently I got a requirement to load JSON file and work on the data set. After browsing few websites, I wanted to write a test program. Below is my test code.

For JSON-P jar file I went to JSR 353 and downloaded javax.json-api-1.0-javadoc.jar. I added this jar to the build path. But I still get the error JsonReader unable to resolve to a type

One thing I noticed is after adding the jar, I can add import javax.json.* but not individual classes. Added screenshot as attachment.

Kindly help



Error.JPG
[Thumbnail for Error.JPG]
Error Screen
BuildPath.JPG
[Thumbnail for BuildPath.JPG]
Eclipse BuildPath Screen
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!