Well, I'm gonna be brave and do what I can. Nobody critic me until more information from Anna Ferrari.
First, your english is pretty good - let's focus on the code and problems.
[Anna Ferrari:] I test a java class (source download from internet) within tomcat embedded (5.5.25). There are many sources on the internet, and what test class ?
[Anna Ferrari:] Inside Eclipse (3.2) my programm work fine. I make a jar file (with eclipse), but when I launch my application I have "Could not find main class". Eclipse understands a lot of things about java, and may not need a main class. A main class is a class with a
main(String[] args) method, that's what a main class is - end of discussion. ( that's idiomatic and does not mean any mean meanings )
[Anna Ferrari:] I want to know if it is possible to run a web application without formally install and launch tomcat. I do it all the time, but some patience is really necessary.
[Anna Ferrari:] Main line is : Your main()
method ... and where did
Embed55(); come from, may we see the sources ?
java.util.LinkedList<Integer> list = new java.util.LinkedList<Integer>(); You have an extra code tag in that line, you can edit your own posts. Clumsy but necessary.
tomcat.startTomcat(); ... where did this come from ? { I am not begin critical, it just seems out of place in the scope of your question }
//---- THIS IS MY WEB APPLICATION Applications ( in Tomcat ) are in some other files, called extensible markup language, they harrow me. I will let others tell you what those files are and where they are used. What is gestlav ? Why do you call Thread.sleep() ?
[Anna Ferrari:] If I make a jar file (with eclipse) and put it in C:\Embed.jar when I click twice jar file I have : Could not find main class eclipse may .... Tomcat and running apps ( applications ) sorta gets things mixed together that sounds to me like what the answer to your question is is that an application, a stand-alone application has a main method:
which I don't think eclipse and Tomcat working together are going to be especially concerned about.
When you go outside of eclipse and Tomcat and start trying to run an application, lets just say you need to expect to do some reading and spend some time getting acclimatized to what is going on.
http:\\localhost:8080\gestlav\ is different from a stand-alone program.
after Main-Class it is one blank line doesn't matter, a few blank lines are not going to be of excessive concern.
[Anna Ferrari:] when I click twice jar file I have : Could not find main class Better just start reading and read some more, then come back and post again. Servlets and writing programs have some differences, one-click is not going to launch an app until more work is done.
[ November 25, 2007: Message edited by: Nicholas Jordan ]