0

I have a stand alone project in my eclipse.There are few external jar as well.The programme is executing well and giving required result. Now i need it to run from command prompt.and i just want to run the class file generated by eclipse. how i will be able to run it.When i am tring to run it from commend prompt it is giving class not found exception.I also tried to make an executable jar,but that is also not running.do i need to create executable jar or i can simply run it from command prompt..tell me the way out..

thanks koushik

3
  • this is one good reason why not to use IDEs, and use Gmake. you always know exactly what files are created and how they run. Commented Jul 4, 2011 at 5:46
  • Thanks harry.But can u please tell me how exactly i will run it from comnd prmpt..i mean where i will put those external jar etc... Commented Jul 4, 2011 at 5:47
  • Can you give more details on "but that is also not running"? Commented Jul 4, 2011 at 5:53

2 Answers 2

2

A step by step guide at

I recommend you to go through jar, class path and other basic building blocks of java for eg check this about jar

Sign up to request clarification or add additional context in comments.

Comments

0

try using this command java -cp . package.name.className

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.