VDC Playground not working

Solved! Go to solution
API_Products
Visa Developer Support Specialist

Re: VDC Playground not working

Hi @sed

 

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 H.



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

sed
Helper

Re: VDC Playground not working

Yes. I have the requirements satisfied.

 

OS: Windows 11 (updated to the latest version)

JRE: 1.8 (tried re-installing and re-updating)

JDK: 19 (tried re-installing and re-updating)

 

Other things I tried:

- Running the jar file via Windows GUI (I followed the instructions to set the default app in control panel, etc.). The app suddenly closes when clicked.

- Running the  jar file via command line.  I tried different java executables from both C:\Program Files\Java\jdk-19\bin and C:\Program Files\Java\jre-1.8\bin such as javaw.exe, javaws.exe, java.exe (and all .exe) but no luck.

The traceback is as follow:

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

 

Are there other requirements needed for this to be ran in Windows 11? .e.g. additional pre-requisite software, or deprecated jar files that needed to be downloaded?

Thanks!

API_Products
Visa Developer Support Specialist

Re: VDC Playground not working

Hi @sed,

 

Please try downloading VDC Playground on another machine to see if it works and share your result with us. Make sure you have the required jar in your CLASSPATH. 

 

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 H.



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

Hi @sed,

 

Is the issue fixed? Are you able to use VDC Playground? Please let me know if you require further assistance or not. If you no longer require my help, I can take you off my contact list. 




Thanks,

Diana H.



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

Hi @sed,

 

I haven't heard from you so I'll remove you from my contact list. Feel free to reach out to us at the community if you need help. Have a nice day. 




Thanks,

Diana H.



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

Hi @sunil-kumar-ps,

 

Apologies for delayed reply but VDC Playground is currently compatible with Windows only.




Thanks,

Diana H.



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

imadahddaddev
Regular Visitor

Re: VDC Playground not working

For those that still have the problem, here is how i solved it [i am on Windows 11]

  1. Download the following libraries (jar) and move them to the vdpplayground location  (those are versions that worked for me, you can downlaod any versions you want)
    • json-20230227.jar
    • log4j-1.2.17.jar
    • jackson-core-2.15.2.jar
    • jackson-databind-2.15.2.jar
    • miglayout-4.0.jar
  2. Open cmd and navigate to vdpplayground.jar location
  3. Run the following command : java -cp "vdpplayground.jar;json-20230227.jar;log4j-1.2.17.jar;jackson-core-2.15.2.jar;jackson-databind-2.15.2.jar;miglayout-4.0.jar;." org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader  (org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader, is the main class of vdpplayground.jar, you can check it using the command : jar xf vdpplayground.jar META-INF/MANIFEST.MF,    then type META-INF\MANIFEST.MF)
imadahddaddev
Regular Visitor

Re: VDC Playground not working

Here is a list of all libraries i downloaded and used with vdpplayground :

./bcpkix-jdk18on-1.78.1.jar
./bcprov-jdk18on-1.78.1.jar
./commons-codec-1.17.1.jar
./commons-lang3-3.12.0.jar
./commons-logging-1.3.4.jar
./httpclient-4.5.14.jar
./httpcore-4.4.16.jar
./jackson-annotations-2.17.2.jar
./jackson-core-2.15.2.jar
./jackson-core-2.17.2.jar
./jackson-databind-2.15.2.jar
./jackson-databind-2.17.2.jar
./json-20230227.jar
./log4j-1.2.17.jar
./miglayout-4.0.jar

the command is : 
java -cp "vdpplayground.jar;json-20230227.jar;log4j-1.2.17.jar;jackson-core-2.15.2.jar;jackson-databind-2.15.2.jar;miglayout-4.0.jar;httpclient-4.5.14.jar;httpcore-4.4.16.jar;bcprov-jdk18on-1.78.1.jar;bcpkix-jdk18on-1.78.1.jar;commons-codec-1.17.1.jar;commons-logging-1.3.4.jar;commons-lang3-3.12.0.jar;jackson-databind-2.17.2.jar;jackson-annotations-2.17.2.jar;jackson-core-2.17.2.jar;." org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader