This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes malformedUrl exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "malformedUrl exception" Watch "malformedUrl exception" New topic

malformedUrl exception

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
My program tries to access a servlet in an https envronment and produce an error unknown protocol https.
I also set property on top the program


where test is the keystore.

What else should I do to make my program accept https protocol. Thanks
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547

you probably need to register a handler for the HTTPS protocol and (depending on your java version) add some jar files to your classpath. perhaps this article helps:


I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: malformedUrl exception
jQuery in Action, 3rd edition