How to Invoke a main class in a jar file from my project

HiI am a new user of the Sun Java Studio enterprise. I would like to know how i can invoke a main method in a jar file associated to the project.regardsNisanth
[187 byte] By [ChubbyCheek] at [2007-11-26 8:28:05]
# 1

Could you please clarify: do you want to run your project or a project from an independent jar?

In the first case just select Run Project from the project context menu or select a class with main method and click Run File in the class context menu.

Regarding the second case:

- I don't think there is such a feature in the IDE (running third party jars is not an IDE function). Could you explain why you need this?

mik_k at 2007-7-6 21:44:39 > top of Java-index,Development Tools,Java Tools...
# 2
Yeah i want to invoke the main method which is available in an independent jar file.
ChubbyCheek at 2007-7-6 21:44:39 > top of Java-index,Development Tools,Java Tools...
# 3

You cannot run a jar file from within the IDE. Why would you need such functionality?

However if you just want to make the jar file runnable, add the Main-Class entry to its manifest. It should point to the class containing a main method. It will be called when a jar file is executed.

KSorokin at 2007-7-6 21:44:39 > top of Java-index,Development Tools,Java Tools...
# 4
Ok. I will use eclipse to do that. I am using an application which loads my class into it using Class.forName method. i want to debug into my code running the application. Thank you all for the inputs
ChubbyCheek at 2007-7-6 21:44:39 > top of Java-index,Development Tools,Java Tools...