BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 12-12-2008, 07:29 AM   #1
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default Adding JAR file to the project fails it to run, I want to use memory profiler.

Please Login to Remove!

I have an application built for BlackBerry in NetBeans using plugin dll from an installed JDE.

I want to use memory profiler in the JDE for this application so I have to load the Application in the JDE.

Now since it is time taking process to import all the (100s of them) files in the JDE I have made library out of the API that I can use in that form. I have not included testing samples in the Jar.

I create a new project in a new workspace, and a deploying UiApplication.
I run it and the icon of the application comes in the ribbon.

Now when I include the samples and the Jar library file, the emulator fails to show it on the ribbon, however the application cod file is generated successfully.
----------------------------
Alternatively I have another project that only uses the JAD and JAR from the application I have made in Netbeans instead of using the partial JAR library.

and that build runs fine.
but I cannot use memory profiler there as it needs to have breakpoints, from which some manipulations can be done in the profiler.
-----------------------------
I make checks so that I am not getting the "Class has Multiple Definition" Exception
------------------------------
earlier it was running fine but the jar had a smaller size.
can the size need to be fixed?
Regards
__________________
having new s for developers!!!
Offline  
Old 12-12-2008, 08:58 AM   #2
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Unhappy KXML the Culprit

Lately I have found that KXML build in the jar was the culprit.
I removed those KXML classes from the build and the app compiled without error.

But on running the APP I got NoSuchClassDefFoundError.

I think I have turned off some setting in the NetBeans. That's why the app was running well in the past.

Please help me locate the setting, or what are the steps of verification in the JDE side to check this problem.

Regards
__________________
having new s for developers!!!

Last edited by abhsax1978@hotmail.com; 12-12-2008 at 09:06 AM..
Offline  
Old 12-12-2008, 09:41 AM   #3
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default solution to verify classses

http://www.blackberryforums.com/deve...s-jde.html#top

I have tried the above still not gaining any success
Regards
__________________
having new s for developers!!!

Last edited by abhsax1978@hotmail.com; 12-15-2008 at 06:16 AM..
Offline  
Old 12-15-2008, 03:27 AM   #4
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default

I tried the above but it does not work. It says error loading class all the time.
Please help. How can we solve this in the NetBeans settings. How does the whole of the Application work, but on the other hand if i am using only the part of it as jar and rest of it as sample, it is compiling as cod but not showing the application Icon??
__________________
having new s for developers!!!
Offline  
Old 12-20-2008, 12:50 AM   #5
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default

Ok, till I get a viable solution, I am using the jad and jar as a whole in JDE; but making the library out of the portion of the Project, is not viable as the client wants that but the library does not run in the JDE. I have to provide my client the NetBeans Build and ask him to download NetBeans
Regards
__________________
having new s for developers!!!
Offline  
Old 06-15-2009, 07:24 AM   #6
abhsax1978@hotmail.com
Thumbs Must Hurt
 
abhsax1978@hotmail.com's Avatar
 
Join Date: Jun 2008
Location: NOIDA
Model: 8100
OS: 4.2.1.91
PIN: 2052AEF9
Carrier: Soft. Engg.
Posts: 111
Default

Use the new Proguard 4.x or later obfuscator
__________________
having new s for developers!!!
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM picture

Server SE-SS 07020 Server Express Single Drop-In - NEW - COMPLETE - Genuine OEM

$199.99



EMC2 HPE-S HPES Server picture

EMC2 HPE-S HPES Server

$465.00



3 year - VPS Server Virtual Hosting Linux VPS Server Linux VPS Hosting picture

3 year - VPS Server Virtual Hosting Linux VPS Server Linux VPS Hosting

$209.97



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



USED Moxa NPort5610-16 16-port RS-232 Serial Communication Server picture

USED Moxa NPort5610-16 16-port RS-232 Serial Communication Server

$284.58



MOXA NPORT 5210A SERIAL DEVICE SERVER picture

MOXA NPORT 5210A SERIAL DEVICE SERVER

$99.00







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