Results 1 to 10 of 10

Thread: Http Connetion

  1. #1
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default Http Connetion

    Hello, i m new to this forum and i m facing a problem while working on my project.
    I want to connect to a web service and i need the java.net package, but netbeans doesnt have it and i m searching for it on the internet and i m not finding it...
    So please can someone help me and post me a link where i can download this package
    thank u :)

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    The java.net package is part of the JDK. I have no idea why your IDE can't find it.
    Check your spelling.

    Post the full text of the compile error here.

  3. #3
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default

    i m not compiling my code because i m just trying to import the package : import java.net.*; and the IDE is telling me that this package is not found so i m not trying to continue because this is not working.
    I m using btw Netbeans 6.9.
    So what can i do.
    I m trying to connect to weather channel web service and i need this package.

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Don't know what is wrong with your IDE. java.net is part of the JDK.
    Is your spelling correct?

    Have you tried compiling the program using javac in a command prompt window?

  5. #5
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default

    ah ok but sorry i forgot to tell u that i m working with Java ME someone told me that i cant work with java.net in j2me, is this true?

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,306
    Rep Power
    25

    Default

    Sorry, I don't know about j2me

  7. #7
    nitinverma is offline Member
    Join Date
    Mar 2010
    Location
    New Delhi,Vadodara
    Posts
    50
    Rep Power
    0

    Default

    Java ME is the MicroEdition Of the Java.
    so it contain the Limited Classes and Packages.
    Java ME does not contain the Java.net Package.

    What U want to do.

  8. #8
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default

    I have no Idea how to do what I have to do. I have to connect to a web service to get an xml document and then display this xml document.
    As I said I have no Idea how to do this, so please can you help me!!!
    Thank you..

  9. #9
    Join Date
    Jul 2010
    Posts
    5
    Rep Power
    0

    Default

    I think that you have redownload your JDK because this package is included in the JDK.

  10. #10
    nitinverma is offline Member
    Join Date
    Mar 2010
    Location
    New Delhi,Vadodara
    Posts
    50
    Rep Power
    0

    Default

    U have to use xml parser and DOM parser.

    And u have to include package for this.
    Like import org.xml.sax.*;
    and
    J2ME dose not provide the package for this.

Similar Threads

  1. Need bluetooth connetion example
    By pacific112j in forum CLDC and MIDP
    Replies: 0
    Last Post: 01-22-2010, 08:01 PM
  2. Replies: 7
    Last Post: 11-11-2009, 08:29 PM
  3. Http change to HTTP\SSL
    By ballyv24 in forum Advanced Java
    Replies: 0
    Last Post: 05-14-2008, 11:32 AM
  4. JDBC connetion in midlet
    By Poonam in forum CLDC and MIDP
    Replies: 1
    Last Post: 01-09-2008, 12:26 PM
  5. use ftp instead of http
    By gabriel in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2007, 06:06 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
  •