Showing posts with label j2mepolish. Show all posts
Showing posts with label j2mepolish. Show all posts

Wednesday, December 29, 2010

J2ME Default Emulator without asking for Permission

While running J2ME project with Default Emulator it will ask for Permissions in case of File Read/Write, HTTP Connectivity etc. To get rid of this Permission on every access you have to change the Security options of Emulator. In my case I am using NetBeans IDE, so to change these options I will go through following steps:
  1. Open Project Properties
  2. Click on Manage Emulators Button
  3. Go to Tools & Extension Tab and Click Open Preferences Option
  4. On Preferences Window click on Security option
  5. Select Security Policy to 'JTWI'
  6. Select Security Domain as 'trusted'
  7. Now run the project it will not ask for access Permissions

 rizzz86

Friday, May 7, 2010

Add External JAR in j2me-polish Project


To use any external jar in a j2me-polish project following steps need to be taken:

  • Copy jar file in j2me-polish/import/ folder
  • Add jar file in project libraries
  • Update build.xml file by adding attribute 'binarylibraries="jarname1.jar;jarname2.jar"' inside < build > tag. (Multiple jars can be defined by placing semi-colon between jars)

rizzz86