I have changed project build path to my webcontent folder, but it doesn't generate the class file to my new folder, still generate the class file to /target/classes.
I have checked the "Allow output folders for source folders", and give the default and output folder to webcontent folder. Eclipse still build to the older folder. Even restart.
Eclipse version is
Version: Luna Service Release 1 (4.4.1)
Build id: 20140925-1800
With M2E Installed
Hope you have changed "Default Output folder" in
project->properties->java Build path ->default output folder
Related
i just downloaded eclipse 2019-03 (4.11.0), and need to install google-java-format plugin, according to the instruction I need to put the google-java-format Eclipse plugin to eclipse dropins folder, i looked around there is no such a folder, by google around I decided to manually create this folder now the folder directory looks like this
/Users/ddd/eclipse/java-2019-03
/Eclipse.app
/dropins
google-java-format-eclipse-plugin_1.6.0.jar
then i restart eclipse and tried to configure the java code formatter to use google java format:
seems like the plugin was not picked up by eclipse, did I put the dropins folder at the wrong place?
On macOS it is inside the Eclipse.app in the 'Contents/Eclipse' folder alongside the features and plugins folders. In Finder you have to use 'Show Package Contents' on the Eclipse application to see the folder structure inside the app.
I can't open Activiti source code in netbeans It just says "Project folder is managed by a project Activiti. Instead of creating a new project just open it. If by a chance you just deleted the project Activiti then restart the IDE to reuse the folder."
I have restarted Netbeans and re-cloned the project but it still won't open.
And eclipse just says that the javac was not found in the build.xml.
Any help would be greatly appreciated.
The project folder does not contain a nbproject folder.
Try the following:
rename the pom.xml file to something else, e.g. pom.xmlzzzz,
create the project in NetBeans,
rename pom.xmlzzzz back to pom.xml once the project has loaded in NetBeans.
I've just hit the same problem with a different project and this is what fixed it for me.
Netbeans creates a folder in your project named "nbproject". Once you delete that, restart the IDE and you're good to go.
Go to the folder containing your project
Delete the folder named nbproject
Restart Netbeans
Try creating your project again from the original folder
I have a Project that I have built on Eclipse. I have a property file added in the src directory. The java class file is available in bin, but the property file is not available. Where am I going wrong?
Assuming the type of project is Java Project
Right click on the project and select properties option. Check in the Java build path all files under source folder are included or not and also check if some files are excluded.
In my case property file is being copied to bin folder. See the picture below.
Hierarchy of source folder and bin folder are same in my case.
If project is of type plugin project
Open the Manifest.mf file in Plugin Manifest editor and go to Build tab. Check the property file is selected here if NOT then select the file and check.
Edit:
Troubleshooting steps:
Simply Restart eclipse and completely clean and build the workspace and check.
In my Eclipse Java Build Path, I set Source Output Folders to:
WEB-INF/classes
and I put the config file globals.conf in this folder.
When I run Project - Clean, my config file globals.conf is gone
How can I keep my config file when I run Clean?
globals.conf should be putted under source folder, not source output folder.
Eclipse will copy all resource files(not *.java) in source folder into output folder.
I am using eclipse with tomcat. On the server (right-click)tab you have the options:
Clean, Publish and Clean Tomcat Work directory, What do these options really do and how are they different from project > Build
When you run "project > Build" , eclipse will compile all sources in folders on the build path to the .class files and put the .class files into the output folder you specified. Both of these folders can be configured from Project-> Properties-> Java Build Path . Note that eclipse has the incremental build feature that will only compile the sources that have changed since the last time the project is build.
If you enable Auto-build for the project ( via "Project-> Build Automatically" ) , the "project > Build" will run automatically when you add, remove, or modify the source files on the build path , so you don't have to call "project > Build" manually in this case.
The Publish option in the server tab will deploy the application to your Tomcat instance by copying the project resources such as xml configuration files , web resource (html ,css, js etc) , and the compiled .class files you get from the "project > Build" to the correct location of the Tomcat instance .
So , "Project > Build" is about compiling java sources to the .class files while the options in the server tab is about deploying the application to the tomcat instance and maintaining the tomcat instance .
You can find the information about the "server tab" (i.e. Web Tools Platform) from the following links:
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.wst.server.ui.doc.user/topics/tpublish.html
http://wiki.eclipse.org/WTP_Tomcat_FAQ
Build: compile changed source files on the build path in the project
Clean: compile all source files on the build path in the project
Publish: Deploying the updated project in the web server instance
Clean, Publish and Clean Tomcat Work directory options work on server files, on the other hand Project>build work on workspace files (projects are inside workspace folder). Server files and workspace files are usually in separated folders, it depends on how do you have configured your server.