Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

executing a jar  RSS feed

 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure if this is something very specific to my class or not. When I run a dot class file from the dos prompt using the java command, it runs fine. When I compile the same class file into a jar file (setting up the manifest file to point to this class as its main class), and run the jar file using the java command, I get an exception when I exit.
The exception is an IllegalThreadStateException.
It appears that a class file triggered from within the jar and triggered from the dos prompt are not in the same state. Is there anything else I need to set into the manifest or something? I don't have access to the source code of this class file - I'm only running it.
Thanks!
Paul
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!