Results 1 to 5 of 5

Thread: Classpath issue

  1. #1
    aharv is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default Classpath issue

    I have sun java wireless toolkit 2.5.2 and I'm already successfully creating Midlets using eclipse's j2me plugin. To do this I already imported wtk252 in window/preferences/j2me/dev mgmt, and added the search directory where wtk252 resides.

    My problem is, after importing a ready-developed project into the same workspace one of the pieces of code continuously gives a class not found error for javax.microedition.io.ContentConnection

    It's clear that one project understands how to resolve paths in javax.microedition and the other one doesn't. But I'm not sure how to fix this classpath issue because I don't know physically what the name of the precise jar file with javax.microedition.io.ContentConnection in it is called.

  2. #2
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

  3. #3
    aharv is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    Thanks for the reply. Do you know if there is a way that I can just fix the classpath issue without adding any additional development kits or tools?

    I get the impression that javax.microedition is already downloaded within my wireless toolkit. If that's the case, can I not fix the classpath so that the failing project can now resolve the javax.microedition.io path? (And if it's not that simple can someone please explain why it's not that simple.)

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    8

    Default

    J?ust because you have javax.microedition does not mean that you have javax.microedition.io.

  5. #5
    aharv is offline Member
    Join Date
    Apr 2010
    Posts
    3
    Rep Power
    0

    Default

    Brill, thanks, javax.microedition.io.ContentConection
    now resolves.

Similar Threads

  1. Classpath issue, java 1.5 vs java 1.6 and -cp
    By Gideonzx in forum New To Java
    Replies: 4
    Last Post: 05-26-2010, 10:47 PM
  2. j3d classpath
    By sales1 in forum New To Java
    Replies: 3
    Last Post: 12-23-2008, 02:51 AM
  3. Classpath
    By Preethi in forum New To Java
    Replies: 5
    Last Post: 06-20-2008, 10:00 AM
  4. GNU Classpath 0.96.1
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 11-01-2007, 05:14 PM
  5. GNU Classpath 0.96
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 10-16-2007, 07:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •