Build openjdk?
David Holmes - Sun Microsystems
David.Holmes at Sun.COM
Fri Sep 18 01:30:31 UTC 2009
Peng,
Peng Yu said the following on 09/18/09 10:47:
> I think that you have misunderstood me.
>
> In my original post, I have already downloaded openjdk-7-ea-src-b71-03_sep_2009.
>
> But before I should install jdk 6, which is on
> http://java.sun.com/javase/downloads/index.jsp
>
> I also need the source code to install jdk 6. The source code for jdk6
> is http://www.java.net/download/jdk6/6u18/promoted/b02/jdk-6u18-ea-src-b02-jrl-09_sep_2009.jar
You don't need this to install JDK6
> My current question is how to install jdk 6?
What did you download that required root access? As far as I know only
Solaris SVR4 packages need that and I don't see them as a download
option for JDK6.
Regards,
David Holmes
> Regards,
> Peng
>
> On Thu, Sep 17, 2009 at 7:37 PM, Kelly O'Hair <Kelly.Ohair at sun.com> wrote:
>> That is NOT open source and is not the OpenJDK.
>>
>> Please refer to http://openjdk.java.net/
>> and http://download.java.net/openjdk/jdk7/
>>
>> -kto
>>
>> Peng Yu wrote:
>>> Hi,
>>>
>>> I don't have root permission on my machine.
>>>
>>> In this case, shall I use the source?
>>>
>>>
>>> http://www.java.net/download/jdk6/6u18/promoted/b02/jdk-6u18-ea-src-b02-jrl-09_sep_2009.jar
>>>
>>> How to install it? I got the following error.
>>>
>>> $ java jdk-6u18-ea-src-b02-jrl-09_sep_2009.jar
>>> Exception in thread "main" java.lang.NoClassDefFoundError:
>>> jdk-6u18-ea-src-b02-jrl-09_sep_2009.jar
>>> at gnu.java.lang.MainThread.run(MainThread.java:102)
>>> Caused by: java.lang.ClassNotFoundException:
>>> jdk-6u18-ea-src-b02-jrl-09_sep_2009.jar not found in
>>> gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
>>> parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
>>> at java.net.URLClassLoader.findClass(URLClassLoader.java:529)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:442)
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:377)
>>> at gnu.java.lang.MainThread.run(MainThread.java:98)
>>>
>>>
>>> Regards,
>>> Peng
>>>
>>> On Thu, Sep 17, 2009 at 6:06 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I'm not sure which one I should download on
>>>> http://java.sun.com/javase/downloads/index.jsp
>>>>
>>>> Java SE Development Kit (JDK) Bundles
>>>>
>>>> or
>>>>
>>>> Java SE Development Kit (JDK)
>>>>
>>>> What are Java EE, JavaFX SDK and NetBeans 6.7.1?
>>>>
>>>> Regards,
>>>> Peng
>>>>
>>>> On Thu, Sep 17, 2009 at 5:37 PM, Kelly O'Hair <Kelly.Ohair at sun.com>
>>>> wrote:
>>>>> You need a JDK to build the JDK.
>>>>>
>>>>> If you have a JDK (jdk6 vintage) on your system already, yes
>>>>> you can use that, just point ALT_BOOTDIR at it and skip step 1.
>>>>>
>>>>> -kto
>>>>>
>>>>> Peng Yu wrote:
>>>>>> Hi,
>>>>>>
>>>>>> README of openjdk-7-ea-src-b71-03_sep_2009 says the following. I am
>>>>>> wondering why I need step 1. Can I start with step 2 directly?
>>>>>>
>>>>>> Simple Build Instructions:
>>>>>>
>>>>>> 1. Download and install a JDK 6 from
>>>>>> http://java.sun.com/javase/downloads/index.jsp
>>>>>> Set the environment variable ALT_BOOTDIR to the location of this JDK
>>>>>> 6.
>>>>>>
>>>>>> 2. Download and install the Binary Plugs for the most recent JDK7 from
>>>>>> http://download.java.net/openjdk/jdk7/
>>>>>> Set the environment variable ALT_BINARY_PLUGS_PATH to the location
>>>>>> of
>>>>>> these binary plugs.
>>>>>>
>>>>>> 3. Check the sanity of doing a build with the current machine:
>>>>>> gnumake sanity
>>>>>> See README-builds.html if you run into problems.
>>>>>>
>>>>>> 4. Do a complete build of the jdk:
>>>>>> gnumake all
>>>>>> The resulting JDK image should be found in build/*/j2sdk-image
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Peng
More information about the build-dev
mailing list