Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to configure the project after rewrite java files in 'core' package #209

Open
sjtu-jason opened this issue May 16, 2016 · 3 comments

Comments

@sjtu-jason
Copy link

sjtu-jason commented May 16, 2016

I have a really basic question.

After I rewrite the java file 'Auctioneer.java' in the 'net.powermatcher.core' package, I want to run the 'examples.bndrun'. But errors occur.

It shows that ‘......\PowerMatcher\net.powermatcher.core\generated\net.powermatcher.core.jar" does not exist, given error is null ’and '......\PowerMatcher\net.powermatcher.examples\generated\net.powermatcher.examples.jar" does not exist, given error is null'.

So, could you please tell me how to configure the project correctly to avoid these errors?
Thank you very much.

@wilcowijbrandi
Copy link
Member

Hi sjtu-jason,

It looks like Eclipse doesn't build the projects. Some things you might want to check:

  • Are you using Eclipse with the bndtools plugin?
  • Do you have any errors? If there are errors in other projects that might be a problem.
  • Did you use the git repository as you workspace? For some reason this has to be the same directory.
  • Did you check the documentation?

Hope this helps!

@sjtu-jason
Copy link
Author

sjtu-jason commented May 26, 2016

Thank you for your reply!

  1. I have installed Bndtools.
  2. There is no error in other projects.
  3. The workspace of the Eclipse is the same as the git repository.
  4. I totally followed the steps of the 'setting up your IDE' chapter of the documentation.

Now the problem is:

I am using the git repository of https://github.com/flexiblepower/PowerMatcher.git

After I rewrite the java file 'Auctioneer.java' in the 'net.powermatcher.core' package, the original jar file 'net.powermatcher.core.jar' in the folder 'generated' disappears.

I have to create a new Bundle Descriptor for the 'net.powermatcher.core' package, named 'mytest.bnd'. Then the 'net.powermatcher.core.mytest.jar' will be created automatically meanwhile. Then I replace the original 'net.powermatcher.core.jar' with the new 'net.powermatcher.core.mytest.jar' in other packages' Build Path.

Using this method, the project can run. However, my modification in 'Auctioneer.java' is not embodied! What's wrong?

@sjtu-jason
Copy link
Author

sjtu-jason commented Jun 2, 2016

I describe my problem again in detail in: http://blog.sina.com.cn/s/blog_e8dcffee0102w90l.html

I tried to solve this problem, but failed. detail: http://blog.sina.com.cn/s/blog_e8dcffee0102w90v.html

Would you please give me some help? Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants