File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes For j2me polish Urgent Help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "For j2me polish Urgent Help" Watch "For j2me polish Urgent Help" New topic

For j2me polish Urgent Help

nikunj anand

Joined: Apr 06, 2007
Posts: 13
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.

Arnb Sen
Ranch Hand

Joined: Feb 23, 2004
Posts: 145
Hi Nikunj,

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


Regards,<br />Arnab
Deepan Devadasan
Ranch Hand

Joined: Jan 25, 2007
Posts: 226

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...

Theepan Thevathasan
SCJP 1.4, SCWCD 1.4, SCMAD 1.0 SCBCD 1.3, MCP(.Net Frm 2.0 App Dev Fdn)
nikunj anand

Joined: Apr 06, 2007
Posts: 13
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.
I agree. Here's the link:
subject: For j2me polish Urgent Help
jQuery in Action, 3rd edition