SVN my project not showing up - java

I was trying to use SVN today as i was doing all my changes in my webproject on the same folder/files, so wanted to try SVN for version control. However when i installed it and tried to create a repository named "project"...however my servlets/JS files/JSP files folder(package) is also named as Project...
Suddenly after i create the SVN repository i don't see all the work i did..all my .class file and everything else is wiped out. I went to Eclipse workspace i see nothing but .svn...Can someone please help me how to retrieve my work? It is many hours worth of work.
Thanks for your help!

First You can commit your projects by using tortoise svn after creating one repository in SVN.
Second you can checkout your project with eclipse.See this article to connect SVN with eclipse.

Related

Error while configuring local repository in Git in Eclipse

This may sound too amateur but as a whole i want to configure my Git repository and move my code from eclipse to Github.
So i checked out a couple of video tutorials and applied the steps but none of them seems to work in my case. This is what i did.
1) Right click on the project > Team > Share Project > Select Git > and then this window comes
now when i try to create my repository by clicking on create button> fill the parent directory and the name and click finish. Nothing really happens and i am redirected to the same previous window, without the repository column loaded.
Can anyone help me out of this.
First i thought it to be a Eclipse version issue, earlier i tried on Luna, also after installing Juno its the same issue.
Help me with this. Thanks in advance.

Error: Archive for required library cannot be read or is not a valid ZIP file.

I am having trouble setting up the build path of my java project. I am currently in a Co-Op IT position so I am somewhat new to all this. My background is mostly in C++ and I am learning java on the fly. I am also somewhat new to Eclipse (Kepler service release 1).
I am working on a bug on an existing program and need to get the program to build so I can work on it. When I add all of the external .jar files that I know for a fact are the right ones, I am getting this error on two of them :
"Archive for required library: '(location of file)' cannot be read or is not a valid ZIP file"
Two of the other full time guys on my team have gotten the program to run with those exact same .jar files, one running Eclipse Indigo and the other running the same Kepler version as myself. I also was able to open the two .jar files manually and everything appears to be there. After every trial trying to fix this, I have refreshed, cleaned and restarted eclipse. The two other full time guys said they have never seen this error. I would like to get some insight on this from anyone who has any similar experiences so that I don't have to use up much more of their time.
I Had this issue, just fixed by deleting .jar files from Libs directory then copy->paste original Jars again. Then do a complete clean -> rebuild
I got this problem, took help from following link solution
which basically says to
1. delete the corresponding maven download folder
2. maven>update project in eclipse
In my case I deleted hibernate folder, since i was getting error related to hibernate-validator.jar
I had the same error here. What I did to resolve the problem was close and reopen the project.
I got the same problem and found out the root cause is the JDK in my linux shell is set to 1.6, but in the eclipse, the JRE is 1.7.
Using Eclipse without m2e features (Standard Edition) helped me.
Similar problem with Spring toolsuite
Just came across this link that shows a way to get unblocked.
In preferences dialog box go to
Java->Compiler->Building
and change Incomplete build path to "Warning" (from default "Error")
This can be done globally (for all projects), or on a project by project basis.
Check the jar's file permissions/ownership.
I had the same issue on eclipse installed on Linux and fixed it by setting the file permissions right.
In my case ..worked after removing this from spirngrest-servlet.xml file.
<prop key="net.sf.ehcache.configurationResourceName">/Sysehcache.xml</prop>
I think it had to do with default location of maven repository of jar files.
Been at it for 3 days. finally solved it.Hope it helps anyone.Just look for similar think in your spirngrest-servlet.xml file. Good luck.
I just tried the following and it worked:
Close eclipse as there might be some files eclipse is accessing and you won't be able to delete.
Delete all the libraries installed in the maven repositories folder: ".m2/repository"
Open eclipse and update your project(Alt+F5).
What did we just do? : This is possible that the existing libraries in the local repository are erroneous and maven tries to open which it fails in. We have now deleted the already existing library and with the project update, Maven will download the library again which should resolve the issue.
i fixed this by just deleting everything inside of the /Users/username/.m2/repository folder. not the repository folder itself. and then running a mvn clean package in the project folder

