Results 1 to 2 of 2
  1. #1
    aneuryzma is offline Member
    Join Date
    Aug 2008
    Rep Power

    Default why my url string is changed in runtime ?

    I have a string

    String cameraStreaming = "h.ttp://" ;

    (NB. I added the point after the h because the forum does not allow me to write links)

    I got the following error: h.ttp:/ (No such file or directory)

    I noticed that there is only one "/" after http: ... why ??? how can i solve this ?


  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power


    Assigning that value to a String variable shouldn't be a problem.
    That wouldn't generate a FileNotFoundException
    What class and method are you using with the string variable that gives the error you display?
    When posting error messages, do NOT edit them, copy all of the text.

Similar Threads

  1. Why the panel text changed?
    By ottawalyli in forum AWT / Swing
    Replies: 1
    Last Post: 12-17-2007, 06:56 AM
  2. Why the panel text changed?
    By ottawalyli in forum SWT / JFace
    Replies: 0
    Last Post: 12-16-2007, 05:16 PM
  3. How to cast an Object into a specific type (Integer/String) at runtime
    By in forum Advanced Java
    Replies: 2
    Last Post: 12-03-2007, 02:04 PM
  4. Replies: 0
    Last Post: 11-20-2007, 05:59 PM
  5. Strings are immutable yet they can be changed ?
    By anjanesh in forum New To Java
    Replies: 4
    Last Post: 05-19-2007, 04:08 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