| Reply | « Previous Thread | Next Thread » |
|
I am using NetBean 5.5 and WTK2.5 beta. They supposed to support jsr75 intially. But when I try to import javax.microedition.io.file.*; the compiler complaints "package javax.microedition.io.file does not exist. I dont know why. Could anyone tell me how to solve this problem?
By the way, I have added jsr75.jar in the bundled libraries and resources in the project property. |
|
On wtk 2.5 project settings did you add the apis on the permissions tab? and on the API selection tab ( check the box PDA profile jsr-75 )?
Have you tried to "import javax.microedition.io.*" ? |
|
Quote:
|
|
If I'm not mistaking, you are trying to use the WTK 2.5 which is actually not connected to your netbeans. Am I right? If you are using the MobilityPack's default emulator with the *.jar(s) from the WTK 2.5, then it's not a solution.
Try this in netbeans: "Tools" -> "Java Platform Manager" -> "Add Platform..." Check the "Java Micro Edition Platform Emulator", and press "Next" The netbeans should define the WTK 2.5 on your computer (if it was successfully installed), and add it into the list of available emulators. Later in project properties you should be able to select the WTK 2.5 emulator from the "Emulator Platform" selection, and use JSR 75 without big troubles.
Last edited by axs : 2007-02-20 at 10:31.
|
|
Quote:
|
|
The error message reads "When an API-class was not found, you might need to define where to find the device-APIs. Following classpath has been used: [C:\Program Files\J2ME-Polish\import\midp-1.0.jar;C:\Program Files\J2ME-Polish\import\cldc-1.0.jar;].
" It looks like jsr75.jar is not referenced. But I don't know how to reference it in Netbean. I have added it to the libraries/resources in the project property. |
|
Finally, I found the solution myself.
j2mepolish replaces the project properties with a build.xml. build.xml gives the complier a list of devices, such as Nokia/Series60, SonyEric/P900 etcs. The compiler will build the jad/jar files for each of the device listed in build.xml. Although all deviced listed in my build file support jsr75, but it is not included initially. The device ability can be extended by adding codes to the device database, a file called devices.xml which could be found in j2mepolish folder. In the devices.xml, pdaapi (defined in apis.xml), which defines jsr75 in j2mepolish must be added to javapackage value. The code I changed is listed as follow: before modification: <capability name="JavaPackage" value="mmapi, wmapi"/> after modification: <capability name="JavaPackage" value="mmapi, wmapi, pdaapi"/> problem solved. |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Prototype SDK 2.0 setup problem | jackmcardle | Mobile Java Tools & SDKs | 4 | 2007-01-09 17:21 |
| GoogleIt | deepika.mangla | General Symbian C++ | 4 | 2007-01-08 02:07 |
| SyExpat + problem + memmove + Carbide Express | pearman | General Symbian C++ | 2 | 2006-10-14 23:21 |
| Fail to build syexpat 1.3 under 2nd FP3 | harry_zhang | General Symbian C++ | 9 | 2006-07-27 14:19 |
| S80 Platform SDK and Visual Studio .NET Linking Error | jayantjain | Mobile Java Tools & SDKs | 1 | 2005-10-07 23:14 |