Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 43
Registered: ‎11-24-2011
My Device: Perl
My Carrier: BB
Accepted Solution

How to reduce the no of class files on bin folder

Hi, Plz help me

 

I am new on BB development

 

I create a project there are 100 .class files are created on my  projects bin folder ex:

myclass.java files give me myclass.class and myclass$1.class files .

 

Due to this my project is not loaded on 8520 simulator .

 

How to avoid the creation of this $.class files I am using sdk1.5

 

Is there any setting on eclipse

 

Thanks In Advance

 

Mahesh

Developer
Posts: 17,012
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to reduce the no of class files on bin folder

100 class files should not pose a problem.
i just checked two of my projects where i generate a lot of classes (webservices).
1915 classes in one, 1493 in the other.

$.class usually mean that you use an inner class or anonymous inner class i think.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: How to reduce the no of class files on bin folder

Agreed with Simon. No of classes does not create issue. remove all the inner  classes and put the code in main classes without affecting the coupling of the application.

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to reduce the no of class files on bin folder

"remove all the inner  classes and put the code in main classes "

I recommend that you ignore this advice.  It makes no sense to me and in my opinion, there is something else that is stopping you loading your application.

 

I suggest we start form a common base.  Can you try one of the sample applications. Make sure that it loads to the phone.  Let us know what happens. 

 

Also, you say "Due to this my project is not loaded on 8520 simulator ".  What evidence do you have that this is the case?

Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: How to reduce the no of class files on bin folder

@ peter you should read the full line

 

"remove all the inner  classes and put the code in main classes without affecting the coupling of the application."

 

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to reduce the no of class files on bin folder

If, as you say in your previous post, "No of classes does not create issue. ", then why are you suggesting that maheshqtech remove the inner classes?

 

That is the advice I was suggesting maheshqtech should ignore. 

Developer
Posts: 434
Registered: ‎07-23-2012
My Device: Blackberry 10
My Carrier: Orange

Re: How to reduce the no of class files on bin folder

Number of classes never cause issue. We have developed so many enterprise applications where some time classes’ count reached to 100+. I have suggested that thing if he still want to remove the number of classes.

Thanks
-------------------------------------------------------------------------------------
Press the Accept as solution Button when u got the Solution
Press Kudo to say thank to developer.
-------------------------------------------------------------------------------------.
Contributor
Posts: 43
Registered: ‎11-24-2011
My Device: Perl
My Carrier: BB

Re: How to reduce the no of class files on bin folder

It will work fine Thanks