Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

For j2me polish Urgent Help

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Freinds,

Can anybody tell me the code for how to run any J2me polish program in netbeans with the necessary steps.

if possible than give me the sample program that allready run in netbeans and also tell me the step to run.

I know the basic steps but i cant run it.

so please help me.

its urgent.

Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nikunj,

Can you mention what is happening when you are trying to run ?

Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I had the same experience..

It is extremely frustrating when you are unable to do something that is so awesome if the compile goes well...

I cant exactly remember the error that came to the output screen...

I think it due to the change has be done.... or something

And there is a problem of the libs not being found...
nikunj anand
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your reply.

i have followed this steps to run j2me polish program but it will give me this error.

Target `run' does not exist in this project.
BUILD FAILED (total time: 0 seconds)

i am trying to run sample program of j2me polish which include to file and

when i am trying to run build.xml with target as j2mepolish it gives me
this error.

J2ME Polish 1.2
F:\tempproject\sample\MobileApplication\build.xml:69: Unable to find the preverify tool at the default location [C:\Program Files\netbeans-5.5\bin\preverify.exe]. Please specify where to find it with the "preverify"-attribute of the <build> element (in the build.xml file).
BUILD FAILED (total time: 6 seconds)

Steps To run j2me polish program

For integrating J2ME Polish with NetBeans 4.0 create a new project and copy the sample project from ${polish.home}/sample into your new project with a file-manager. Right-click the build.xml and choose "Run Target" > "j2mepolish" for running the example.

Create a new project: Go to "File" -> "New Project" and select "Mobile" -> "Mobile Application" as your project type. Give the project any name and choose any folder as the project's home. De-select the "Create Hello MIDlet"-option and select "Finish" to create the project.
Copy the sample project: Navigate to the "${polish.home}/sample" directory with your file-manager (e.g. Windows Explorer on Windows or Finder on Mac OS X). Select the "resources", "resources2" and "src" folders as well as the "build.xml" file and copy all into the folder of your NetBeans project. Overwrite any existing files.
Return to NetBeans, right-click your new project in the "Projects" view and select "Refresh Folders". You can now view the sample application in the "de.enough.polish.example" package.
Right-click your project again and select "Properties". Go to "Build" and select "Libraries and Resources". Select "Add Jar/Zip" and add the "${polish.home}/import/enough-j2mepolish-client.jar" file to your project.
Now switch to the "Files" view and right-click the "build.xml" file. Select "Run Target" > "Advanced". Write "test, j2mepolish" in the following dialog, so that the "test" target is executed first, followed by the "j2mepolish" target. J2ME Polish now executes and starts the WTK emulator.

please help me to solve this problem.
its really needed.
i have to submit this application within one week.
Remember to always leap before you look. But always take the time to smell the tiny ads:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic