Win a copy of Transfer Learning for Natural Language Processing (MEAP) this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

Problem with JDK 14

 
Ranch Hand
Posts: 459
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web application created with Spring Boot under Maven and compiled for JDK 14; for a few days it has run perfectly under both run and debug, but today, although it runs fine,  I am getting an error message trying to debug
"Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release."
Maybe I was compiling for JDK 8 before, but I want to use JDK 14 for the future. I have seen many discussion in the Internet but I haven't found a solution.
 
Rancher
Posts: 3599
38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the  -Xverify:none option relates to java interpreter, not to compiler. So, the issue is not related to your bytecode.
 
Alejandro Barrero
Ranch Hand
Posts: 459
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Mikalai for your prompt response. However, I am not particularly interested in the cause of the problem; I wish I could find a solution. A short time ago, I wanted to run with an earlier version of java, but I only found version 5 in the IDE (Eclipse) and when I selected it I got syntax errors, so I installed JDK 8 and the application runs fine. Unfortunately, running on debug, the findClass method of URLClassLoader throws a ClassNotFoundException. The problem that I cannot debug the application continues; I am still hoping for a solution.
 
Ranch Foreman
Posts: 95
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Alejandro Barrero wrote:I am getting an error message [...]
"Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release."


No, you don't. This is not an error. It's not even a warning. It's just an information that the JVM was given some (old) CLI parameters that were now marked as deprecated - and may (or may not) removed in a later major version like Java15 (or some even later one).
If you want to "fix" it just remove those CLI parameters. Otherwise: just ignore it.
 
Alejandro Barrero
Ranch Hand
Posts: 459
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bob for your replay. I did somehow understand that the problem was with the JVM; I wished to find out how to solve the problem; I didn't see any indication in the message. What I manged to do was to reverse the version of Eclipse to a previous one; so far it is working fine. I am only hoping that that the next update will work fine; so far I haven't found out how to stop the updates.
 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic