1

I did a SVN checkout on a Java project in which the devs used WindowBuilder Pro to develop a GUI application - however, the devs mentioned that they didn't use any third party libraries (outside of the Java SDK - Swing and AWT). However, in the problems view of Eclipse is see three errors:

Project 'Projectname' is missing required library: 'forms-1.3.0.jar'
Project 'Projectname' is missing required library: 'miglayout15-swing.jar'
The project cannot be built until build path errors are resolved

Compiling ('javac') the entry point class (main()) from the command line and then running it with 'java' successfully runs the program.

Any ideas why those errors pop up in Eclipse and how I can resolve the issue?

EDIT: Here is the .project content

<projectDescription>
    <name>Projectname</name>
    <comment></comment>
    <projects>
    </projects>
    <buildSpec>
        <buildCommand>
            <name>org.eclipse.jdt.core.javabuilder</name>
            <arguments>
            </arguments>
        </buildCommand>
    </buildSpec>
    <natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
    </natures>
</projectDescription>
4
  • 1
    Why not just add the JARs to the build path? Oct 28, 2013 at 22:42
  • 1
    I don't want to get something that's not explicitly needed for deployment. Why would it run on the cmd and not in Eclipse? Oct 28, 2013 at 22:43
  • It's likely from the command line that the 3rd party jars have being included within the main jars class path manifest entry. If it doesn't compile, then it won't run. Those libraries will be required not only to compile the application, but also run it... Oct 28, 2013 at 22:45
  • @WuschelbeutelKartoffelhuhn do you use ant/maven to build from command line ?
    – kiruwka
    Oct 28, 2013 at 22:49

1 Answer 1

3

Turns out WindowBuilder Pro inserted unneeded dependencies on the .classpath file.

2
  • How do did you find out they're unneeded: because it runs from the command line? Oct 29, 2013 at 15:38
  • The project is not compiled into a jar. Oct 31, 2013 at 21:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.