After Cloning Repo - Source Does Not Appear In Eclipse Java View

I'm trying to import the source code for a github project into eclipse and I was able to pull the repo using https://github.com/madeye/proxydroid.git - it now appears in my Git Repository View however I do not see the source code when I switch to Java view.
Any ideas on what I may have done wrong? I've tried pulling and fetching from upstream and I still have nothing in my java view.
The repository you cloned will appear in your git folder, which I believe is in your "My Documents" folder by default. Your default eclipse workspace is not the same as this.
So you fix this two or three different ways. Change your git folder to clone your repo's to your eclipse workspace, import the source files into eclipse and work on it outside of your eclipse workspace, or change your eclipse workspace to the git folder.
Hope that helps! It's pretty easy to fix once you know whats going on.

Error when Committing in SVN using subclipse

"org.apache.subversion.javahl.ClientException: svn: E155007:
'C:\User\Bosung\Workspace\Chicken
Survival.settings\org.eclipse.jdt.core.prefs' is not a working copy"
Details is same.
I have this problem when I try to commit to SVN for the past few days and I have no idea how to fix.
I believe this problem occurred after installing Egit but I am not quite sure.
I tried to going back in installation history but this gives me error.
I tried deleting egit, and subclipse and reinstalling subclipse in "installed software" tab but the same problem still exists.
I tried to delete and make a new java project (by copying only the classes I need back into the new project) but same problem still exists.
I am using Version: Indigo Service Release 2 Build id: 20120216-1857
SVN is hosted on projectlocker.com
Help would be greatly appreciated!!
The error description says it: your file is not a working copy. When you commit your project, a Window with all the folders/files to commit will appear. Just uncheck the folder .settings and accept the commit.
I was getting this every time I saved a file in a new directory/package. I added the directory to svn and it seems to have fixed it.

SVN error on eclipse with Delete operation (aparently)

I have an Android project on Eclipse (STS) and it is giving me this error last time I tried to compile:
The project was not built due to "SVN: '0x00000119: Delete' operation finished with error". Fix the problem, then try refreshing this project and building it since it may be inconsistent
Google was not very helpful.. Only 9 hits
I had the same problem, I disconnected and connected the project from the SVN.
In the project, right click, TEAM>Disconnect and the problem was solved
I would discard your current project and rebuild the project files again, importing the codebase :(
Update:
JohnEye recommends trying an svn cleanup first and this may solve your issue. If not, see above.
I may have just found the answer. It is surprisingly simple, assuming you are using linux, navigate to the project directory (cd ~/workspace/myProject) and run svn cleanup
Solved the problem for me.
Edit: Just happened to me again and my solution worked as expected, so it probably was not just a random fluke.
Had same issue. The work-around was to disconnect the project from SVN (Team->Disconnect) (note: please make sure you don't delete .svn) and refresh the project. Your are back on track, and you can reconnect to SVN once again.
Deleting the project and re-checking out has worked for a couple of hours, but then the problem returned (maybe I deleted stuff again or whatever). There's a bug track here: http://issues.tmatesoft.com/issue/SVNKIT-77
SVN is a wonderful tool, if used correctly. Unfortunately when we use SVN incorrect, we run into such crazy issues.
The best way to fix issues like this,
Checkout Project again
Use meld and copy "ONLY" files, NOT "directories" from workspace to checkout folder.
If you copy folders, you will also end up copying .svn hidden folders and you will be in the same mess again. So create the folders manually.
One more, DONT waste your time trying to find ways to fix your svn issues. Just use the 2 step process above.
I was encountering the same issue after importing the project from bitbucket repo. What worked for me was to disconnect the project and connect it again.
1. Team->disconnect.
2. Team->share project->Git->Use or create repository in parent folder->finish

Categories

Resources