1 Reply Latest reply: Jun 1, 2010 2:53 PM by 843851 RSS

    error:  microedition.io.* package does not exists

    843851
      Been at this for a few days...frustration...funny.

      Using JDK 1.6 NetBeant 6.8 with WTK 2.5.2 on XP

      Was able to resolve the javax.bluetooth.* package does not exists and xylostudio by doing the following to add the libraries to the project file.

      1) Tools > Libraries
      2) in the pop up Library Manager window click 'New Library'
      3) in the pop up New Library window typed 'bluetooth' > OK
      3) highlight 'bluetooth' in Library Manager scroll menu on left
      4) click add JAR/Folder
      5) added jsr082 from C;\WTK2.5.2_01\lib\jsr082.jar
      6) click OK
      7) right click project and select properites
      8) highlight the library node under Categories on the left side of the Project Properties window
      9) 'Add Library' created 'bluetooth'
      10) click OK

      When the process was followed to resolve the microedition.io.* package does not exist error it was unsuccessful.
      The difference in the two processes being New Library name: 'microedition' and added jsr75, MIDPapi20, jsr118, then MIDPapi21 with no resolution to the errors.

      Also add the jsr75, MIDPapi20, jsr118, and MIDPapi21 directly to the project by clicking the 'Add JAR/Folder' button in the Project Properties window.

      Here is the Output:

      init:
      deps-clean:
      Updating property file: C:\Scholastic\4340MS\REU\ItsAForum\build\built-clean.properties
      Deleting directory C:\Scholastic\4340MS\REU\ItsAForum\build
      clean:
      init:
      deps-jar:
      Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build
      Updating property file: C:\Scholastic\4340MS\REU\ItsAForum\build\built-jar.properties
      Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build\classes
      Created dir: C:\Scholastic\4340MS\REU\ItsAForum\build\empty
      Compiling 8 source files to C:\Scholastic\4340MS\REU\ItsAForum\build\classes
      C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:8: cannot find symbol
      symbol : class Connector
      location: package javax.microedition.io
      import javax.microedition.io.Connector;
      C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:9: cannot find symbol
      symbol : class StreamConnection
      location: package javax.microedition.io
      import javax.microedition.io.StreamConnection;
      C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:10: cannot find symbol
      symbol : class StreamConnectionNotifier
      location: package javax.microedition.io
      import javax.microedition.io.StreamConnectionNotifier;
      C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:19: cannot find symbol
      symbol : class StreamConnectionNotifier
      location: class mobile.communication.Server
      private StreamConnectionNotifier server = null;
      ^
      C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:20: cannot find symbol
      symbol : class StreamConnection
      location: class mobile.communication.Server
      private StreamConnection connection = null;
      ^
      C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:58: cannot find symbol
      symbol : class StreamConnectionNotifier
      location: class mobile.communication.Server
      server = (StreamConnectionNotifier)Connector.open(URL);
      ^
      C:\Scholastic\4340MS\REU\ItsAForum\src\mobile\communication\Server.java:58: cannot find symbol
      symbol : variable Connector
      location: class mobile.communication.Server
      server = (StreamConnectionNotifier)Connector.open(URL);
      ^
      7 errors
      C:\Scholastic\4340MS\REU\ItsAForum\nbproject\build-impl.xml:413: The following error occurred while executing this line:
      C:\Scholastic\4340MS\REU\ItsAForum\nbproject\build-impl.xml:199: Compile failed; see the compiler error output for details.
      BUILD FAILED (total time: 4 seconds)




      any information would be much appreciated. Thanks,
      LD
        • 1. Re: error:  microedition.io.* package does not exists
          843851
          By completing the process shown in below link and adding the bluecove jar file directly to the project as of the reply post suggests, all compilation errors were corrected.


          http://forums.netbeans.org/viewtopic.php?t=22823&start=0&postdays=0&postorder=asc&highlight=microedition

          Thanks me for point me in the right direction,
          Me is happy.