Forum Discussion
You can check what version of java from Ready API.
As the error says, there is no such method. Lot of changes to Date in java 8.
If there are multiple places using the same code, then try considering to use library. Otherwise use search and replace in the project file in your preferred text editor, have a backup before doing so.
According to the ReadyAPI menu: Help -> System Properties the Java version used is 12.
My local machine I have Java 8 installed. I have not changed anything as far as the Java version on my local machine when I updated from 3.3.0 to 3.3.1, so I'm confused as to what changed with ReadyAPI?
I understand what you are saying I would like to know what is happening so I can better understand how Ready API works. If they are using an internal Java version from my own, that would be good to know. I have tried your fix and it does work, but why is this now necessary and why can I not use what I currently have instead? If there is going to be an update of the Java version being used it would be good of SmartBear to note that in there version update notes.
I will remain on 3.3.0 until I can find time to work these things out. I do have groovy in the XML requests, so a library won't help here.
Thank you nmrao for your help here.
- PrathapR5 years agoFrequent Contributor
1) I tried your solution, It's working fine(I checked for current time). Thanks for work around. But I have to look for LocalDate.now() how it work for time manipulations(Previous dates, future dates, different time zones, etc..).
2) Java Version: I'm bit confuse here, If I''m not wrong from even Ready API 3.3.0 also using Java 8(or more), they did update Java12 for 3.3.1. So in this case both versions have latest Java & 3.3.1 should work with date.formate. But not sure where we are missing.
- nmrao5 years ago
Champion Level 1
So, Date.format might be deprecated in Java 8 and removed in Java 12 which is used by ReadyAPI.
PrathapR, this is not workaround, that is the correct way.- khanchett5 years agoContributor
The 3.3.0 is also using 12.
So my guess is that Ready API maybe updated the 12 version to a more recent version of 12 and that the deprecated version of date is now removed?
So if I'm not mistaken to my question, ReadyAPI is then using internal Java files, not what is on my local machine?
Thank you!
- nmrao5 years ago
Champion Level 1
Right.