Errors faced during building of java applications

Errors  :


1.String cannot be resolved to a type

Why this error occurs   : when your required JRE is missing (for the current Java version) 

How to add JRE in your projects 

1. right click on projects ->properties->Libraries->ClassPath->add external Jar ->path of your jre here(eg. C:\Program Files\Java\jre1.8.0_281\lib)



link:
https://stackoverflow.com/questions/7651768/string-cannot-be-resolved-to-a-type-java-rad





Comments

Popular posts from this blog

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver