equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
33 import java.nio.channels.SocketChannel; |
33 import java.nio.channels.SocketChannel; |
34 |
34 |
35 public class Launcher { |
35 public class Launcher { |
36 |
36 |
37 static { |
37 static { |
38 System.loadLibrary("Launcher"); |
38 System.loadLibrary("InheritedChannel"); |
39 } |
39 } |
40 |
40 |
41 private static native void launch0(String cmdarray[], int fd) throws IOException; |
41 private static native void launch0(String cmdarray[], int fd) throws IOException; |
42 |
42 |
43 private static void launch(String className, String options[], String args[], int fd) throws IOException { |
43 private static void launch(String className, String options[], String args[], int fd) throws IOException { |