• Post Reply Bookmark Topic Watch Topic
  • New Topic

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!