My Oracle Support Banner

ODST Oracle.security.restsec.jwt - Class JwtToken Jar Files Location (Doc ID 1992659.1)

Last updated on MARCH 02, 2018

Applies to:

Oracle Security Developer Tools - Version 11.1.1.7.0 and later
Information in this document applies to any platform.
***Checked for relevance on 03-MAR-2018***

Symptoms

1. On : 11.1.2.2.0 version, Install - Framework

2. Trying to configure JSON WebToken is failing to configure with missing classes.

ERROR
-----------------------
$ javac myJWT.java
myJWT.java:12: package oracle.security.restsec.jwt does not exist
import oracle.security.restsec.jwt.JwtToken;
  ^
myJWT.java:16: cannot find symbol
symbol : class JwtToken
location: class myJWT
  JwtToken jwtToken = new JwtToken();
  ^
myJWT.java:16: cannot find symbol
symbol : class JwtToken
location: class myJWT
  JwtToken jwtToken = new JwtToken();
  ^
myJWT.java:18: package JwtToken.SIGN_ALGORITHM does not exist
  jwtToken.setAlgorithm(JwtToken.SIGN_ALGORITHM.RS256.toString());
  ^
myJWT.java:19: cannot find symbol
symbol : variable JwtToken
location: class myJWT
  jwtToken.setType(JwtToken.JWT);
  ^
myJWT.java:28: incompatible types
found : java.lang.String
required: int
  return jwtString;
  ^
6 errors

 

3. Defining CLASSPATH as documented on:

Fusion Middleware Reference for Oracle Security Developer Tools (11.1.1.7.0)

13 Oracle JSON Web Token

13.2.2 Setting the CLASSPATH Environment Variable

(  http://docs.oracle.com/cd/E28280_01/security.1111/e10037/jwt.htm#SDTRG1165  )

 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
 13.2.2 Setting the CLASSPATH Environment Variable
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.