Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RunJavaApplication As Executable Jar

 
Nabeel Ahmad
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I have an java application running fine in Eclipse.But when i try to run application as .jar in console i am getting the following excepti




Any help.How to solve this problem.


 
sammaiah kyatham
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Welcome to Javaranch!!

Regarding your problem, you have used wrong syntax for specifying Main-Class in Manifest file. Update it with below.

Main-Class: com/wateen/cvp/test/CRMServTest


Thanks,
Sammaiah
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic