File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Problem copying project (eclipse) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problem copying project (eclipse)" Watch "Problem copying project (eclipse)" New topic

Problem copying project (eclipse)

panuque bla

Joined: Aug 01, 2011
Posts: 5

you see, i have a GWT Java project in Eclipse that works with a database. The project is divided into 3sub- (server, client and gwt code compiled). All ok. Now, i had to create the same project but to work with another database (of course same structure). I copy the 3sub projects and i create a new project. Then, i go to file, which is where I have the route database, and i change the route.

And here comes the problem. When i run the new project, i dont know why, but access to old file, which I am accessing the old database.

What is the problem? I copied the wrong project? can be references for each subproject? as I watch that?

Peter Johnson

Joined: May 14, 2008
Posts: 5852

panuque, welcome to Java Ranch!

It seems that you did not change all of the database configuration files. Of course without seeing exactly what you did, and how you access the database, it is hard to tell. Any source and details you can provide would be helpful.

I have never had any issues with creating new projects by copying existing project. All I have had to do is modify the project name in the .project file before importing the new project. Of course, if any code of configuration options in your source code depend on hard-coded file locations, your new code could be accessing files in the old location. Temporarily removing the old projects might help in debugging this issue.

JBoss In Action
I agree. Here's the link:
subject: Problem copying project (eclipse)
It's not a secret anymore!