jython: 'unresolved import', but still works

2007-08-31
2013-03-15
  • Berco Beute

    Berco Beute - 2007-08-31

    I'm (trying to) using pydev for my jython 2.2 development but there's very little documentation on how I can add extra, external java jars to my classpath so I can import them. Under project settings I added the jars to the 'PYTHONPATH/external source folders', but somehow the import keeps saying 'unresolved import'. Still, I can run my module just fine!

    Anyway, keep up the good work with this excellent plugin!

    === Setup ===
    ubuntu
    eclipse 3.3
    pydev 1.3.8
    jython 2.2
    java 5

     
    • Berco Beute

      Berco Beute - 2007-08-31

      CORRECTION:

      The jars seem to be imported just fine, but not the folder with java-classes. I can use those classes, even though they give me an 'unresolved import' error.

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2007-08-31

        Can you give more details on your use-case?

        Cheers,

        Fabio

         
        • Berco Beute

          Berco Beute - 2007-09-01

          Sure.

          I have a folder (/home/user/otherproject/bin) with compiled java classes that I want to use from my jython script. I've added that folder to 'project properties/pythonpath/external source folders'. I can use the classes (e.g. '/home/user/otherproject/bin/com/company/test/Test.class'), even though the import shows the 'unresolved import' error.

           
          • Fabio Zadrozny

            Fabio Zadrozny - 2007-09-05

            Hummm... please report it in the bug-tracker (so that we can keep better track of this).

            Cheers,

            Fabio

             

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks