Meaningless Drivel is fun!
The moose likes Java in General and the fly likes  error at runtime  trying static initializer first time please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark " error at runtime  trying static initializer first time please help " Watch " error at runtime  trying static initializer first time please help " New topic
Author

error at runtime trying static initializer first time please help

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 692

below is the error at runtime
trying static initializer first time please help





The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3899
    
    9

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


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: error at runtime trying static initializer first time please help
 
It's not a secret anymore!