Could not open Visa developer play ground in ubuntu with java 8

prajakta
New Contributor

Could not open Visa developer play ground in ubuntu with java 8

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:398)
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:476)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:594)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:527)

6 REPLIES 6
jenn_kh
Community Moderator

Re: Could not open Visa developer play ground in ubuntu with java 8

Hi, @prajakta! Thank you for reaching out. One of our agents is looking into this and will get back to you soon. Until then, if any community members have information that may help, please reply to this thread.

joesmith366
Newbie

Re: Could not open Visa developer play ground in ubuntu with java 8

To resolve this issue, you may need to include the JSON library in your project's dependencies. If you are using Maven, you can add the following dependency to your pom.xml file: 

 

<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20210307</version>
</dependency>

 

If you are not using Maven, you can manually download the JSON library JAR file from the Maven repository (https://mvnrepository.com/artifact/org.json/json) and include it in your project's classpath.

 

Once you've added the JSON library to your project, try running the program again. It should resolve the ClassNotFoundException for org.json.JSONException. Let me know if you need further assistance!

joesmith366
Newbie

Re: Could not open Visa developer play ground in ubuntu with java 8

To resolve this issue, you may need to include the JSON library in your project's dependencies. If you are using Maven, you can add the following dependency to your pom.xml file: 

 

<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20210307</version>
</dependency>

 

If you are not using Maven, you can manually download the JSON library JAR file from the Maven repository (https://mvnrepository.com/artifact/org.json/json) and include it in your project's classpath.

Once you've added the JSON library to your project, try running the program again. It should resolve the ClassNotFoundException for org.json.JSONException. Let me know if you need further assistance!

API_Products
Visa Developer Support Specialist

Re: Could not open Visa developer play ground in ubuntu with java 8

Hi @prajakta,

 

If you're still experiencing an error, please provide information below.

1. End Point
2. Request Header
3. Request Body
4. Response Header (include the x-correlation-id)
5. Response Body

You can find the x-correlation-id in the response header.

 




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: Could not open Visa developer play ground in ubuntu with java 8

Hi @prajakta,

 

If you're still experiencing an error, please provide the information requested in my prior post to you. If the error is fixed, let us know so I can take you off my contact list. If I don't hear from you in a couple of days, I'll 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.

Re: Could not open Visa developer play ground in ubuntu with java 8

  1. Check Java Installation: Ensure that Java 8 is properly installed on your Ubuntu system. You can verify the Java version by opening a terminal and running the command: java -version

  2. Update Java Path: Make sure that the Java executable is included in your system's PATH environment variable. You can do this by editing your ~/.bashrc or ~/.profile file and adding the Java bin directory to the PATH variable. For example:

    rubyCopy code
    export PATH=$PATH:/path/to/java/bin
  3. Browser Compatibility: Ensure that the web browser you are using is compatible with the Visa Developer Playground. Some browsers may have compatibility issues with certain web applications.

  4. Clear Browser Cache: Clear your browser's cache and cookies, then try accessing the Visa Developer Playground again. Cached data or cookies may sometimes cause issues with web applications.

  5. Check Network Connectivity: Ensure that your Ubuntu system has a stable internet connection. Sometimes, network issues can prevent web applications from loading properly.

  6. Try a Different Browser: If you're still unable to open the Visa Developer Playground, try accessing it using a different web browser. This can help determine if the issue is specific to your current browser.

  7. Verify URL: Double-check that you are using the correct URL to access the Visa Developer Playground. It's possible that you may have entered the wrong URL or are trying to access an outdated version of the Playground.

  8. Contact Visa Support: If none of the above steps resolve the issue, consider reaching out to Visa Developer support for further assistance. They may be able to provide additional guidance or troubleshoot the problem on their end.

By following these steps you should be able to troubleshoot and resolve the issue with opening the Visa Developer Playground on Ubuntu with Java 8.