I am mainly using Eclipse for my project. For Swing GUI part, I find using Netbeans is more user-friendly. Hence, only for building UI, I am using Netbeans for the same project.
I developed a form using Netbeans. So, corresponding .java file got generated in Eclipse also. After working on it for few days, I went to Netbeans and changed name of a JPanel. But, the same change is not reflected in corresponding .java file in Eclipse.
Before this, I have done such changes in Netbeans and even have seen the changes getting reflected in Eclipse version of the project. But, I don't know what went wrong this time. I even tried refreshing, cleaning etc.
Can anybody please help me with this?
Thanks!
Finally, I had to delete everything from the workspace and checkout everything again. After that, it is working fine.
Related
I accidentally deleted main class in NetBeans from Templates, know I cannot create any projects.
Does anyone know how to retrieve it?
I tried to reinstall NetBeans but it didn't work for me.
So please if anyone knows how to fix this I would appreciate it very much.
Take a look here. Same problem resolved.
UPDATE
Ok.
Close NetBeans IDE, go to NetBeans userdir
, then to config/templates directory and delete Classes_hidden file.
When NetBeans IDE is started again templates for Java are back.
From here duplicate post
p.s Net beans user dir is something like this
C:\Users\YOUR_USER\AppData\Roaming\NetBeans\8.2\config\Templates
I tried this and it worked.
Netbeans automatically updates your work when you clean and run. Just:
open your project
Go to project History / History
Select a period that the project worked correctly before deleting the main class
Right click and revert from History
I am using eclipse Kepler with jdk 1.6, problem is with particular system, on other system everything is fine.
I have created a java project in eclipse, in main class i have some variables(constraints) on which the whole project works, for purpose of testing, when i am changing the variables data and executing eclipse giving result on some previously fixed variables, don't know why this silly behavior.
If somebody knows the issue please help me out.
It depends on your project. If your project need to re-build for every change you made, than maybe you have turned off live-build in eclipse.
If your project does not need any building, may be it is because of environment in which you are working. sometimes it happens. just restart eclipse. may be it helps. but if problem still persist, let me know more details about your project and eclipse.
Thanks,
I've some strange behaviour when trying to open project in netbeans 7.3.1. The names of files/folders aren't fully displayed... You can see in attached image:
does anyone know what's happening? I need to use that particular version, so moving to the newest isn't possible in that case.
I have a java source code of a project developed on netbeans IDE-8.0 and edited its GUI on netbeans.
After this i switched to eclipse IDE (kepler) and modified several files to implement some logic.
After implementing this logic i want to change GUI again but at this time netbeans is not showing the GUI changes in design view (but code is updated as changed is eclipse) which are made using the same IDE (before implementing the logic in eclipse).
I have tried several options like
cleaning and rebuilding.
coping the modified source code to another work space.
Also window builder in eclipse is not able to parse the GUI java file.
Any reply for any IDE will be appreciated.
So I was busy writing away in eclipse when there was a power cut. Luckily I had been saving regularly and so when I got back on I still had all my work.
However after writing a few lines and running it and spending a while trying to figure out why it wasn't working I realized that whatever I wrote didn't change what ran. I could even comment out bits of code OR EVEN the entire program OR EVEN YET DELETE LINES OF CODE, yet it still runs as if the same code was there from before the power cut. In the file menu all the save features are grayed out, yet if I control S and restart my pc or restart eclipse then it has made changes to the code and saved however the new code has made no effect on anything and still runs as before.
Has anyone else experienced this?
Has eclipse got some auto save feature for problems such as power cuts in order to prevent work less?
Has this put eclipse in a special mode that I can exit back to the normal mode?
When issues like this happen, the first thing to do is to click on Project -> Clean in the main menu.
The Project was corrupt.
Solution
Copying classes across into a new project and deleting old project.
Try restarting eclipse. Perhaps it kept some content in the editor but the link was broken from the actual file that it's building. Maybe copy your code just in case the file is out of sync with the editor.
My problem was the folder was in a different workspace, so the old version of my file was in there, but my newer saved version was in a different workspace. I didn't realize the newer version was somewhere else. This happened because I need to send files back and forth from my main computer to my laptop for school, then return the folder again. So be extra aware of your workspace locations! If you export a project from Eclipse, it will always choose one by default, but you can choose another in the export menu.