Eclipse "Error: Could not find or load main class"

JavaEclipseGitJarClasspath

Java Problem Overview


I have a project in eclipse on my laptop that I pushed to Git https://github.com/chrisbramm/LastFM-History-Graph.git

It works fully on my laptop and runs/builds without a problem but on my desktop it doesn't Eclipse gives the error

>Error: Could not find or load the main class lastfmhistoryguis.InputPanel

I've tried building the project from:

Project>Build Project

But nothing happened. I've set the PATH variables on this computer to JRE6, JRE7 and JDK 1.7.0 even though these aren't set on my laptop.

I did have Jar file (last.fm-bindings-0.1.1.jar) that was in my .classpath file that was in C:\Users\Chris\Downloads folder on my laptop hence it wasn't included in the git tree which I recently brought into the project folder and committed ,but I'm not sure whether I have done it right. Would this also be causing a problem but there isn't a main argument in there.

I can't work out now, what I need to check/change.

Java Solutions


Solution 1 - Java

If you create a java class with public static void main(String[] args), Eclipse will run that main method for you by right clicking on the file itself, or on the file in the project explorer, then choosing:

> "Run As" -> "Java Application."

Once you do this, Eclipse stores information about your class, so you can easily run the class again from the Run As menu (Green Play Button on the toolbar) or from the Run Configurations dialog.

If you subsequently MOVE the java class (manually, or however), then again choose

> "Run As" -> "Java Application,"

from the new location, Eclipse will run the original stored configuration, attempt to invoke this class from its original location, which causes this error.


SOLUTION:
For me, the fix was to go to the run configurations, (Green Play Button -> Run Configurations) and remove all references to the class. The next time you run

> "Run As" -> "Java Application"

Eclipse will write a new configuration for the moved class, and the error will go away.

Solution 2 - Java

tl;dr: Clean your entire Build Path and everything you ever added to it manually. This includes additional sources, Projects, Libraries.

  • 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.

Reason behind this: The compiler had issues linking the libraries to the project. It failed and produced a wrong error message.

In my case, it should have been something like "Could not add AutoHotkey.dll to the build path" because that was what made the compiler fail.


If this is still not working, have a look at the built-in ErrorLog of Eclipse:

> Window -> Show View -> General -> Error Log

Solution 3 - Java

In your classpath you're using an absolute path but you've moved the project onto a new machine with quite possibly a different file structure.

