Win a copy of Java Challengers this week in the Java in General forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Eclipse runtime error

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
While I tried to run a program in eclipse, I got this error:
Can anyone suggest me how to fix ?
jr1.PNG
[Thumbnail for jr1.PNG]
 
Marshal
Posts: 26531
81
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What makes you think that is an error?
 
Md Zuanyeed Kamal
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how can I remove it so that I do not see it in terminal everytime I run the program ?
 
Master Rancher
Posts: 4284
38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there a print statement in the program that prints it?
 
Saloon Keeper
Posts: 8093
71
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Because it is in red I'm assuming it would have to be printed by
 
Md Zuanyeed Kamal
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Carey Brown wrote:Because it is in red I'm assuming it would have to be printed by


everytime I run a program, this thing appears. i didn't print it
 
Carey Brown
Saloon Keeper
Posts: 8093
71
Eclipse IDE Firefox Browser MySQL Database VI Editor Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any time you run ANY of your Java programs under Eclipse? Even "Hello World"?
It could be an Eclipse setting, the path, or a library you're including.
 
Marshal
Posts: 3506
496
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is happening because it is specified in an environmental variable - either in your shell profile or some tooling:
    _JAVA_OPTIONS=-Djava.net.preferIPV4Stack=true

To check if it has been set in your shell try:
    Linux: echo $_JAVA_OPTIONS
    Windows: echo %_JAVA_OPTIONS%
 
Md Zuanyeed Kamal
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ron McLeod wrote:It is happening because it is specified in an environmental variable - either in your shell profile or some tooling:
    _JAVA_OPTIONS=-Djava.net.preferIPV4Stack=true

To check if it has been set in your shell try:
    Linux: echo $_JAVA_OPTIONS
    Windows: echo %_JAVA_OPTIONS%



I deleted it from environmental veriable and this message went off. Thanks all
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic