I am using eclipse, but I couldn't get the plug in to work correctly, so I
followed the other steps on the FAQ part, where I just create a lib folder,
and add the .jar files to it each time I create a project then add them to
the Java Build Path. 

I do not have a main, the code I posted is exactly and only what I'm using.
I have the toggle button example working by using the same method as the
HelloBXML example. I just use :

BXMLSerializer bxmlSerializer = new BXMLSerializer();
window = (Window)bxmlSerializer.readObject(ToggleButtons.class,
"toggle.bxml");
window.open(display);

to load and show the bxml file. I just click Run > Run As > Pivot
Application. Because this doesn't have a main() method, I assumed it uses
the startup() method instead. Since this worked properly, I thought the:

initialize(Map<String, Object> namespace, URL location, Resources
resources) 

method in the PushButton project where my probelm currently is worked in a
similar way. I figured there was a problem with linking the .bxml file to
the .java or .class files. Im not sure how the adding listeners and alerts
can work with these buttons declared in the bxml files otherwise. 

If there was an fully functional example you can send me or point me to that
would be great. I did download all of the source files from the Apache Pivot
Tutorial site, but again, those arent working without moving them
around/linking them properly.  

I do apologize for the naivety and for being so new. 

thanks again. 

Mike. 

--
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/Application-class-name-is-required-tp2894336p2894903.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to