Skip to content

Building a REST API around Whatsapp4j #257

Answered by Auties00
jain-jigar asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

I am trying to create REST API around Whatsapp4j using Spring boot (v 2.7.10). No matter what I try I am getting the following error

java.lang.UnsupportedClassVersionError: Preview features are not enabled for it/auties/whatsapp/api/Whatsapp (class file version 61.65535). Try running with '--enable-preview'

I am using VS Code as my editor and have set settings.json as

{
    "java.configuration.runtimes": [
        {
          "name": "JavaSE-17",
          "path": "C:\\Program Files\\Eclipse Adoptium\\jdk-17.0.6.10-hotspot",
          "default": true
        },
    ],
 
}

My POM.XML is

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmln…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Auties00
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants