Help on Eclipse classpath file for Chrome Public Android

45 views
Skip to first unread message

MinhHoang To

unread,
Jun 1, 2015, 10:41:36 PM6/1/15
to chromi...@chromium.org
I am following the AndroidEclipse instructions to setup my own development environment

https://code.google.com/p/chromium/wiki/AndroidEclipseDev

To the end of the guide page, i encountered:

  • Java
    • Eclipse should have generated .project and perhaps a .classpath file in your <project root>/src/ directory.
    • Replace/Add the .classpath file with the content from Appendix I
    • Edit <project root>/src/.project as follows to make your project a Java project:
    • Add the following lines inside <buildSpec>:

At this step, i need .classpath file containing all necessary stuff for 'Chrome Public Android' (the content in Appendix I section looks out-of-date)



Anthony Berent

unread,
Jun 2, 2015, 4:43:47 AM6/2/15
to hoang...@gmail.com, chromi...@chromium.org
It almost certainly is, however it is probably a good starting point. For my personal use of Eclipse I add folders to the build path as I find the need, using the Eclipse UI.

Since one can't actually use Eclipse to build Chrome, but only as way of navigating the Chrome source code, it doesn't matter if the .classpath is incomplete, so long as it includes everything you are want to look at.

Having said this, it would be great if this could be fixed by generating the .classpath from GYP or GN, but I am not sure if that is even theoretically possible.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

MinhHoang To

unread,
Jun 2, 2015, 5:44:37 AM6/2/15
to chromi...@chromium.org, hoang...@gmail.com

Ok, I got this now. Eclipse for navigating and debugging and Ninja for the build

Newton Allen

unread,
Jun 18, 2015, 3:05:54 PM6/18/15
to MinhHoang To, Chromium-dev
Note: as of yesterday, there's a .classpath file checked into the source tree that you can use in Eclipse. Delete your existing .classpath file then run this:
src> ln -s tools/android/eclipse/.classpath .classpath
This will ensure that your classpath is always up to date as the codebase evolves. (The AndroidEclipseDev wiki page has been updated with these instructions)

--
Reply all
Reply to author
Forward
0 new messages