Error: Could not find or load main class

Solutions :
1. Same Problem occur with me
I went to project > properties > javaBuildPath.
There In order of export , I moved up my java/main to the top priority.
2 .
went to run configurations: – run->run configurations In the Classpath tab

Select Advanced

Add where Eclipse usually put the *.class for the projects, which is in bin. So I added the bin directory for the project.

3. Project -> Clean
Make sure Project -> Build automatically is active
Project -> Properties -> Java Build Path -> Libraries: Remove any external libs you have ever added. Don’t remove standard libraries like the JRE System Library.
Try to run your main class now. The “class could not be found / load” error should be gone. Try adding your external libs/jars one after each other.
I hope it helps someone out there.

122 total views, no views today

Error: [$http:badreq] Http request configuration url must be a string. Received

$http.get is a shortcut method for $http({ method: ‘GET’ }), and expects the URL as the first parameter.

method: 'JSONP',
url: url
}).then(function successCallback(response) {
// ok
}, function errorCallback(response) {
// ko

138 total views, no views today

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project mrpapp: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

 Go to Window → Preferences → Java → Installed JREs.

And see if there is an entry pointing to your JDK path, and if not, click on Edit button and put the path you configured your JAVA_HOME environment

119 total views, 1 views today

Exception java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter

Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter
... 13 more
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.CallbackFilter
at$ Source)
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 16 more


If you get this exception, that means that you are using the earlier version than Spring 3.2 and missing the libraries for CGLIB

Beginning Spring 3.2, all net.sf.cglib classes moved to org.springframework.cglib and inline them directly within the spring-core JAR. CGLIB is a Byte Code Generation Library is high level API to generate and transform Java byte code. It is a third part library now merged to the Spring framework itself.

106 total views, no views today

Hide Folder in windows

First Create a folder without any name and with icon that is totally invisible

Just type these codes while renaming the folder name and  press enter once you are done


Now time to hide the folder, to hide a folder first select the folder then right click and go to properties,

in properties select the change icon option …
now you can see a lot of folder icon.


you look for a blank icon select any of the 3 blank icon. click ok then apply u will c invisible folder…
(now with no name and no icon too..)

115 total views, no views today Address already in use: JVM_Bind:8080 Solution

This exception is self explanatory, its saying that a Java application is trying to connect on port 8080 but that port is already used by some other process and JVM Bind to that particular port, here its 8080, is failed. Now to fix this error you need to find out which process is listening of port 8080, we will how to find a process which is listening on a particular port in windows and then how to kill that process to make our port free to use.

Common Scenario when you see “Address already in use: JVM_Bind”
1. While doing Java remote debugging in Eclipse and when Eclipse tries to connect your remote java application on a particular port and that port is not free.
2. Starting tomcat when earlier instance of tomcat is already running and bonded to 8080 port. It will fail with SEVERE: Error initializing endpoint Address already in use: JVM_Bind:8080

Find and listening port

1. Go to run
2. Type cmd
3. Write this command ———– 

netstat -ano | find “8080”

you will get a list of process listening to that port

4. Kill all the task 

write this command 

taskkill /F /PID 7820

7820 — This is the Id which you can see in the last column

121 total views, 1 views today