In your classpath you should therefore (and probably in general if you're gonna bundle JARS with your project), use relative pathing:

In your .classpath change

<classpathentry kind="lib" path="C:/Users/Chris/Downloads/last.fm-bindings-0.1.1.jar" sourcepath=""/><classpathentry kind="lib" path="C:/Users/Chris/Downloads/last.fm-bindings-0.1.1.jar" sourcepath=""/>

to

<classpathentry kind="lib" path="last.fm-bindings-0.1.1.jar"/>

Solution 4 - Java

I did all the things mentioned above, but none of them worked for me

My problem resolved as follows:

  1. Right click on your Project > Properties > JavaBuildPath > Libraries.
  2. Remove the jar file, having a red flag on it.
  3. If problem persists try the solution below. This worked for me when I faced this problem second time:
    1. Right-Click Project > Properties > Java Build Path > Libraries
    2. Remove Library
    3. Add Library. (Choose the JRE System Library )

Solution 5 - Java

I faced similar problem in my maven webapp project after spending nearly one hour , I found a solution which worked for me .I typed the following maven command and It worked

mvn clean install -U
I dont know the exact reason behind it.

Solution 6 - Java

I am assuming that you had imported the project into your desktop eclipse installation? If that is the case, you should just select Project > Clean. Then rebuild your project. Worked like a charm for me.

Solution 7 - Java

VERY CAREFUL: This will unbind your project from the workspace. You'll have to import all your projects again

I had the same issue and solved it using:

Eclipse Mars
Egit
Github
Maven Project

The Problem was that i made my maven project available to github. It moved my project to my github folder.

Solution:

  • Close Eclipse
  • Delete the metadata folder inside your workspace
  • Restart Eclipse

Start screen will be displayed.

  • Close the start screen
  • Rightclick into package explorer
  • Chose "import maven project",
  • Navigate to your github folder and import the maven project.

After this my project compiled with success.

Solution 8 - Java

Well the following worked for me...

  1. Went into the project folder (inside workspace)
  2. Then, deleted the bin folder
  3. Then, Cleaned project / projects (in Eclipse)
  4. built/run from Eclipse.

Solution 9 - Java

Check that your project has a builder by either:

  • check project properties (in the "package explorer", right click on the project, select "properties"), there the second section is "Builders", and it should hold the default "Java Builder"
  • or look in the ".project" file (in .../workspace/yourProjectName/.project) the section "buildSpec" should not be empty.

There must be other ways, but what I did was:

  • shut down eclipse
  • edit the ."project" file to add the "buildSpec" section
  • restart eclipse

A proper minimal java ".project" file should look like:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
        <name>myProjectName</name>
        <comment></comment>
        <projects>
        </projects>
        <buildSpec>
                <buildCommand>
                        <name>org.eclipse.jdt.core.javabuilder</name>
                        <arguments>
                        </arguments>
                </buildCommand>
        </buildSpec>
        <natures>       
                    <nature>org.eclipse.jdt.core.javanature</nature>
        </natures>      
</projectDescription>

Solution 10 - Java

If your code is good and you know you're having an Eclipse problem, this will solve it.

You could simply delete $yourproject/.classpath , $yourproject/.project , and $yourworkspace/.metadata. Someone else mentioned this option. It will blow up your entire workspace though. Instead:

  1. Delete .classpath and .project from your project
  2. Delete your project in eclipse. DO NOT check delete project contents on disk.
  3. Now, in a file explorer, go into $yourworkspace/.metadata.
  4. Search for $yourprojectname
  5. Delete everything you find. It should be safe-ish to delete anything in the .metadata directory.
  6. In eclipse: File > Import > General > Projects from Folder or Archive > $yourproject > finish
  7. Right click your project > properties > Java Build Path > Source tab
  8. Select all source folders, remove.
  9. Add folder, select src (whatever your src folder is called) and add it
  10. Go to libraries tab
  11. Add any jars to your build path here. There should be no more errors on your project now.
  12. Run your project like you normally would.

Solution 11 - Java

Similar thing happened to me few times, the only way I knew to fix this was to remove the metadata folder. Fortunately I have found another way.

Try going to project properties > Java Build Path > Order And Export tab > select all (or try to play with check boxes there).

This should cause complete project rebuild and Eclipse to see main class.

Addition: I have noticed that this bug occurs when you have many projects in a work space and some of them is configured wrong(red exclamation mark appears). Fixing project build path and other settings(even if this project is not related to the one you have problems with) should fix an issue.

Solution 12 - Java

For me, the reason that this error started showing up was due to classpath getting over the limit on windows. Then I discovered the option "Use temporary JAR to specify classpath (to avoid classpath length limitations)". Selecting this option fixed the problem for me. The option resides in Run/Debug Configuration, Classpath tab, see the image below.

enter image description here

Solution 13 - Java

I had the same problem with correct .classpath file, and soon found actually it's not the .classpath file counted (after I fixed this issue, I replace the workable .classpath file with the original one, the project still worked, which means the .classpath file was not the case)

Since it's a Maven project, all I did is:

  1. mvn eclipse:clean
  2. delete eclipse project
  3. import the project
  4. done

Solution 14 - Java

My Main class could not be found or loaded problem is caused by an interesting reason.

In our project, we are using Maven as build tool and my main class extends a class, which is on the class path but its scope was test, while the main class is not under the test package.

If your main class extends a class, first try to run your main class by removing extends part. If it runs, you will at least understand that the problem is not because of run configuration or eclipse but the class, your main class extends.

Solution 15 - Java

this could cause of jdk libraries if you had imported into jre

this happen to me , so check installed jre jars

in eclipse click on Windows > Preferences > Java > Installed Jres > click on Jre and edit after that look into jar list make sure none is of jdk or corrupted , enter image description here

Solution 16 - Java

I had this error. It was because I had static void main(String[] args)
instead of public static void main(String[] args)

I spent nearly an hour trying to figure that out.

Note: The only difference is that I didn't declare main to be public

Solution 17 - Java

This problem is also caused when you have special characters in your workspace path. I had my workspace in my personal folder and its name was in Greek, so it didn't work. I changed my workspace, now contains only english characters in its path, and now the project is built without any problems.

Solution 18 - Java

If You are using eclipse then the following steps will solve your problem:

> Go to Run -> Run Configurations -> Main Class Search -> Locate your class manually -> Apply -> Run

Solution 19 - Java

To solve this error do the following steps:

Step 1: Open the .project file.

Step 2: Check two tags...

    a) <buildSpec>

    b) <natures>

