BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 03-24-2008, 04:52 AM   #1
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default Starts an application - problem !

Please Login to Remove!

I have an application! The source files are in packages like "com.mycompany....". The main application .java file is in out of that package tree, it is in the src directory. The application is starting and everything is ok. I decided to move the main .java file in the package "com.mycompany" and build the project again. The application is not starting firstly, and throws an exception, i don't know what exactly, because i catches the Exception objects. When i starts the application again, it starts all right. That is the same every time i build the application when the main .java file is not in the src folder. Do you know what is the problem? Does the blackberry devices/simulators (where i tested this strange behaviour) want the main .java file not to be in a package? Or there is a place in the .alx or .jad file to set the path to the main .java file ? Thanks !
Offline  
Old 03-24-2008, 05:07 AM   #2
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default

Well, i am sorry about that, the problem is not there. The NonPersistableObjectException is thrown! But it will be interesting to know how the blackberry finds the main classes, as nowhere in the .alx or .jad file the path is specified.
Offline  
Old 03-24-2008, 10:10 AM   #3
richard.puckett
Talking BlackBerry Encyclopedia
 
richard.puckett's Avatar
 
Join Date: Oct 2007
Location: Seattle, WA
Model: 9020
PIN: N/A
Carrier: T-Mobile
Posts: 212
Default

rapc will use the first "main" method that it finds on your build classpath; if your "src" folder is on your build classpath then it will get picked up. Do you have another "main" method somewhere in your app or is "src" included in your classpath?

Your exception means that you're persisting an object that does not implement Persistable.
__________________
Do your homework and know how to ask a good question.
Offline  
Old 03-24-2008, 11:00 AM   #4
pa4o85
Thumbs Must Hurt
 
Join Date: May 2007
Location: Bulgaria
Model: none
PIN: N/A
Carrier: Mtel
Posts: 150
Default

Well i fixed the problem. It was not because of that i moved the position of the main class. The problem was that i have a class that implements Persistable but the interface did not extends Persistable, where the problem was.
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


Avaya G860 VoIP Media Gateway System 700427263 picture

Avaya G860 VoIP Media Gateway System 700427263

$150.00



Unifi Talk UVP Touch VOIP IP Phone Unlocked picture

Unifi Talk UVP Touch VOIP IP Phone Unlocked

$125.00



Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone picture

Vtech ErisTerminal VSP861 Touchscreen Color Desktop - Voice-Over-IP VOIP Phone

$14.99



Polycom Vvx 601 VoIP 16 Line Business Phone 4.3

Polycom Vvx 601 VoIP 16 Line Business Phone 4.3" HD Touchscreen PoE With Stand

$28.95



Nextiva X-835 SIP Color Deskset VoIP Phone Black New In Box picture

Nextiva X-835 SIP Color Deskset VoIP Phone Black New In Box

$54.99



PANASONIC KX-NT553 Business IP Handset VoIP Office Phone picture

PANASONIC KX-NT553 Business IP Handset VoIP Office Phone

$49.99







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