code_junkie

getting java exception: java.net.MalformedURLException: no protocol

Nov 10th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. public static void main(String[] args) {
  2. try {
  3. java.net.URL connection_url = new java.net.URL("http://:/path");
  4. System.out.println("Instantiated new URL: " + connection_url);
  5. }
  6. catch (MalformedURLException e) {
  7. e.printStackTrace();
  8. }
  9. }
Add Comment
Please, Sign In to add comment