Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4221439

https seen as invalid protocol by java.net.URL

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • core-libs
    • generic
    • generic



      Name: krT82822 Date: 03/17/99


      C:\JRun\classes\com\bear\racs\server\proxy>cat tstURL.java

      import java.net.*;

      class tstURL
      {
              public static void main(String[] args) throws Exception
              {
                      URL inputURL = new URL("https://localhost/somefile.html");
                      System.out.println("inputURL = "+inputURL);
              }
      }
      C:\JRun\classes\com\bear\racs\server\proxy>"C:\Program Files\JavaSoft\JRE\1.2\bi
      n\java" tstURL
      Exception in thread "main" java.net.MalformedURLException: unknown protocol: https
              at java.net.URL.<init>(URL.java:364)
              at java.net.URL.<init>(URL.java:308)
              at tstURL.main(tstURL.java:8)

      C:\JRun\classes\com\bear\racs\server\proxy>"C:\Program Files\JavaSoft\JRE\1.2\bin\java" -version
      java version "1.2"
      Classic VM (build JDK-1.2-V, native threads)

      C:\JRun\classes\com\bear\racs\server\proxy>
      (Review ID: 55656)
      ======================================================================

            Unassigned Unassigned
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: