1 /*
2 * 11/29/2001
3 *
4 * WindowsFileLauncher.java
5 * Copyright (C) 2001 Frederik Zimmer
6 * tristian@users.sourceforge.net
7 * http://sourceforge.net/projects/ziga/
8 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; either version 2
12 * of the License, or any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22 */
23 package ziga.util;
24
25 /***
26 * Uses ziga.dll to launch a file.
27 *
28 * Adopted for XNap by Steffen Pingel.
29 *
30 * @version 0.1 11/29/2001
31 * @author Frederik Zimmer
32 */
33
34 public class WindowsFileLauncher {
35
36 public native int launchFile(String filepath);
37
38 public static void open(String filename)
39 {
40 WindowsFileLauncher wfl = new WindowsFileLauncher();
41 wfl.launchFile(filename);
42 }
43
44 }