test/jdk/tools/launcher/exeJliLaunchTest.c
author ihse
Tue, 22 Oct 2019 09:51:52 +0200
branchihse-cflags-rewrite-branch
changeset 58736 e878a0b7cff0
parent 52788 241b8151b6b6
permissions -rw-r--r--
Add doubunder on solaris in two places.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
52788
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     1
/*
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     2
 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     4
 *
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    10
 *
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    15
 * accompanied this code).
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    16
 *
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    20
 *
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    23
 * questions.
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    24
 */
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    25
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    26
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    27
/*
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    28
 * This file contains the main entry point into the launcher code
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    29
 * this is the only file which will be repeatedly compiled by other
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    30
 * tools. The rest of the files will be linked in.
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    31
 */
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    32
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    33
#include "java.h"
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    34
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    35
int
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    36
main(int argc, char **argv)
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    37
{
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    38
    return JLI_Launch(argc, argv,
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    39
                   0, NULL,
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    40
                   0, NULL,
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    41
                   "1", "0",
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    42
                   *argv, *argv,
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    43
                   0, 0, 0, 0);
241b8151b6b6 8213362: [macOS] Could not find libjava.dylib error when initializing JVM via JNI_CreateJavaVM
henryjen
parents:
diff changeset
    44
}