Build openjdk?

Peng Yu pengyu.ut at gmail.com
Thu Sep 17 23:54:32 UTC 2009


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