You Are Here:

Community: Developer Discussion Boards

#1 Old Angry FileConnection: Symbol not found? - 2007-02-19, 17:35

Join Date: Feb 2007
Posts: 10
gaogang
Offline
Registered User
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.
Reply With Quote

#2 Old Re: FileConnection: Symbol not found? - 2007-02-19, 19:23

Join Date: Dec 2004
Posts: 228
matrix241
Offline
Regular Contributor
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.*" ?
Reply With Quote

#3 Old Re: FileConnection: Symbol not found? - 2007-02-19, 21:14

Join Date: Feb 2007
Posts: 10
gaogang
Offline
Registered User
Quote:
Originally Posted by matrix241
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.*" ?
Mostly, I am using Netbean5.5 to build the project. I haven't tried to complied in in wtk environment. It actually works. But when I tried to complied it in Netbean, I got the same old problem. I use j2mepolish in my project. But I don't think that is the problem.
Reply With Quote

#4 Old Re: FileConnection: Symbol not found? - 2007-02-20, 09:40

Join Date: Aug 2006
Posts: 307
axs
Offline
Regular Contributor
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.
Reply With Quote

#5 Old Re: FileConnection: Symbol not found? - 2007-02-20, 11:29

Join Date: Feb 2007
Posts: 10
gaogang
Offline
Registered User
Quote:
Originally Posted by axs
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.
Thanks. But I am afraid I have connected the wtk25 to Netbean. In the project property, I actually have ticked JSR75 on. But the complier still complains about the same thing.
Reply With Quote

#6 Old Re: FileConnection: Symbol not found? - 2007-02-20, 12:41

Join Date: Feb 2007
Posts: 10
gaogang
Offline
Registered User
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.
Reply With Quote

#7 Old Re: FileConnection: Symbol not found? - 2007-02-21, 10:26

Join Date: Feb 2007
Posts: 10
gaogang
Offline
Registered User
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 With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia