java - Why would a module in a JAR not be found? -


i working in netbeans 7 python script using jython. trying build nasa worldwind example.

i have added jars classpath, including 1 contains gov.nasa.worldwind.

the code crashes, saying

  traceback (most recent call last):   file "c:\users\wrightky\documents\netbeansprojects\ww\src\ww.py", line 4, in <module>   import gov.nasa.worldwind wwj   importerror: no module named gov 

i have both added jar "gov" classpath , added jar python package manually, under can see gov.nasa.worldwind.

i add code not sure if it's relevant.

why happen?

from question it's not entirely clear whether you're compiling java class file or python, if java should know can't import x y in java. if have conflicting class names, you'll have use fully-qualified class name (ie gov.nasa.wordwind.someclass) every time reference it.

see question more details: change name of import in java, or import 2 classes same name


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -