This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I get this error: class file has wrong version 50.0, should be 49.0
That sounds like you're using a library that is compiled for use with Java 6, while you're using Java 5. Either recompile the library to work with Java 5 (assuming that's possible, but chances are that it is), or find another library that works with java 5 out of the box, or upgrade your JDK to Java 6.
even though, again, json.jar is in its proper place, and proper directive is in JSP to import JSON classes
By "proper place" you mean your web app's WEB-INF/lib directory, right? Post the JSP directive.
where does JSONValuecome from, I don't see JSONValue here ... he imports org.json.simple, where does he get THAT from, there's no class SIMPLE in org.json..
But in general, note this paragraph under "JSON parsers -> on the server-side", which I take to mean that you should adapt the code to whatever JSON library you happen to use:
Decode the incoming JSON string and convert the result to an object using a JSON parser for the language of your choice. At http://www.json.org, you'll find JSON parsers for many modern programming languages. The methods available depend upon which parser you are using. See the parser's documentation for details.
Can you please provide the full error you're getting?
When are you getting this, during compilation? Is a stack trace provided? Can you please show this? (use code tags)
As far as the import goes, what is the fully-qualified package name of the objects you are referencing in your source file? That will tell you what you want for import statements. For example if the class you're referencing is com.company.product.MyClass, then you can use the following import: If you really want to, you can use glob characters in the import, so instead you could use the following:
If the class you're trying to reference needs an import which you don't have, you'll get a different error, so I don't think that's what's happening here (although your last posted error message was pretty vague, so I'm not sure).