Why does Jython refuse to find my Java package?

前端 未结 3 1933
鱼传尺愫
鱼传尺愫 2020-12-17 17:09

I know it\'s something silly, but for some reason Jython refuses to find javax.swing. I\'m using Java 1.6.0_11. This is my start-up script:

@echo off

\"%J         


        
3条回答
  •  忘掉有多难
    2020-12-17 18:10

    I'm using Java 1.6.0_11

    No, you're using

    [Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_10

    What happens if you delete the cachedir from the Jython distribution directory, and try again?

    Also, why are you explicitly setting the classpath that way? Why not simply

    java -jar jython.jar
    

    ?

提交回复
热议问题