Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7031555
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:49:07+00:00 2026-05-28T00:49:07+00:00

I needed to use a java code in python to reduce, so I chose

  • 0

I needed to use a java code in python to reduce, so I chose Jython.
after a while, I’ve managed to figure out how to run my code, but I’m having the strangest thing.
When I write

from vohmm.corpus import Token;

most of the time, I’ll get a

java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError:
org/json/simple/JSONObject

but, when I’ll do it again(sometimes after 3 attempts) it will import the class, missing out some methods, but I’m able to use the class.

any one can figure this out?

thanks, Eyal

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:49:08+00:00Added an answer on May 28, 2026 at 12:49 am

    Jython uses a caching mechanism when starting up, basically going through all jars in your classpath and building wrappers. It’s possible that in some cases that particular class is found and wrapped, and in others it isn’t; maybe you have a lot of jars and you’re hitting some recursion bug or limit.

    In any case, I’d make sure that the jar including that specific class is at the beginning of your classpath, explicitly declared (i.e. using -cp C:\path\to\my.jar;%CLASSPATH% ), so that jython will pick it up quickly every time.

    This, of course, assuming you launch jython in the same way every time. If that’s not the case, check that the launching parameters that you are using, including the starting directory, are the same in all cases.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm in the process of converting our java code to use NIO, but I'm
I have a Word macro that needs to run using Java. So I use
I wrote some Java code to generate pseudo-random numbers but I'm running into what
We all know it is needed. But WHY is it needed in Java alone,
I needed to use in my old Git similar settings to the following to
Say I only needed to use findall() from the re module, is it more
I’ve never worked on software where I needed to use design patterns. According to
This weekend I was working on a project and I needed to use a
I have come across a Silverlight project that needed to make use of a
I needed to find and use the coordinates of the intersection of a cubic

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.