Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Unable to build the JUNIT

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hello Experts,

I have created the junit plugin "com.example.test.foo.testing" to test the code of "com.example.test.foo.testing" plugin, For which I have created the ant code, but while building the junit plugin its giving me following error message -



and more imports issues.....

No errors in eclipse found.

MANIFEST.MF file is -



Please suggest any resolution....

Mukund
 
author & internet detective
Posts: 40913
840
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What technology are you using to build? It doesn't look like Ant or Maven.

Also, is the jar (or loose Java files) that contain those imports in your classpath?
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Do you use OSGI and Eclipse for development? Type of your project is "eclipse plugin"?
If I'm right, in target platform (see window->preferences->plugin development->target platform) you have junit dependeny (bundle).
You can see that manifest.mf contains import of junit packages. Hense junit contains in target platform.
But ant does not know about junit dependency and ant haven't it in classpath. Therefore ant can't compile your project and you get compilation error.
You must add junit into ant classpath
 
Mukund Patil
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jeanne,

I am using the ant script to build the plugin. where to find the class path.
The structure of my project is

ROOT
|-com.example.test.foo
|-com.example.test.foo.testing

Both the plugins is in eclipse, not jar for the main plugin.
 
Acetylsalicylic acid is aspirin. This could be handy too:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic