• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Failed to show URI:mailto:akash@bhim.com  RSS feed

Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have designed one Java application in which I have provided a button. On pressing that button, following method is invoked and mail window is opened in ms-outlook on widows. But it throws exception on ubuntu thunderbird.

Exception is ----

java.io.IOException: Failed to show URI:mailto:user@domain.com
at sun.awt.X11.XDesktopPeer.launch(XDesktopPeer.java:75)
at sun.awt.X11.XDesktopPeer.mail(XDesktopPeer.java:60)
at java.awt.Desktop.mail(Desktop.java:456)
at panel.SendMail.onLaunchMail(SendMail.java:60)
at wizard.VBEWizard$18.doInBackground(BhimWizard.java:904)
at wizard.VBEWizard$18.doInBackground(BhimWizard.java:1)
at javax.swing.SwingWorker$1.call(SwingWorker.java:277)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at javax.swing.SwingWorker.run(SwingWorker.java:316)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

everything works fine on windows but fails on ubuntu. Any pointers to this problem?

Posts: 21135
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, please don't post real email addresses. That's how many spammers get their victims - they search forums for anyone posting their email addresses. I've anonymized your email address in your post. In the end, the value doesn't matter.

What does desktop.isSupported(Desktop.Action.MAIL) return? Do you have a default email program defined? What happens if you click on mailto links in a web browser?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!