The archive: which is referenced by the classpath, does not exist.

In this video I have shown how you can solve the error like the one shown below, The archive: C:/Users/MIRITPC/Desktop/New folder (5)/New folder/mysql-connector-java-5.0.0-beta-bin.jar which is referenced by the classpath, does not exist. This error comes if when the jar file is dislocated from the path you added to the class path. To get the error …

Continue reading

The goal you specified requires a project to execute but there is no POM in this directory

On executing the mvn generate the below error will come sometimes mvn archetype:generate -DgroupId = com.chillyfacts.helloworld -DartifactId = helloworld -DarchetypeArtifactId = maven-archetype-webapp -DinteractiveMode = false [INFO] Scanning for projects… [INFO] ———————————————————————— [INFO] BUILD FAILURE [INFO] ———————————————————————— [INFO] Total time: 0.147 s [INFO] Finished at: 2017-11-26T21:08:47+03:00 [INFO] Final Memory: 7M/116M [INFO] ———————————————————————— [ERROR] The goal you …

Continue reading

sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection

Error java.lang.ClassCastException: sun.net.www.protocol.http.HttpURLConnection cannot be cast to javax.net.ssl.HttpsURLConnection at com.chillyfacts.com.Send_HTTP_Request.call_me(Send_HTTP_Request.java:21) at com.chillyfacts.com.Send_HTTP_Request.main(Send_HTTP_Request.java:13) You might be using URL obj = new URL(url); HttpsURLConnection con = (HttpsURLConnection) obj.openConnection(); Solution,Convert it to http protocol URL obj = new URL(url); HttpURLConnection con = (HttpURLConnection) obj.openConnection(); See the Example shown in this link, http://chillyfacts.com/java-send-http-getpost-request-and-read-json-response/

Continue reading