• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

Thanks,
bhim
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic