Opened 4 years ago

Last modified 2 years ago

#1914 assigned defect

Eclipse build issues

Reported by: zzz Owned by: Zlatin Balevsky
Priority: minor Milestone: 0.9.34
Component: other Version: 0.9.28
Keywords: Cc:
Parent Tickets: #2057 Sensitive: no


As reported by _ms_ on IRC:

<i2pr> [Freenode/_ms_] hello there - anyone could help with come eclipse issue when trying to build i2p from scratch ?
<i2pr> [Freenode/_ms_] or anybody I could ask an advice in building the current i2p source code ?
<zzz> can give general advice, but not eclipse... eclipse might be broken
<zzz> ^^ _ms_
<i2pr> [Freenode/_ms_] well yeah - according to the i2p doc website, it should work out of the box just importing the projects into eclipse after i've cloned the repo
<i2pr> [Freenode/_ms_] and all the dependencies should be fine
<i2pr> [Freenode/_ms_] but honestly i'm having tons of dependencies issues
<zzz> unfortunately, we don't have anybody using eclipse atm, so the project files aren't maintained, and get broken when we make changes
<i2pr> [Freenode/_ms_] I see
<i2pr> [Freenode/_ms_] that makes sens, thanks zzz
<zzz> there's so many different IDEs, somebody gets them working and checks in the files, then vanishes again
<i2pr> [Freenode/_ms_] anyway, I presume it's just a matter of fixing the dependencies between the projects, and adding some missing jar file
<zzz> the one thing I know is broken is jrobin
<i2pr> [Freenode/_ms_] I see, ok
<i2pr> [Freenode/_ms_] uhm
<i2pr> [Freenode/_ms_] well actually it's one of the projects that compile without errors :P
<i2pr> [Freenode/_ms_] at least for me
<i2pr> [Freenode/_ms_] but I don't know if it runs ok or not
<zzz> we did have a jrobin jar in the source tree, we replaced it recently with updated java files, if that still works, great
<zzz> we don't have any dependencies at all for non-debian builds, all the code or jars are in there. Maybe things moved or got renamed, that's all
<zzz> there are dependencies for unit tests but that's it
<i2pr> [Freenode/_ms_] I see
<zzz> maybe there is an eclipse user in here, I don't know, if they are, speak up
<i2pr> [Freenode/_ms_] well just few examples of issues i'm facing:
<i2pr> [Freenode/_ms_] external libraries: ministreaming cannot resolve the org.hamcrest.matchers imports, so I have to pull them manually
<i2pr> [Freenode/_ms_] or org.junit
<zzz> yeah that's just for unit test, you don't need those
<zzz> if you don't build the test targets


Change History (6)

comment:1 Changed 4 years ago by zzz

Owner: set to str4d
Status: newassigned
<i2pr> [Slack/str4d] Re: Eclipse stuff, it was working for me as of 6 months ago
<i2pr> [Slack/str4d] Ah, yeah that could do it.
<zzz> yeah but you have the hamcrest stuff. Maybe the eclipse build is requiring the unit test stuff by default, or doesn't know where to find it?
<i2pr> [Freenode/_ms_] sorry guys I was playing with it and I lost few comments - yeah zzz I will comment that ticket indeed
<i2pr> [Freenode/_ms_] I'm just ecluding all the test folders from the build path at the moment and see how it goes
<i2pr> [Freenode/_ms_] *excluding

possibly related: #1891 #1767

Assigning to str4d since he admitted using Eclipse before

comment:2 Changed 3 years ago by zzz

Milestone: undecided0.9.34

some support checked in by str4d in 0.9.33 but you can't actually build it?

@str4d please update with status and target release

comment:3 Changed 3 years ago by zzz

Parent Tickets: 2057

comment:4 Changed 3 years ago by Zlatin Balevsky

Importing into eclipse works when using the build.gradle file as described on the website. However, that does not include the unit test code, and there are some XML validation errors that I've been unable to get rid of.

This means you can safely edit the code, but if you want to build a run-able version you still need to use ant.

comment:5 Changed 3 years ago by Zlatin Balevsky

I was wrong about the test code - it _is_ included. So it's just the XML validation errors that remain.

comment:6 Changed 2 years ago by zzz

Owner: changed from str4d to Zlatin Balevsky
Note: See TracTickets for help on using tickets.