Re: VDC Playground not working

Solved! Go to solution
MoonWalker00
Regular Visitor

VDC Playground not working

I am trying to follow the instructions from "Launch VDC Playground".

After launching "java -jar vdpplayground.jar" I am getting the following:

Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException                                               at java.base/java.lang.Class.forName0(Native Method)                                                                    at java.base/java.lang.Class.forName(Class.java:375)                                                                    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)                            Caused by: java.lang.ClassNotFoundException: org.json.JSONException                                                             at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)                                                 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)                                                      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)                                                      ... 3 more  

What am I missing? I have installed the latest JRE and JDK.

17 REPLIES 17
API_Products
Visa Developer Support Specialist

Re: VDC Playground not working

Hey @MoonWalker00,

 

Do you have the compatibility requirements listed? If so, please reference the following compatibility requirements: JDK 1.8 or above
 
If the requirements are met, please reinstall the application and restart your computer.
 
Please also see the LICENSE_README file attachment which lists the requirements. I've also copied and pasted the LICENSE_README file below for your convenience too.

 

--

 

# Visa Developer Center Playground
Visa Developer Center Playground is a tool designed exclusively for testing and troubleshooting Visa APIs that are exposed through the platform. It comes integrated with all required authentication methods to connect and get going with VDP APIs.

 

- Package version: 1.0.0

 

For more information, please visit [https://developer.visa.com/]

(https://developer.visa.com/)

  

## Requirements.

 

Java 1.8

 

## Installation & Usage

 

Please refer to user guide (https://developer.visa.com/pages/visa-developer-center-playground)


##License
**© Copyright 2019 Visa. All Rights Reserved.**

 

*NOTICE: The software and accompanying information and documentation (together, the “Software”) remain the property of Visa and its suppliers and affiliates. The Software remains protected by intellectual property rights and may be covered by U.S. and foreign patents or patent applications. The Software is licensed and not sold.*

 

*By accessing these Developer Tools, you are agreeing to Visa’s terms of use (developer.visa.com/terms) (“TOU”), privacy policy (developer.visa.com/privacy), and the additional terms below (collectively, “Developer Tools Terms”). Capitalized terms not otherwise defined herein shall have the meaning set forth in the TOU. In the event there is a conflict between the terms of the TOU and the additional terms below, the additional terms below shall prevail.*

 

*License. Subject to and conditioned upon your compliance with the terms and conditions of these Developer Tools Terms and in accordance with the Documentation, Visa hereby grants you a personal, nonexclusive, nonsublicensable, nontransferable, revocable limited license, solely in the Territory, during the term of the Agreement, to use and reproduce the Developer Tools solely for the purpose of developing and testing Applications. Any reproduction or use of the Developer Tools shall include attribution to Visa as the source and additionally shall contain all copyright and other proprietary notices or legends found on the original.*

 

*Open Source. You shall not incorporate, link, distribute or use any open source or other third party software or code in conjunction with Confidential Information or the Developer Tools in a way that: (i) creates or purports to create obligations with respect to, or will disclose or require disclosure of, any Confidential Information or the Developer Tools, including without limitation the distribution or disclosure of any APIs or source code implementing any APIs, or (ii) grants or purports to grant to any third party any rights to or immunities under any Visa (or any Affiliates) Intellectual Property Rights or proprietary rights. Without limiting the generality of the foregoing, You shall not take any action with regard to Confidential Information or the Developer Tools that would cause these to become subject to the terms of a third party or open source license (including, without limitation, any open source license listed on http://www.opensource.org/licenses/alphabetical or complying with the Open Source Definition listed on https://opensource.org/osd) or to disclosure. To the extent that the Developer Tools contain third party components subject to third party licenses, these licenses shall be provided with the Documentation and shall govern with respect to those components*

 

*"Developer Tools" means vdcplayground.jar and vdplay.jar (and successor compressed JAR files) made available by Visa to You through the feature known by Visa as the “Visa Developer Center Playground,” designed for the purpose of testing and troubleshooting Your Applications with the Visa APIs. Each of the Developer Tools and the Visa APIs may be modified by Visa from time to time. *

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

MoonWalker00
Regular Visitor

Re: VDC Playground not working

Hi,

 

Thank you for the answer. Yes, I do have JDK 1.8 installed.

I tried the reinstallation (and computer restart afterwards) as requested. The issue still exists.

API_Products
Visa Developer Support Specialist

Re: VDC Playground not working

Hey @MoonWalker00,

 

Are you experiencing this issue only on one machine? Have you tried downloading VDC Playground on another machine to see if it works? 

 

What machine are you trying to install VDC Playground on? Can you please provide all the steps that you are doing during the installation process leading up to the error?

 

Java is saying that it cannot find a class called "org/json/JSONException". Make sure you have the required jar in your CLASSPATH.

 

To explain, this runtime error is thrown by the JVM during an attempt by a ClassLoader to load the definition of a Class and when such Class definition couldn't found within the current ClassLoader tree. To clarify, this means that the Class definition was found at compiled time but isn't found at runtime.

 

Here are some things you can try to resolve the issue:

  1. To start, try finding out the jar file that's causing the problematic class file.
  2. You'll need to check whether your classpath contains that jar, if your classpath doesn't contain the jar then you'll need to add that class in your classpath.
  3. If the jar is present in your classpath then most likely your classpath is getting overridden or your application is using classpath specified in jar file or start-up script and to fix that you'll need to find the exact classpath used by your application.

 

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

lenis
Newbie

Re: VDC Playground not working


@MoonWalker00 wrote:

I am trying to follow the instructions from "Launch VDC Playground".

After launching "java -jar vdpplayground.jar" I am getting the following:

 

Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException                                               at java.base/java.lang.Class.forName0(Native Method)                                                                    at java.base/java.lang.Class.forName(Class.java:375)                                                                    at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)                            Caused by: java.lang.ClassNotFoundException: org.json.JSONException                                                             at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466)                                                 at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563)                                                      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496)                                                      ... 3 more  

 

What am I missing? I have installed the latest JRE and JDK.


I was searching for the same solution on various website on the internet and here I found the solution. I hope you also made it resolved.

Thanks

Regards

Lenis

API_Products
Visa Developer Support Specialist

Re: VDC Playground not working

Hey @MoonWalker00,

 

Were you able to resolve the issue? Please share your results with us and let us know if I can help you with anything else.

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Products
Visa Developer Support Specialist

Re: VDC Playground not working

Hey @lenis,

 

Just checking in to see if your issue with VDC Playground is resolved? I'd be happy to help you resolve the issue if it persists, please let me know.

 

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Products
Visa Developer Support Specialist

Re: VDC Playground not working

Hey @lenis,


We have reached out to you previously but have not heard back. We will go ahead and remove you from our contact list but feel free to reach out to us if you are interested in working together in the future.  

 




Thanks,

Diana



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

sunil-kumar-ps
Regular Visitor

Re: VDC Playground not working

Hi Diana,

How to run this jar in Mac machine, please
sed
Helper

Re: VDC Playground not working

I'm also encountering this issue on windows 11. I have the correct jre and jdk versions

java -jar .\vdpplayground.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/json/JSONException
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:495)
at java.base/java.lang.Class.forName(Class.java:474)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:56)
Caused by: java.lang.ClassNotFoundException: org.json.JSONException
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 4 more