Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » help needed to build eclipse source
help needed to build eclipse source [message #229910] Wed, 29 August 2007 20:32 Go to next message
Eclipse UserFriend
Originally posted by: elaine.chang.chaperon-secure.com

Hi,

Could anyone help me with building eclipse source code? Here's what I did:

1. downloaded eclipse-sourceBuild-srcIncluded-3.2.1.zip
2. from a window XP command line prompt, unzipped the eclipse source and
cd'ed into the source:
3. ran the following command to build:
> build -os win32 -ws win32 -arch x86 -java5home "C:\Program
Files\Java\jdk1.5.0_09"

At first, the above command failed because of the "" I used for the
java5home path. Anyway, I got around it in the build.bat, but it failed
with the following error:
(In fact, I even tried to comment out the junit4 module in build.xml, but
it failed again in another class after running for 22 minutes. Hmm, should
I try to download another build? How should I get help with building the
source on window? Which release of eclipse is most reliable to build? )

...
[zip] Warning: skipping zip archive
C:\ECLIPS~1.1\plugins\org.eclipse.osgi
services\src.zip because no files were included.
[zip] Warning: skipping zip archive
C:\ECLIPS~1.1\plugins\org.eclipse.osgi
util\src.zip because no files were included.
[javac] ----------
[javac] 1. ERROR in
C:\ECLIPS~1.1\plugins\org.eclipse.jdt.junit4.runtime\src
\org\eclipse\jdt\internal\junit4\runner\JUnit4Identifier.jav a
[javac] (at line 1)
[javac]
/*********************************************************** ****
****************
[javac] ^
[javac] The type java.lang.Object cannot be resolved. It is indirectly
refer
enced from required .class files
[javac] ----------
[javac] 1 problem (1 error)

BUILD FAILED
C:\ECLIPS~1.1\build.xml:60: The following error occurred while executing
this li
ne:
C:\ECLIPS~1.1\build.xml:8: The following error occurred while executing
this lin
e:
C:\ECLIPS~1.1\features\org.eclipse.sdk\build.xml:35: The following error
occurre
d while executing this line:
C:\ECLIPS~1.1\features\org.eclipse.sdk\build.xml:19: The following error
occurre
d while executing this line:
C:\ECLIPS~1.1\features\org.eclipse.jdt\build.xml:109: The following error
occurr
ed while executing this line:
C:\ECLIPS~1.1\features\org.eclipse.jdt\build.xml:30: The following error
occurre
d while executing this line:
C:\ECLIPS~1.1\plugins\org.eclipse.jdt.junit4.runtime\build.x ml:103: The
followin
g error occurred while executing this line:
C:\ECLIPS~1.1\plugins\org.eclipse.jdt.junit4.runtime\build.x ml:76: Compile
faile
d; see the compiler error output for details.

Total time: 15 minutes 41 seconds

Thanks much,
Elaine
Re: help needed to build eclipse source [message #229927 is a reply to message #229910] Wed, 29 August 2007 21:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Elaine" <elaine.chang@chaperon-secure.com> wrote in message
news:0f93d372c0ff5651df83ff6eb948260b$1@www.eclipse.org...
> 1. downloaded eclipse-sourceBuild-srcIncluded-3.2.1.zip
> [...] Hmm, should I try to download another build? Which release of
> eclipse is most reliable to build? )

Generally, you might want to use the most recent released build, which is
currently 3.3.0. Or at least the most recent maintenance version of the
major version you're interested in; 3.2.2 is newer than 3.2.1. But I don't
think that's your problem, in any event; all those should build just fine.


> How should I get help with building the source on window?

Posting here is a good start. If you don't get a good answer here, you
could also try eclipse.platform.


> [javac] The type java.lang.Object cannot be resolved.

That's generally a sign that something is missing or wrong with your
classpath, or with the JDK you're trying to compile against. Are you sure
you have a full JDK, not just a JRE? (The answer is probably yes, because
it looks like you have javac.exe; I'm just checking.) Are there any other
versions of the JDK on your system path?

I know that's not much help; maybe someone more familiar with building from
the zipped sources can chime in here.
Re: help needed to build eclipse source [message #230047 is a reply to message #229927] Thu, 30 August 2007 18:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: elaine.chang.chaperon-secure.com

Thanks much Walter.

As you suggested, I downloaded eclipse-sourceBuild-srcIncluded-3.3 and
built with java 1.6 JDK:

> build -os win32 -ws win32 -arch x86 -java5home C:\java1.6\jdk1.6.0_02\

But it failed again after 57 minutes. Any ideas? How long does it usually
take for the entire build? 1 hour seems too long. For developers, is there
a shortcut to rebuild without starting all over again?

------------------------------------------------------------ ------------------
[javac] Type safety: The method toArray(Object[]) belongs to the raw
type Ar
rayList. References to generic type ArrayList<E> should be parameterized
[javac] ----------
[javac] 45 problems (45 warnings)
[echo] Assembling...

BUILD FAILED
C:\eclipse_src_3.3\build.xml:144: The following error occurred while
executing this line:
C:\eclipse_src_3.3\assemble.org.eclipse.sdk.win32.win32.x86. xml:910:
Execute failed: java.io.IOException: Cannot run program "zip" (in
directory "C:\eclipse_src_3.3\tmp"): CreateProcess error=2, The system
cannot find the file specified

Total time: 57 minutes 52 seconds
------------------------------------------------------------ -----------------

Thanks,
Elaine
Re: help needed to build eclipse source [message #230066 is a reply to message #230047] Fri, 31 August 2007 08:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wharley.bea.com

"Elaine" <elaine.chang@chaperon-secure.com> wrote in message
news:4a948efa6bdd97ac24c2e8eef631b23c$1@www.eclipse.org...
> Thanks much Walter.
> As you suggested, I downloaded eclipse-sourceBuild-srcIncluded-3.3 and
> built with java 1.6 JDK:
>
>> build -os win32 -ws win32 -arch x86 -java5home C:\java1.6\jdk1.6.0_02\
>
> But it failed again after 57 minutes. Any ideas? How long does it usually
> take for the entire build? 1 hour seems too long. For developers, is there
> a shortcut to rebuild without starting all over again?


I think the Eclipse nightly builds take considerably more than an hour, but
I'm not sure.

Most developers don't ever build all of Eclipse. Rather, we build a few
plug-ins at a time. For instance, I work on the APT plugins within the JDT
project. So, I have a workspace where I check out the APT plugins from the
Eclipse CVS repository. That workspace contains about a dozen projects: all
the APT plugins, plus some other JDT plugins that I often need to refer to
or get the latest version of. I've been working on Eclipse for a couple
years now and I don't think I've ever actually built the whole thing from
source... I think the only reason you'd need to do that would be if you were
trying to port it to a nonsupported platform.

I'm not sure why the build is failing for you, but that "Cannot run program
"zip"... The system cannot find the file specified" might suggest that you
are missing some required tools? Do you have a zip utility on the path?
Re: help needed to build eclipse source [message #230858 is a reply to message #230066] Tue, 04 September 2007 22:43 Go to previous message
Eclipse UserFriend
Originally posted by: elaine.xxxxxxxxx.xx

Thanks Walter. Okay, eclipse 3.3 built successfully now after the zip path
was resolved.
Instead of creating new plugins, I need to make some minor changes with
the existing plugins. For example, I'd like to rebuild the following
plugins only and test out:
C:\eclipse_src_3.3\plugins\org.eclipse.ui.browser\
Just wondering from the window command-line prompt, how to manually
rebuild the jar for this plugin?
org.eclipse.ui.browser_3.2.100.v20070524A.jar
I tried "ant" from this plugin directory or from the feature/ dir, but
both failed. I searched the help menu, but only found the steps for
creating new plugins. Do I need to rebuild from eclipse IDE instead?

Thanks,
Elaine
Previous Topic:Counting Lines of code
Next Topic:Install Eclipse Classic Window
Goto Forum:
  


Current Time: Thu Mar 28 10:02:44 GMT 2024

Powered by FUDForum. Page generated in 0.06275 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top