Hacking the OpenJDK

Camel Aissani camel.aissani at gmail.com
Mon Mar 24 15:18:54 PDT 2008


Okay thank you guys. Now I hope I can contribute ;-)


2008/3/24, Andrew John Hughes <gnu_andrew at member.fsf.org>:
>
> On 24/03/2008, Camel Aissani <camel.aissani at gmail.com> wrote:
> > Lillian,
> >
> > I get my icedtea sources from mercurial.
> > The make under icedtea folder works perfectly.
> >
> > I don't know if it makes sense to only build the jdk (I only want to fix
> > SWING issues)?
>
>
> You at least need to build j2se and HotSpot to have something usable.
> If you aren't modifying code elsewhere, it won't be rebuilt.
>
>
> > In fact, it is very difficult to launch the make from folder
> openjdk/make.
>
>
> You shouldn't be running this make, but IcedTea's make so that it
> passes through the correct options to the OpenJDK build.
>
>
> >  Previously, I had a problem with ant because my ANT_HOME wasn't set :(
> > After having resolved this problem, I had many others problems with env
> > variables.
> > I know that I can set many of them with the icedtea make (make env),but
> it
> > is not enough.
> >  Freetype check version failed
> > Plugs libraries wasn't found even if ALT_BINARY_PLUGS_PATH was setted
> > ...
> >
>
>
> Replacement (Free) plug libraries for OpenJDK are part of IcedTea and
> will be configured by its build system.  Perhaps include here the
> output from IcedTea's make when it runs make in OpenJDK?
>
> The Freetype check failure suggests you don't have a new enough
> Freetype installed by your distro (with headers).
>
>
> > Finally, I am going to use the SWING netbeans projects located in
> > icedtea/openjdk/jdk/make/netbeans.
> >  It will be nice if the documentation here
> > http://nb-openjdk.netbeans.org/get-and-build.html can be
> > updated with the right path to located netbeans projects.
> >
>
>
> This is a question for the Sun OpenJDK people.
>
>
> > Camel
> >
> > 2008/3/24, Lillian Angel <langel at redhat.com>:
> > > Camel Aissani wrote:
> > > > Hi Lillian,
> > > >
> > > > Sorry to insist but I updated my repo and I still have the
> exception.
> > > > In my repo, I have a patch file icedtea-version.patch and is
> correctly
> > > > applied on these files :
> > > > openjdk/jdk/make/common/shared/Defs.gmk
> > > > openjdk/hotspot/src/share/vm/runtime/arguments.cpp
> > >
> > > When did you update the repo? This patch should definitely be there,
> but
> > > it was modified. Run make distclean && hg pull && hg update.
> > >
> > >
> > > >
> > > > What can I do to identify and fix my problem?
> > >
> > >
> > > How are yo configuring IcedTea?
> > >
> > >
> > > Lillian
> > >
> > > >
> > > > Thanks,
> > > > Camel
> > > >
> > > > 2008/3/21, Lillian Angel <langel at redhat.com <mailto:
> langel at redhat.com>>:
> > >
> > > >
> > > >
> > > >
> > > >     Camel Aissani wrote:
> > > >     >
> > > >     > Okay after reading the guide and readme. I set few environment
> > > >     variables :
> > > >     >
> > > >     >
> > ALT_BOOTDIR=$HOME/devel/hg/icedtea/bootstrap/jdk1.6.0
> > > >     > ALT_BINARY_PLUGS_PATH=$HOME/plugs
> > > >     > ALT_CUPS_HEADERS_PATH=/usr/include
> > > >     > ALT_FREETYPE_LIB_PATH=/usr/lib
> > > >     > ALT_FREETYPE_HEADERS_PATH=/usr/include
> > > >     >
> > > >     > After that the "make sanity" was ended successfully.
> > > >     > Currently, I can't compile the jdk because of this stack
> trace:
> > > >     >
> > > >     > Exception in thread "main" java.lang.NoClassDefFoundError:
> > > >     > org/apache/tools/ant/launch/Launcher
> > > >     > Caused by: java.lang.ClassNotFoundException:
> > > >     > org.apache.tools.ant.launch.Launcher
> > > >     >         at java.net.URLClassLoader$2.run(URLClassLoader.java
> :220)
> > > >     >         at
> > java.security.AccessController.doPrivileged(Native
> > > >     Method)
> > > >     >         at
> > > >
> > java.net.URLClassLoader.findClass(URLClassLoader.java:209)
> > > >     >         at java.lang.ClassLoader.loadClass(ClassLoader.java
> :323)
> > > >     >         at
> > > >
> > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> > > >     >         at java.lang.ClassLoader.loadClass(ClassLoader.java
> :268)
> > > >     >         at
> > > >
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
> > > >     > Error: Could not find the main class.
> > > >     > Error: A JNI error has occurred, please check your
> installation
> > and
> > > >     > try again
> > > >     >
> > > >     > I found an email that speaks about this
> > > >     ClassNotFoundException,  but I
> > > >     > don't know how I can fix this problem.
> > > >     >
> > > >
> >
> http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2008-February/001203.html
> > > >     >
> > > >     > An idea ?
> > > >
> > > >
> > > >     This was fixed. Update the repo
> > > >
> > > >     Lillian
> > > >
> > > >
> > > >
> > > >     >
> > > >     > Thanks,
> > > >     > Camel
> > > >     >
> > > >     > 2008/3/20, David Herron <David.Herron at sun.com
> > > >     <mailto:David.Herron at sun.com>
> > > >
> > >
> > > >     > <mailto:David.Herron at sun.com <mailto:David.Herron at sun.com>>>:
> > >
> > > >
> > > >     >
> > > >     >
> > > >     >     http://openjdk.java.net/guide/ -- it's still a work in
> > progress
> > > >     >     and if you have any questions perhaps you can ask in the
> > > >     >     guide-discuss list to get clarifications.
> > > >     >
> > > >     >     Yes you can use an IDE to work on OpenJDK changes but your
> > 'IDE'
> > > >     >     can also be "ed" or "vi".  It's up to individual
> preference.
> > > >     >
> > > >     >     In the OpenJDK and OpenJDK6 source trees there are some
> > netbeans
> > > >     >     projects that can help you get started.  They are in
> > > >     >     'jdk/make/netbeans' (if I remember the path right)
> > > >     >
> > > >     >     The important README's within the source tree are:
> > > >     >
> > > >     >         README-builds.html
> > > >     >         jdk/make/README
> > > >     >         jdk/make/netbeans/README
> > > >     >
> > > >     >     They give information about configuring your environment.
> > > >     >
> > > >     >     The recent discussion you're seeing about Visual Studio is
> > very
> > > >     >     recent.  Most of us are on other platforms.  I regularly
> > compile
> > > >     >     on Ubuntu w/o problem.  No need to be on Windows unless
> that's
> > > >     >     your cup of tea, of course.
> > > >     >
> > > >     >     In Elliotte's article, if he'd read the README's
> beforehand he
> > > >     >     woulda had an easier time ;-)
> > > >     >
> > > >     >     - David Herron
> > > >     >
> > > >     >
> > > >     >
> > > >     >     Camel Aissani wrote:
> > > >     >>     Hi,
> > > >     >>
> > > >     >>     I would like to contribute to the openjdk, but I wasn't
> able
> > to
> > > >     >>     find a document that explains how to make my first hack
> :(
> > > >     >>     At this time, I have a fedora 8 distribution and I had
> > compile
> > > >     >>     the entire icedtea project.
> > > >     >>     Many thanks to Sylvain for your french wiki it was very
> > > >     useful ;-)
> > > >     >>
> > > >     >>     Now I don't know if I can use an IDE to hack (Netbeans,
> > > >     >>     eclipse...). Sorry for the purist...I am a javaboy and I
> > > >     like my IDE.
> > > >     >>     In many emails about icedtea, I read a lot of stuff
> arround
> > > >     >>     Visual Studio...I hope that I will be able to hack
> without
> > > >     windows.
> > > >     >>
> > > >     >>     Two days ago, I tried to compile the openjdk in debug
> mode. I
> > > >     >>     failed...
> > > >     >>     I read this article
> > > >     >>
> > > >
> > http://today.java.net/pub/a/today/2007/11/29/building-the-jdk.html
> > > >     >>     where there is a lot information.
> > > >     >>     Could you give me other links where I can find a
> simpliest
> > > >     way to
> > > >     >>     compile the jdk on fedora?
> > > >     >>
> > > >     >>     Cheers
> > > >     >>     Camel
> > > >     >>
> > > >     >>
> > > >
> > > >     >>     2008/3/20, Mark Wielaard <mark at klomp.org
> > >
> > > >     <mailto:mark at klomp.org> <mailto:mark at klomp.org
> > >
> > > >     <mailto:mark at klomp.org>>>:
> > > >
> > > >     >>
> > > >     >>         Hi Sylvain,
> > > >     >>
> > > >     >>
> > > >     >>         On Wed, 2008-03-19 at 22:33 +0100, Sylvain Beucler
> wrote:
> > > >     >>         > (My apologizes if that's not the right list to ask,
> I
> > > >     >>         didn't find
> > > >     >>         > other contact adresses)
> > > >     >>
> > > >     >>
> > > >     >>         You are right. There is no other contact address.
> This
> > list
> > > >     >>         is it!
> > > >     >>
> > > >     >>
> > > >     >>         > I would like to contribute IcedTea build
> instructions
> > for
> > > >     >>         Debian on
> > > >     >>         > the wiki. I have a French version here:
> > > >     >>         >
> > http://doc.cliss21.com/index.php?title=IcedTea
> > > >     >>
> > > >     >>
> > > >     >>         Nice and thanks!
> > > >     >>
> > > >     >>
> > > >     >>         > Apparently account creation is blocked.
> > > >     >>         > What is the procedure to register one?
> > > >     >>
> > > >     >>
> > > >     >>         Sorry about the account creation being blocked.
> > > >     >>         Unfortunately spammers learned how to create accounts
> > > >     and...
> > > >     >>         sniff :{
> > > >     >>         So for now you just have to ask on this list and an
> > account
> > > >     >>         for your
> > > >     >>         email address will be created. I just did this for
> you.
> > > >     >>
> > > >     >>         Cheers,
> > > >     >>
> > > >     >>
> > > >     >>         Mark
> > > >     >>
> > > >     >>
> > > >     >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>
> --
> Andrew :-)
>
> Document Freedom Day - March 26th
> http://documentfreedom.org
>
> Support Free Java!
> Contribute to GNU Classpath and the OpenJDK
> http://www.gnu.org/software/classpath
> http://openjdk.java.net
>
> PGP Key: 94EFD9D8 (http://subkeys.pgp.net)
> Fingerprint: F8EF F1EA 401E 2E60 15FA  7927 142C 2591 94EF D9D8
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20080324/99d2e410/attachment.html 


More information about the distro-pkg-dev mailing list