ReBirth
|
 |
«
Posted
2012-06-25 06:16:45 » |
|
I had a jar-ed project before. It has jFreeChart jar as library inside. Everything did run fine. Then I added more library called jFuzzyLogic. This library has its own jFreeChart jar inside it (inside jFuzzyLogic jar) so I believe it uses its own rather mine. Its and mine jFreeChart jar have different version, mine is newer. Everything is fine on Eclipse. Then I packaged them again and deploy, I got this 1
| java.lang.IllegalAccessError: tried to access method org.jfree.data.general.Series.<init>(Ljava/lang/Comparable;)V from class org.myName.agent.gui.GuiForAgent |
My google-fu said it's caused by wrong version of library that you use, somekind like version overlapping or what. So any has solution?
|
|
|
|
65K
|
 |
«
Reply #1 - Posted
2012-06-25 06:52:32 » |
|
The constructor I see is protected, maybe that changed so you could use it before.
|
Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
|
|
|
ReBirth
|
 |
«
Reply #2 - Posted
2012-06-25 11:14:48 » |
|
What constructor? 
|
|
|
|
Games published by our own members! Check 'em out!
|
|
65K
|
 |
«
Reply #3 - Posted
2012-06-25 11:27:49 » |
|
Of class Series. I use jFreeChart 1.0.14. There it is protected. But as I see now it is also abstract, so you can't use it anyway. Which version do you use ?
|
Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
|
|
|
ReBirth
|
 |
«
Reply #4 - Posted
2012-06-25 11:32:24 » |
|
Exactly same with you. Exception throwed when instancing TimeSeries.
|
|
|
|
65K
|
 |
«
Reply #5 - Posted
2012-06-25 11:35:34 » |
|
Then try to kick out the chart stuff from the fuzzy lib. Bundling/nesting external libraries ain't no good anyway.
|
Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
|
|
|
ReBirth
|
 |
«
Reply #6 - Posted
2012-06-25 11:40:27 » |
|
Hmm I deleted chart lib from fuzzy lib, still same.
|
|
|
|
ra4king
|
 |
«
Reply #7 - Posted
2012-06-25 21:40:22 » |
|
Delete your own newer version of jFreeChart because jFuzzyLib compiled against the older version.
|
|
|
|
ReBirth
|
 |
«
Reply #8 - Posted
2012-06-26 11:27:58 » |
|
Replace new one with old one? seems legit. I'll try it now.
EDIT: It doesn't work, I got exactly same errors. This is going to be really big problem, as I have to submit this project packaged.
|
|
|
|
ra4king
|
 |
«
Reply #9 - Posted
2012-06-26 12:59:48 » |
|
Did you modify the jFuzzyLib jar that included both it and the jFreeChart libs?
|
|
|
|
Games published by our own members! Check 'em out!
|
|
ReBirth
|
 |
«
Reply #10 - Posted
2012-06-26 13:04:34 » |
|
My project jar has jFuzzyLib and jFreeChart v14. The jFuzzyLib itself has jFreeChart v11 inside it.
I removed my jFreeChart v14 and replace it with jFreeChart v11, which I got by extracting from jFuzzyLib.
|
|
|
|
ReBirth
|
 |
«
Reply #11 - Posted
2012-06-28 12:10:30 » |
|
To help anyone that want to help, here is my jars tree.
MyLonelyProject | | V V jFreeChart14 jFuzzy | V jFreeChart11
|
|
|
|
ReBirth
|
 |
«
Reply #12 - Posted
2012-06-30 04:43:13 » |
|
OMG! OMG! OMG! OMG! OMG! OMG! OMG! OMG! I solved this by only change export order in eclipse, even though it resulted to force me using old lib one OMG! OMG! OMG! OMG! OMG! OMG! OMG! OMG!
|
|
|
|
ra4king
|
 |
«
Reply #13 - Posted
2012-06-30 07:09:41 » |
|
Isn't that what I've been saying the entire time? 
|
|
|
|
ReBirth
|
 |
«
Reply #14 - Posted
2012-06-30 13:14:30 » |
|
But you said to delete it  And you let me do triple post.
|
|
|
|
65K
|
 |
«
Reply #15 - Posted
2012-06-30 13:30:42 » |
|
I don't understand what you are doing, so you are still dealing with two different versions ?
|
Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
|
|
|
ReBirth
|
 |
«
Reply #16 - Posted
2012-06-30 13:33:39 » |
|
I don't understand what you are doing, so you are still dealing with two different versions ?
So do I. I just change the export order. You know, fourth tab on eclipse's build path window.
|
|
|
|
65K
|
 |
«
Reply #17 - Posted
2012-06-30 13:43:06 » |
|
I don't understand what you are doing, so you are still dealing with two different versions ?
So do I. I just change the export order. You know, fourth tab on eclipse's build path window. Dont ever do that. Just remove the wrong version from you project completely. Such things can make you very unhappy... as you already painfully saw.
|
Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
|
|
|
ReBirth
|
 |
«
Reply #18 - Posted
2012-07-01 02:54:55 » |
|
I don't understand what you are doing, so you are still dealing with two different versions ?
So do I. I just change the export order. You know, fourth tab on eclipse's build path window. Dont ever do that. Just remove the wrong version from you project completely. Such things can make you very unhappy... as you already painfully saw. Look again my earlier post showing tree of the jars. The old one is contained inside other lib, and sure I can't just go in and delete it. The old one (freechart11) is classpathed by fuzzy lib.
|
|
|
|
ra4king
|
 |
«
Reply #19 - Posted
2012-07-01 05:29:45 » |
|
Of course you can go in and delete the old one. Jars are Zips  But of course, you don't want to do that since the fuzzy lib compiled against the old one which it included, so all you had to do was remove the 'new' one.
|
|
|
|
BoBear2681
|
 |
«
Reply #20 - Posted
2012-07-01 14:20:51 » |
|
Either modify jFuzzyLogic to use the new version of jFreeChart and remove the old version it depends on, or change the package names (but keep all the classes) for the old jFreeChart stuff and modify jFuzzyLogic to use the new package names. Since they're LGPL, any modified version of jFuzzyLogic & its jFreeChart dependency you create should be made publicly available.
|
|
|
|
ReBirth
|
 |
«
Reply #21 - Posted
2012-07-02 02:58:13 » |
|
@BoBear2681: The problem is I don't know how to do it  @ra4king: Yeah I know. I don't remove the new one because my project uses it. However even I say so, on runtime my project use old one together with jFuzzyLogic. If anyone want to waste their time for looking my project.
|
|
|
|
65K
|
 |
«
Reply #22 - Posted
2012-07-02 06:26:09 » |
|
After removing the new library from you project, all freechart dependencies should be resolved by the included fuzzy lib.
|
Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
|
|
|
ReBirth
|
 |
«
Reply #23 - Posted
2012-07-02 06:38:52 » |
|
Gonna try that, I don't know if eclipse can search deeper into inside someone's jar to find jar.
|
|
|
|
65K
|
 |
«
Reply #24 - Posted
2012-07-02 06:44:22 » |
|
The JFreeChart stuff is not included as jar inside the FuzzyLogic jar, but directly as class files.
|
Lethal Running - a RPG about a deadly game show held in a futuristic dysoptian society.
|
|
|
ReBirth
|
 |
«
Reply #25 - Posted
2012-07-02 06:50:46 » |
|
So what the point of including jar inside lib folder? :/ weird jFuzzyLogic.
|
|
|
|
ra4king
|
 |
«
Reply #26 - Posted
2012-07-02 08:56:57 » |
|
|
|
|
|
|