posted 18 years ago
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
menumidlet.java and dummy.java
when i am trying to run build.xml with target as j2mepolish it gives me
this error.
init:
j2mepolish:
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.