annotate lib/javaversion.h @ 7018:096754ee89e4

New module 'javaversion'.
author Bruno Haible <bruno@clisp.org>
date Sat, 22 Jul 2006 15:28:21 +0000
parents
children bbbbbf4cd1c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7018
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* Determine the Java version supported by javaexec.
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 2006 Free Software Foundation, Inc.
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3 Written by Bruno Haible <bruno@clisp.org>, 2006.
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 This program is free software; you can redistribute it and/or modify
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 it under the terms of the GNU General Public License as published by
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 the Free Software Foundation; either version 2, or (at your option)
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 any later version.
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 This program is distributed in the hope that it will be useful,
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 GNU General Public License for more details.
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 You should have received a copy of the GNU General Public License
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 along with this program; if not, write to the Free Software Foundation,
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #ifndef _JAVAVERSION_H
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 #define _JAVAVERSION_H
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23 #ifdef __cplusplus
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 extern "C" {
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #endif
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 /* Return information about the Java version used by execute_java_class().
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 This is the value of System.getProperty("java.specification.version").
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 Some possible values are: 1.1, 1.2, 1.3, 1.4, 1.5, 1.6. Return NULL if
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31 the Java version cannot be determined. */
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 extern char * javaexec_version (void);
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
33
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
34
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
35 #ifdef __cplusplus
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
36 }
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
37 #endif
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
38
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
39
096754ee89e4 New module 'javaversion'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
40 #endif /* _JAVAVERSION_H */