Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Migrate old project from 3.1.2 to 3.2
Migrate old project from 3.1.2 to 3.2 [message #190167] Fri, 26 January 2007 10:36 Go to next message
Marc is currently offline MarcFriend
Messages: 9
Registered: July 2009
Junior Member
I have an old SWT application that I build on eclipse 3.1.2 Now I want to
move the project to 3.2

What I did is import the project into a new 3.2 workspace. Because the
old jars on the build path are replace by newer versions I get the
following errors:

Project Test is missing required library:
'C:\eclipse32\plugins\org.eclipse.core.runtime_3.1.2.jar'
Project Test is missing required library:
'C:\eclipse32\plugins\org.eclipse.jface_3.1.1.jar'
Project Test is missing required library:
'C:\eclipse32\plugins\org.eclipse.jface.text_3.1.2.jar'
Project Test is missing required library:
'C:\eclipse32\plugins\org.eclipse.osgi_3.1.2.jar'
Project Test is missing required library:
'C:\eclipse32\plugins\org.eclipse.swt.win32.win32.x86_3.1.2. jar'
Project Test is missing required library:
'C:\eclipse32\plugins\org.eclipse.ui.forms_3.1.0.jar'
Project Test is missing required library:
'C:\eclipse32\plugins\org.eclipse.ui.workbench_3.1.2.jar'
The project cannot be built until build path errors are resolved


What is the correct way to handle this? Should I replace the libraries
under project properties manually with the newer versions or is there a
better way of doing this?

Can't imagine this is a cumbersome manual task to be done after every
eclipse upgrade :-) :-)
Re: Migrate old project from 3.1.2 to 3.2 [message #190199 is a reply to message #190167] Fri, 26 January 2007 14:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wayne.beaton._NOSPAM_eclipse.org

pigna wrote:

> Can't imagine this is a cumbersome manual task to be done after every
> eclipse upgrade :-) :-)
>

I'm assuming that your project is a Java Project and that you've added
the SWT JAR files. Unfortunately with the upgrade, the names of these
JAR files have changed, so Eclipse can't find them anymore. The same
sort of thing would happen if you upgraded to a different version of
some other JAR (assuming that the version is indicated in the file name).

There are at least two schools of thought here. First, is it reasonable
to assume that you want to upgrade to the latest version of SWT just
because you're upgrading your IDE? If the answer is no (and
organizations with rigorous build and deployment processes are likely to
answer no), then you should just copy the 3.1.2 versions of the JARs
into a common location and just continue to use them from there (after
updating your Java Build Path). If you go this route, you should
consider using a classpath variable.

Or, if you really just want to use the version of SWT that's included
with your development environment, you could just turn your project into
a Plug-in project and use plug-in dependencies to link in the SWT
libraries. Then, next time you upgrade, it'll all just work.

You can use a Plug-in Project even if you're not really building
plug-in. You can just run the code in it as regular Java classes and it
will work just the same. The big difference is that setting up your
classpath will be a lot easier.

As a general rule, you probably don't want to tie the implementation of
your application to specific libraries in your development environment.
Ideally, you should be downloading the specific version of SWT that you
care about, and setting up a location on your hard drive to hold the
libraries (and specific versions) that your application cares about.
Like I said earlier, organizations with strictly defined build and
packaging practices don't tend to depend on something as transient as a
development environment...

HTH,

Wayne
Re: Migrate old project from 3.1.2 to 3.2 [message #190222 is a reply to message #190199] Fri, 26 January 2007 16:40 Go to previous message
Marc is currently offline MarcFriend
Messages: 9
Registered: July 2009
Junior Member
Thanks for your answer Wayne!

I'm indeed upgrading my IDE. Never tried to use a plugin project for a
normal SWT application and therefor I need to further study what you just
suggested. Would be great though if I got that working... :-)


BTW I can't seem to find my original post anymore. Strange
Previous Topic:debugging problem
Next Topic:Sharing .classpath file and creating classpath variables
Goto Forum:
  


Current Time: Wed Apr 24 23:48:18 GMT 2024

Powered by FUDForum. Page generated in 0.09163 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top