Step 3: If the above-mentioned tags do not include any content then surely the above error is going to occur.

Step 4: Add the following content to each tag in order to resolve the above error.

For <buildSpec> :

<buildSpec>
	<buildCommand>
		<name>org.eclipse.jdt.core.javabuilder</name>
		<arguments>
		</arguments>
	</buildCommand>
</buildSpec>

For <natures> :

<natures>
	<nature>org.eclipse.jdt.core.javanature</nature>
</natures>

Step 5: Save your file by hitting ctrl + s.

Step 6: For safe side just close the project once and reopen it.

Step 7: That's it. You are ready to rock!!!

Please mention in comments if the solution was helpful.

Thank you.

Solution 20 - Java

I run into the same problem, but in my case it was caused by missing (empty) source folder (it exists in original project, but not in GIT repository because it's empty).

After creating the missing folder everything works.

Solution 21 - Java

I received this error as well, just after moving some resources. Checking the error log, I saw that Eclipse couldn't make a build since it couldn't remove a file/folder. Try manually removing the "bin" (or whatever it's called for you) folder.

Solution 22 - Java

I ran into this error today because I set up a hello world program and then cut and pasted a new program into the same file. To fix the problem of not finding hello world as the last was called I clicked Run-> Run Configurations and then under Main Class I clicked search and it found my new class name and replaced it with the correct new name in the text that I pasted. This is a newbie problem I know but it is also easy to fix. I hope this helps someone! Douglas

Solution 23 - Java

Mostly this happens, because Eclipse cleans the .class files, but don't build them again. Check the bin folder, it should be empty. Then you should check, is there anything else, which is causing build ti fail. You might have added some jars in classpath, which Eclipse might not be able to find.

Solution 24 - Java

Just go to your Package Explorer and press F5, or for some laptops fn+F5. The reason is that eclipse thinks that the files are somewhere, but the files are actually somewhere else. By refreshing it, you put them both on the same page. Don't worry, you won't lose anything, but if you want to be extra careful, just back up the files from your java projects folder to somewhere safe.

Solution 25 - Java

These are the simple steps, which helped me to solve this problem.

  1. Close the eclipse
  2. Delete ".metadata" folder in your work-space. (may be hidden folder)
  3. Open the eclipse (it will automatically create ".metadata" folder in your work- space)
  4. Try to run the program.

Solution 26 - Java

This problem occurred for me when I deleted a ".jar" file from Eclipse project by right clicking on it and hitting "delete" (not from "Build path").

To solve, I tried the following steps:

> 1- Right click on the project > > 2- Build Path --> Configure Build Path > > 3- Libraries > > 4- Delete the jar file from there (I see a red mark beside it).

Solution 27 - Java

Check the workspace error log (Windows-> Show View -> Error log). If you see any of the jar's imported is corrupted, remove the corresponding repository folder and re-import again.

Solution 28 - Java

2 types of solutions exits for the same.

(1) Go 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.

(2) If first solution is not working then it means the jar you are pointing out to your project is taking the path of your local Maven repo which is not getting updated to your project so better you check the jar from that local maven repo and copy it paste it into new project simply or just download it from any site and configure it into your build path.

I hope it helps.

Solution 29 - Java

I had the same problem. Spent few hours and finally changed my workspace back to local folder and everything works now.

Solution 30 - Java

I just had this problem after first having the problem of Windows 8 refusing to update my path no matter what I set JAVA_HOME to - java -version reported the last JDK instead of the one I stored in JAVA_HOME. I finally got that to work by putting '%JAVA_HOME%/bin;' at the front of the path environment variable instead of at the end. Then I launched Eclipse and all the sudden it could not find my main class when it worked fine before this. What I did to fix it was went into the project properties, removed the existing JRE library from the libraries tab, added a new JRE by selecting the "Add Library" button and then followed the prompts to install JRE 7 as my default JRE. Now all is back to working.

Solution 31 - Java

I found other solution in my case this problem: Eclipse->Preferences->Java->Installed JRE then press button Search. Select folder in Linux /usr then Eclipse found all JVM.

Select another JVM too current. It is solved for my case.

Solution 32 - Java

I had the same problem after I created new package("tables") in my project.

I went to Window -> Show View -> General -> Error Log and Ive read error:

JavaBuilder handling ImageBuilderInternalException while building: PizzaService

org.eclipse.core.internal.resources.ResourceException: Resource '/PizzaService/bin/tables' already exists.

as it turned out I had a text file in another source folder with the same name as this new package. So I've changed text file name from "Tables" to "Tabless" and I could run my project again.

Hope this helps.

Solution 33 - Java

I faced the same error, the error was in one of the imported external jars. After removing that jar project worked for me.

Solution 34 - Java

Happened to me when I changed installed JREs to JDK7 instead of JRE7. Everything compiled but I couldn't run anything from Eclipse "eclipse-error-could-not-find-or-load-main-class"

Fix; going back to previous JRE7.

Solution 35 - Java

Rename the class with Ctrl+Shift+R (Windows), it will change name of the class everywhere where it is referred, and then do the opposite procedure. In my case it was caused by identical class names in several projects within the environment and Eclipse had hard time to understand which is which.

Solution 36 - Java

Follow The Steps it Works for me:

  1. Remove Configure build path from eclipse(Build Path)
  2. Refresh
  3. Add configure Build Path->Source->add Folder->check src ok.

Solution 37 - Java

I had this same problem with Eclipse-Mars. I had a working project then put it in my Git repository. That broke the execution (I guess because the actual Java files got moved to the git location and no longer existed in my workspace). I did a Maven>Update and it now works.

Solution 38 - Java

Actually I found the real Root Cause for this issue, by going to add each .jar files manually one by one, because the following answer within the same thread, suggests you to do so.

Cause:
You know as we are humans, we are really lazy creatures and that's why we have an option to "Select All" and also shortcut keys to perform that. So when I have to add around 30+ jar files for a PDF generation required app, I did go in this way,

> Right Click on Project -> Properties -> Java Build Path

  • selected "Libraries" tab in it, then Add JARs...", browsed through the directories tree and (my JARs and the licence.txt files was in projects "lib" folder) within the "lib" folder, I selected All the files and Added. Can you guess what has been the wrong? It had successfully add all the files within the "lib" folder. But eclipse keeps trying to profess any of the text files you may have added as JAR file, in this way. So it can't build the links. This is the case.

So you have two options:

  1. Select only the JAR files wherever you want and don't be too lazy to add text and other types of files. or,

  2. Select all files within a specific folder where you wanna add JARs from, and then remove one by one, which are non-JAR files.

Note:
If you have added any of non-JAR files to the project in that way as you were trying to add "libraries", it will show you something like the following:

enter image description here

and keep trying to compile and at the end, it will give you the following error:

> Error: Could not find or load the main class er.waterapp.some.MainFileGivenByConfigaration

  • MainFileGivenByConfigaration could be any class which you might have selected from Configuration to be take as the starting point of the app.

Solution 39 - Java

I spent tenths of hours trying to solve this, and what only helped me at the end was to notice that I had in my packages some files (text files) with the same name, like TODO, README and IMPORTANT. I went through every package of my project renaming those files (like TODO_packagename1, TODO_packagename2...) and when finished, I closed Eclipse and restarted it again. Then worked!

Solution 40 - Java

I was using eclipse oxygen and the problem persists everytime. Later i found that if your Eclipse workspace is under the directory with non ascii characters then somehow javaw.exe couldn't reach the bin directory. Suppose your directory name is Work_Hello the remove underscore sign and clean the project and run configurations. This worked for me. Reference: https://www.eclipse.org/forums/index.php/t/1093209/

Solution 41 - Java

Project files using a custom archive in the build path, to fix -> go into the class path file, find and remove the entry then collect a new copy of the archive and add it to the build path again. You'll need to rebuild the project and to check the "run configurations" after.

Solution 42 - Java

Rebuilding using the command line has fixed this issue for me multiple times. For example, running ant build (for an Ant project) or mvn build (for a Maven project) will fix eclipse once it succeeds.

Solution 43 - Java

In your Eclipse Preferences -> java -> Installed JREs -> Select the Java SE the jdk which you have on your machine and add the JDK

Solution 44 - Java

Check if you have included any missing dependencies. In my case I've imported json jar (which is no longer present in that path). Removing it from Libraries helped.

Libraries

To navigate to Libraries (Right click on project -> Properties).

Solution 45 - Java

I faced this error today and went through all of the existing answers. However none of them worked.

My solution was: Create new Eclipse Workspace and import the old project. This time project started just fine.

I don't know why it's fixed the issue. My guess is it happens after deleting and re-creating the project with the same name causes some problems with Eclipse..

Solution 46 - Java

Try also renaming the package before changing the configuration or reinstalling.
I got this weird error without having changed anything else than a few lines of code. Rebuilding did not work, Eclipse would not re-create the class even though the bin folder was empty. After renaming the package from test to test1 Eclipse started rebuilding and everything was fine.

Solution 47 - Java

What I ended up doing is in Eclipse, copy the entire project and paste it again (and give it a different name of course). Then run your copied project. It should ask if you want it to run as a Java Applet or as a Java Application. Click on Java Application and it should work again. Then you can remove the original project and rename your current project to its original name if you wish.

Solution 48 - Java

I had a very strange reason for this error. Some of the files referenced in the local Maven repository (~/.m2/...) were corrupt. After deleting these and then rebuilding the application, it worked. Using a newer version of Maven exposed the corrupt files.

Solution 49 - Java

I was running through the similar problems in my small java snippet

Here is what I did.

  1. I copied all the content in the Main class.

  2. Deleted the Main class Greeter.

  3. Right click -> Created a new Java class with name Greeter

    a> checked include main method when creating class

  4. voila !!! I was able to run as Java application by right clicking on the main class Greeter.java.

Just out of curiosity I again tried deleting the Greeter class and creating new class without checking main method, and it did not show me run as Java application option in right click.

Solution 50 - Java

I too faced this issue today. Whatever new class I created with main method i faced the same issue. Then I checked the build path and saw that one of the java api jar file - nashorn was showing as missing. I put it back in the ext folder and it worked!

Solution 51 - Java

Sometimes, it might have a very simple solution

You have perhaps added a new version of the existing .jar file and forgot to remove the old version of the same .jar file.

Now try removing the old jar files (that are marked in red) in the Build Path > Configure Build Path

Solution 52 - Java

A very simple fix coul’d be delete a commented error in the pom.xml.

I don’t now why, but the error coul’d persist in the pom, even if you comment it. In my case, it was an innecesary scope tag for mockit or whole dependency of mockit, all commented!!! It was sufficent delete the commented lines and save the pom.

Solution 53 - Java

The same error I am facing in my eclipse and going through above all did not help me out, So here are the steps you can do:

  1. Check the problems- Windows->Show view->others->problem if you find something their errors saying "A cycle was detected in the build path of project xxx - Build Path Problem". then Do simple thing: Mark Circular dependency as a warning: Windows -> Preferences -> Java-> Compiler -> Building -> Circular Dependencies and it will fix your problem. Never forget to clean the project after that: Project->clean

Hope this will help!

Solution 54 - Java

If your project is a Maven project, make sure there are no missing dependencies from your project's pom.xml.

In eclipse, the opening '' should be highlighted in red if is not found in the repo - delete all these dependencies (or fix them).

Once all the missing dependencies are removed, you should be able to run the class.

Solution 55 - Java

I resolved this by just deleting the project in Eclipse / Spring Tools Suite (without deleting the sources!). Then going into the directory where my project was and removing the .settings directory and anything related to Eclipse, I then re-imported the Gradle project and the problem was resolved.

This happened after I moved the entrypoint file to the Spring Boot Application.

Solution 56 - Java

I hadn't worked on my Gradle project for a while and I got this error. I right-clicked on the project -> Gradle -> Refresh Gradle Project. That worked for me.

Solution 57 - Java

For me, I faced same problem after importing the maven project from git. It got solved after using new JRE in build path by using below steps in eclipse.

Eclipse project properties->Java build path->Libraries->JRE->Edit->Execution environment->JavaSE-17->Finish and then rebuild using Run->maven install. This time no error was seen

Solution 58 - Java

The following worked for me after migrating an eclipse project from one computer to another and when Right Click MyProject->Refresh did not do the trick.

Project Explorer->MyProject->Build Path->Configure Build Path->Java Compiler: Check Enable project specific settings and select Apply.

This rebuilds all the class files in the MyProject/build directories.

Solution 59 - Java

Can be resolved by updating your project.

For example if you use maven and eclipse as you mentioned, do those steps:

  1. Right click on your project
  2. Click on Maven
  3. Click on Update Project...
  4. Click Ok

Solution 60 - Java

In my case none of the 30+ answers helped. I have a modular Java project. The commandline Eclipse offered worked, but not running the project within Eclipse. What worked for me:

Edit Run Configurations -> Tab 'Dependencies' -> Add modules: ALL-MODULE-PATH

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionChrisView Question on Stackoverflow
Solution 1 - JavaBlamkin86View Answer on Stackoverflow
Solution 2 - Javaphil294View Answer on Stackoverflow
Solution 3 - Javapoulter7View Answer on Stackoverflow
Solution 4 - JavaAtul ChavanView Answer on Stackoverflow
Solution 5 - Javarajeev pani..View Answer on Stackoverflow
Solution 6 - JavaCris CodeCruncherView Answer on Stackoverflow
Solution 7 - JavaMatthis KohliView Answer on Stackoverflow
Solution 8 - JavaDeeCodeView Answer on Stackoverflow
Solution 9 - Javaloic.jaouenView Answer on Stackoverflow
Solution 10 - JavaBrent SandstromView Answer on Stackoverflow
Solution 11 - JavaDmitry AvgustisView Answer on Stackoverflow
Solution 12 - JavaxbrankoView Answer on Stackoverflow
Solution 13 - Javakarl liView Answer on Stackoverflow
Solution 14 - JavaAd InfinitumView Answer on Stackoverflow
Solution 15 - Javauser889030View Answer on Stackoverflow
Solution 16 - JavaAlex SpencerView Answer on Stackoverflow
Solution 17 - JavaStavros StefanakakisView Answer on Stackoverflow
Solution 18 - Javauser4115825View Answer on Stackoverflow
Solution 19 - JavaNishat LakhaniView Answer on Stackoverflow
Solution 20 - JavanothremView Answer on Stackoverflow
Solution 21 - JavaZarView Answer on Stackoverflow
Solution 22 - JavaDouglas E KnappView Answer on Stackoverflow
Solution 23 - Javauser3687451View Answer on Stackoverflow
Solution 24 - JavaSteve LamView Answer on Stackoverflow
Solution 25 - JavaSoham DarjiView Answer on Stackoverflow
Solution 26 - JavaAlisaView Answer on Stackoverflow
Solution 27 - JavaRamanView Answer on Stackoverflow
Solution 28 - Javanavis1692View Answer on Stackoverflow
Solution 29 - Javauser1362446View Answer on Stackoverflow
Solution 30 - JavaHoward RoarkView Answer on Stackoverflow
Solution 31 - JavaCar10sView Answer on Stackoverflow
Solution 32 - JavaTomasz MularczykView Answer on Stackoverflow
Solution 33 - Javaknowledge flowView Answer on Stackoverflow
Solution 34 - JavaVortexView Answer on Stackoverflow
Solution 35 - JavaNikolay FrickView Answer on Stackoverflow
Solution 36 - JavaMohasin MujawarView Answer on Stackoverflow
Solution 37 - JavaAixNPanesView Answer on Stackoverflow
Solution 38 - JavaRandika VishmanView Answer on Stackoverflow
Solution 39 - JavaPaul EffordView Answer on Stackoverflow
Solution 40 - JavaPiyushView Answer on Stackoverflow
Solution 41 - JavaTrevorLeeView Answer on Stackoverflow
Solution 42 - Javajava-addict301View Answer on Stackoverflow
Solution 43 - JavaVijay MishraView Answer on Stackoverflow
Solution 44 - JavaTom TaylorView Answer on Stackoverflow
Solution 45 - JavaShinebayar GView Answer on Stackoverflow
Solution 46 - Java1813222View Answer on Stackoverflow
Solution 47 - Javauser5910225View Answer on Stackoverflow
Solution 48 - JavaMr. MundkowskyView Answer on Stackoverflow
Solution 49 - JavaspacedevView Answer on Stackoverflow
Solution 50 - JavaCoder17View Answer on Stackoverflow
Solution 51 - JavaPraveenView Answer on Stackoverflow
Solution 52 - JavaIsiView Answer on Stackoverflow
Solution 53 - JavaVipul GuptaView Answer on Stackoverflow
Solution 54 - JavaDamoView Answer on Stackoverflow
Solution 55 - JavaEM-CreationsView Answer on Stackoverflow
Solution 56 - JavaRayView Answer on Stackoverflow
Solution 57 - JavaShadaksharayya H AView Answer on Stackoverflow
Solution 58 - JavatkrView Answer on Stackoverflow
Solution 59 - JavaMohamed Aymen CharradaView Answer on Stackoverflow
Solution 60 - JavafhissenView Answer on Stackoverflow