Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error at runtime trying static initializer first time please help

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
below is the error at runtime
trying static initializer first time please help



 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hint: Check the below java invocation with the code you used to extract the value in the class. And you can't have spaces between the -D and the name used.

java -D myApp.StaticBlock.counter=47 TestStaticBlock
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic