"Main type not specified"?

I have the program built and now it is asking for something called a main type, where would I find such a thing?

Basically, what program?

If you’re talking about the test applications, each of them contains a main method. So every Test* under src/jmetest should do.

I was trying to run jME from a CVS using Eclipse 3.0.2, it was recommended for using jME.

jME itself is a library, so that is why I asked which program you would like to run.

If you want to take a look at what can be done with jME you need a main class which implements an application that uses jME. Therefore I suggest the test classes, which implement test programs showing different features of the library.

I’m sorry but I am still not sure how to set it up. I haven’t found any classes that it accepts or where to put them. As for a program I would just be able to run anything such as test program so I can get it up and working so I can begin building a game. There is a starter guide I know but I don’t know how to get and set up those first files, the guide just handles code.

When java complains about a main type it’s saying that you’re trying to run a class without a main function. Add a public static void main(String[] args) to the class you’re trying to run to make it work.

Do you know what you are trying to run? What do you expect jME to do when it runs anyhow?

I am trying to get jME to run at least a basic line of code, at least “Hi” as I have said I am using eclipse and I don’t know how to give it the information it needs to run th jME library.

I was hoping to use the first script from the starter guide and continued from there but I have not had any luck getting a properly named file in the correct place that the program can run, It seems I was saying that it is requiring something that has to do with main type I assume that is just a file that I don’t know how to write or where to put. The starter guide does not cover placement for example.

I hope this is clear enough, becuase I don’t know how I can improve my clarity (Is this not understandable :? ).

First, you can’t run jME. jME is not an application (there is nothing for it to run). It’s an API, that gives applications that others (you) write the tools it needs. Thus, you can not run the jme.jar.

There are individual tests that you can run contained in the jme-tests.jar.

I am aware actually, that jME is a not an application in itself, what I am trying to do is run something, anything with it and I can’t figure out how, are you saying that I should be able to call on jME in a script (oh my I think I didn’t realize it was that simple all along).

Main types are those java classes wich contain a static main() method. Only those classes may be executed as java applications.

For me it looks like you didn’t configure the project properly and you are trying to run some class from outside of eclipse.

Did you follow these instructions? http://jmonkeyengine.com/jmeforum/viewtopic.php?t=1785

Because if you didn’t, then please do it now. Step 4 is exactly what you need to run one of the jme demos.