Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar

 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I followed the direction on sun's site how to create executable jar file but i didn't get far i get an error when trying to run the jar file.
What i did was after creating jar file i modifed the manifest file to have an entry for Main-Class: myClass
but when running the jar file i get no main class is found. What can cause this? Can this be effected by a classpath ? Do i have to include a classpath information into manifest entry?
Thanks.
 
Barry Andrews
Ranch Hand
Posts: 523
C++ Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you trying to run the jar file? From command line? Can you give exactly what you typed in? Also, I don't know if this makes a difference, but I think you need to create the manifest file before making the jar. Give some more information, and I will try to help.
Thanks,
Barry
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for replying i solved the problem.
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Don't hold out on us, what was the solution?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic