2 Replies Latest reply: Jan 17, 2013 2:39 PM by sfarmer81 RSS

    multipackage missing export file

      I want to write two applets and they are not in the same package.
      The app1/class1 in package1 will import app2/class2 in package2. Also, the app2/class2 in package2 will import app1/class1 in package1.

      When compiling, missing export file errors occur. How to solve this errors?
        • 1. Re: multipackage missing export file
          Hana Bizhani

          that's because of cyclic reference, why do you wanna use cyclic reference?!

          • 2. Re: multipackage missing export file
            In Java Card you can think of a package as an individual JAR file. When you build a package, you need all of the details of any imported packages for the converter to work. This means you need to have successfully converted all packages you import. This is why you cannot convert with a circular reference like you have. What you need to do is to split the common code into a library package that can be used by both applets. You can also just move them into the same package.

            - Shane