• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

P900 and ServerSocketConnection

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have no problems using

ServerSocketConnection ssc = (ServerSocketConnection) Connector.open(url);

in the emulator which comes with WTK2.2, but when I run it on the mobile phone (SonyEricsson P900) I get a SecurityException:

Permission = javax.microedition.io.connector.serversocket

exception.

I have used the J2ME Wireless Toolkit to create MIDlet permission for javax.microedition.io.Connector.serversocket but then I get the message that the Java-server won't allow installation of the application when I try to install it on the mobile phone. Does this mean that I can't use sockets on my phone or can I do it in some other way?

Thanks in advance,
Joachim
 
I am mighty! And this is a mighty small ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic