© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Cannot make static reference in non-static field - Java Community | Help. Code. Learn.
JC|HCL
Java Community | Help. Code. Learn.
•
2y ago
•
9 replies
rainymc_
Cannot make static reference in non-static field
I
'm trying to call a method for my code to print multiple
"dice rolls
" and am getting an error
(attached
)
Java Community | Help. Code. Learn.
Join
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!
27,733
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
invalid reference to non exposed type of module
JC|HCL
Java Community | Help. Code. Learn. / java-help
5mo ago
Can I make a superclass's variable static final in subclass?
JC|HCL
Java Community | Help. Code. Learn. / java-help
15mo ago