flexiblepower / powermatcher

PowerMatcher - The Java implementation of the PowerMatcher, including the API, the core, a couple of examples, a remote implementation using websockets and a visualisation of the configuration.
http://www.powermatcher.org
Apache License 2.0
43 stars 25 forks source link

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

Open sjtu-jason opened 8 years ago

sjtu-jason commented 8 years ago

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 commented 8 years ago

Hi sjtu-jason,

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

Hope this helps!

sjtu-jason commented 8 years ago

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 commented 8 years ago

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.