BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 08-16-2008, 04:21 AM   #1 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Package org.ksoap does not exist

Please Login to Remove!

Hi,

I have successfully preverified the ksoap2 package. When I include the package in the project by putting in the lib folder in the project, I get this compile time error saying "package org.ksoap2" does not exist.

Any idea whay this could be happening. I preverified the jar using the preverify.exe in the JDE.

Thanks in advance
__________________
Smart People ask for Help!!!
Offline  
Old 08-18-2008, 06:08 AM   #2 (permalink)
Thumbs Must Hurt
 
baran_khan's Avatar
 
Join Date: Apr 2008
Model: 9500
PIN: N/A
Carrier: Airtel
Posts: 110
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Fixed it!!!

The issue was not referencing the ksoap project in the existing project.
__________________
Smart People ask for Help!!!
Offline  
Old 10-13-2008, 08:20 PM   #3 (permalink)
New Member
 
Join Date: Oct 2008
Model: 8130
PIN: N/A
Carrier: Bell Mobility
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default What was the fix

Hi baran,

What was the fix? How did you reference the ksoap project to your existing project?

thanks,
Sundar
Offline  
Old 10-13-2008, 09:59 PM   #4 (permalink)
Knows Where the Search Button Is
 
Join Date: Oct 2008
Model: 7100T
PIN: N/A
Carrier: internal
Posts: 15
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by skraj72 View Post
Hi baran,

What was the fix? How did you reference the ksoap project to your existing project?

thanks,
Sundar
I had the same thing until I found a post on this forum which spelt out how to use ksoap... The post said something like ... Create a project called lib copy the pre-verified version of ksoap2 jar file from Richards post. Make that project a dependancy of the main project.

I attempted to run the kSoap amazon example from the real device.
On the simulator it gets as far as doing network I/O and fails with network connection problems but on the real device immediately on loading it gets a uncuaght exception java.lang.SecurityException... I went through the config -> advanced -> applications and set the xxx8220;permissionsxxx8221; to allow for everything. Still no changexxx8230;

Is there something I need to do...? Do I need to sign the application or soemthing before it will talk to the network...?

I have been on this project for like 5 days and they are ready to kick me off it and move onto Adobe AIR or something.

When I try to preverify I get something like:
Code:
C:\BB>"C:\Program Files\Research In Motion\BlackBerry JDE 4.6.0\bin\preverify.ex
e" amazon.jar lib\ksoap2-j2me-core-2.1.2.jar
Error preverifying class org.ksoap2.samples.amazon.AmazonDemo
    java/lang/NoClassDefFoundError: javax/microedition/lcdui/CommandListener

Also when I try to search these forums with java.lang.SecurityException I get an error saying the word excluded: too comon or not found... or something.
Not even this post comes up in the search results.

Regan
__________________
www.pymblesoftware.com
P.O. Box 121,
Pymble,
NSW 2073
AUSTRALIA. +61 2 99830308

Last edited by PymbleSoftware : 10-13-2008 at 10:43 PM.
Offline  
Closed Thread


Thread Tools

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.