You are not mentioning which Java ME configuration and profile you are using. Depending on those you will or will not have certain APIs and packages available. Check out
Hope this helps,
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.