Change default source directory src/java in eclipse for java project
Prepare directory structure for maven by changing the default src
Probably you are using maven and wanted to change the directory structure.
Since maven recommends the standard src/main/java src/main/resource you might want to change it that way
Here is how to do it in eclipse.
First create the folder structure on the project in which ever way you would want to do it. I would use simple command like
mkdir folderName to create it.
1. right click on the project, and hit refresh, make sure the folders you created are listed there.
2. Right click on the project, select properties and select java build path
3. Go to source tab
4. select and remove the current source folder, by default it would be src folder
5. Hit the Add newthen select your folder structure there.
This would change the original structure of the your java project from src to the one maven compatible.
Can you solve these cool algorithm problems? See their solution as well
hello world weblogic – hello world tutorial on weblogic
Passing composite object parameter to jersey in Restful Java web
J2EE Maven Eclipse Hello World Tutorial Part Two
Check if two strings are anagrams or not
Java Tomcat error: can not access a member of class with modifiers