Link to home
Get AccessLog in
Avatar of chalie001
chalie001

asked on

error when i compile

hi am having this error when compiling my project

Description	Resource	Path	Location	Type
'<>' operator is not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 274	Java Problem
'<>' operator is not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 324	Java Problem
'<>' operator is not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 336	Java Problem
'<>' operator is not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 353	Java Problem
'<>' operator is not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 410	Java Problem
'<>' operator is not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 543	Java Problem
'<>' operator is not allowed for source level below 1.7	DsnUtility.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 67	Java Problem
'<>' operator is not allowed for source level below 1.7	DsnUtility.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 78	Java Problem
Files cannot be resolved	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 95	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 51	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 57	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 64	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 69	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 76	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 83	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 96	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 116	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 122	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 129	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 142	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 156	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 173	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 192	Java Problem
Lambda expressions are allowed only at source level 1.8 or above	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 207	Java Problem
Multi-catch parameters are not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 115	Java Problem
Multi-catch parameters are not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 164	Java Problem
Multi-catch parameters are not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 224	Java Problem
Multi-catch parameters are not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 241	Java Problem
Multi-catch parameters are not allowed for source level below 1.7	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 265	Java Problem
Multi-catch parameters are not allowed for source level below 1.7	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 89	Java Problem
Path cannot be resolved to a type	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 93	Java Problem
Paths cannot be resolved	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 93	Java Problem
The import java.nio.file cannot be resolved	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 28	Java Problem
The import java.nio.file cannot be resolved	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 29	Java Problem
The import java.nio.file cannot be resolved	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 30	Java Problem
The method post(String, String, Route) in the type Spark is not applicable for the arguments (String, String, (Request request, Response response) -> {})	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 116	Java Problem
The method post(String, String, TemplateViewRoute, TemplateEngine) in the type Spark is not applicable for the arguments (String, String, (Request request, Response response) -> {}, JsonTransformer)	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 207	Java Problem
The method put(String, String, Route) in the type Spark is not applicable for the arguments (String, String, (Request request, Response response) -> {})	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 122	Java Problem
The method put(String, String, Route) in the type Spark is not applicable for the arguments (String, String, (Request request, Response response) -> {})	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 173	Java Problem
The method put(String, String, Route) in the type Spark is not applicable for the arguments (String, String, (Request request, Response response) -> {})	DsnResource.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 192	Java Problem
List is a raw type. References to generic type List<E> should be parameterized	PDFConverter.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 41	Java Problem
Resource leak: 'mongoClient' is never closed	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 48	Java Problem
Resource leak: 'mongoClient' is never closed	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 56	Java Problem
The constructor Mongo(String) is deprecated	UserAuthorization.java	/dsnweb/src/main/java/co/za/hostanme/dsn/common	line 30	Java Problem
The import com.google.gson.Gson is never used	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 14	Java Problem
The import com.mongodb.client.MongoDatabase is never used	UserAuthorization.java	/dsnweb/src/main/java/co/za/hostanme/dsn/common	line 15	Java Problem
The import com.mongodb.MongoClient is never used	UserAuthorization.java	/dsnweb/src/main/java/co/za/hostanme/dsn/common	line 12	Java Problem
The import com.mongodb.MongoClientURI is never used	UserAuthorization.java	/dsnweb/src/main/java/co/za/hostanme/dsn/common	line 13	Java Problem
The import java.io.File is never used	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 16	Java Problem
The import java.net.InetAddress is never used	AuditTrailUtil.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 17	Java Problem
The import java.net.UnknownHostException is never used	AuditTrailUtil.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 18	Java Problem
The import java.net.URI is never used	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 17	Java Problem
The import java.util.Date is never used	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 18	Java Problem
The import java.util.HashMap is never used	JsonTransformer.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 15	Java Problem
The import org.apache.pdfbox.exceptions.InvalidPasswordException is never used	PDFConverter.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 15	Java Problem
The import spark.Response is never used	JsonTransformer.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 12	Java Problem
The method getDB(String) from the type Mongo is deprecated	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 49	Java Problem
The method getDB(String) from the type Mongo is deprecated	Bootstrap.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 58	Java Problem
The method getDB(String) from the type Mongo is deprecated	UserAuthorization.java	/dsnweb/src/main/java/co/za/hostanme/dsn/common	line 32	Java Problem
The serializable class Signal does not declare a static final serialVersionUID field of type long	Signal.java	/dsnweb/src/main/java	line 11	Java Problem
The static field ReportsController.signal should be accessed in a static way	ReportsController.java	/dsnweb/src/main/java/co/za/hostanme/dsn/pdf	line 47	Java Problem
The static method getDSNReport(String) from the type ReportsController should be accessed in a static way	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 111	Java Problem
The static method getDSNReport(String) from the type ReportsController should be accessed in a static way	DsnService.java	/dsnweb/src/main/java/co/za/hostanme/dsn	line 220	Java Problem
The value of the field JsonTransformer.gson is not used	JsonTransformer.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 19	Java Problem
The value of the local variable a is not used	PDFConverter.java	/dsnweb/src/main/java/co/za/hostanme/dsn/utils	line 80	Java Problem
The value of the local variable pword is not used	UserAuthorization.java	/dsnweb/src/main/java/co/za/hostanme/dsn/common	line 36	Java Problem
The value of the local variable userName is not used	UserAuthorization.java	/dsnweb/src/main/java/co/za/hostanme/dsn/common	line 35	Java Problem
Unnecessary @SuppressWarnings("unchecked")	Signal.java	/dsnweb/src/main/java	line 25	Java Problem

Open in new window

Avatar of gurpsbassi
gurpsbassi
Flag of United Kingdom of Great Britain and Northern Ireland image

You're sing the wrong version of Java.
Im assuming you have java 1.5. However you are using java 1.7 syntax e.g. diamond operator.
ASKER CERTIFIED SOLUTION
Avatar of CPColin
CPColin
Flag of United States of America image

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
Avatar of chalie001
chalie001

ASKER

correct
correct