/* 
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.harmony.tools.javac;


/**
 * This is the entry point for the javac tool.
 */
public final class Main {

    public static void main(String[] args) {

        /* Give me something to do */
        if (args.length == 0) {
            new Compiler().printUsage();
            return;
        }

        /* Add in the base class library code to compile against */
        String[] newArgs = addBootclasspath(args);

        /* Invoke the compiler */
        Compiler.main(newArgs);
    }

    /**
     * Default constructor.
     */
    public Main() {
        super();
    }

    /*
     * Set up the compiler option to compile against the running JRE class
     * libraries.
     */
    public static String[] addBootclasspath(String[] args) {
        String[] result = new String[args.length + 2];
        System.arraycopy(args, 0, result, 0, args.length);
        result[args.length] = "-classpath";
        result[args.length + 1] = System.getProperty(
                "org.apache.harmony.boot.class.path", ".");
        return result;
    }
}

@@ -1773,16 +1773,18 @@
 operty(%0A
+//
         
@@ -1835,16 +1835,52 @@
 , %22.%22);%0A
+        %22vm.boot.class.path%22, %22.%22);%0A
         

switch the property used - o.a.h.b.c.p is created by luni based on classlib boot, and doesn't include the VM-specific kernel jar. That's needed for j.l.Object, and such