Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is java.net.URL available?  RSS feed

 
Mohamed Farouk
Ranch Hand
Posts: 249
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friends
I am tryting to create a mobile application and I cant get my code compiled because it is erroring on java.net.URL. Please can you tell me if it is available.
I am using netbeans and I have got nokia s40, s60 j2me sdk 3.0 and wireless kit but all seems to not let me compile any help would be greatly appreciated.

Thanks
Mohamed
 
Tim Holloway
Saloon Keeper
Posts: 18635
70
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What classes and methods will be available depend on the profile that you're using. It's important when developing for JME to select a profile that matches the target hardware, too. Otherwise it will work fine on your desktop and not work at all on the actual device.

Nokia specs are normally quite good about telling you what profile and additional JSR's a given phone supports.
 
You've gotta fight it! Don't give in! Read this tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!