summaryrefslogtreecommitdiff
path: root/libjava/gij.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gij.cc')
-rw-r--r--libjava/gij.cc27
1 files changed, 27 insertions, 0 deletions
diff --git a/libjava/gij.cc b/libjava/gij.cc
new file mode 100644
index 00000000000..f29e82520d1
--- /dev/null
+++ b/libjava/gij.cc
@@ -0,0 +1,27 @@
+/* Copyright (C) 1999 Cygnus Solutions
+
+ This file is part of libgcj.
+
+This software is copyrighted work licensed under the terms of the
+Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
+details. */
+
+/* Author: Kresten Krab Thorup <krab@gnu.org> */
+
+#include <jvm.h>
+#include <cni.h>
+#include <stdio.h>
+
+#include <java/lang/System.h>
+#include <java/util/Properties.h>
+
+int main (int argc, const char **argv)
+{
+ if (argc < 2)
+ {
+ printf ("usage: %s <class name> args\n", argv[0]);
+ exit (1);
+ }
+
+ JvRunMain (0, argc, argv);
+}