In a Codename One project, say project "PRJ1" i created on NetBeans, I defined a file that i shouldn't have as an Action event.
Specifically, in the designer interface to edit "theme.res" (I'm using the latest version of NetBeans & Codename One), I right-clicked a button, then in the drop-down menu Events -> Action event, entered a .jar file.
Ever since, i'm getting the error:
Error opening Netbeans.java.IOException: Cannot run program "..\MyApp.jar" CreateProcess error=193, %1 is not a valid Win32 application
whenever i get anywhere near to events.
I deleted PRJ1 and created a PRJ2 from scratch. When i tried to define an action event again the same way, i ended up with the same error in the pop-up window right after I clicked Action event or any other one of the events. i've got the same thing when i define a new component on a new project. "MyApp.jar" seems to have stuck on my Codename One for good. i'm not being able to get rid of it.
My questions are:
How can i define an action solely on source code without using the designer interface?
When I define an action event the way i did by using the designer interface, how does this get into the code? I'm seeing the methods added in the StateMachine.java. From what i see, that is all there is as far as the source code goes. Is there anything else changing anywhere in .xml or other confign files? I manually searched the files in the project directory. No trace of MyApp.jar anywhere.
Thanks in advance.
I'm new to Codename One. This may be a simple Q, but burned so much of my time.