Lines Matching +full:len +full:- +full:or +full:- +full:define
2 ----------------------------------------------
14 ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/Java-HOWTO
21 2) You have to compile BINFMT_MISC either as a module or into
43 or the following, if you want to be more selective::
45 ':Applet:M::<!--applet::/usr/bin/appletviewer:'
52 existing html-files to contain ``<!--applet-->`` in the first line
62 gcc -O2 -o javaclassname javaclassname.c
71 .. code-block:: sh
74 # /usr/local/bin/javawrapper - the wrapper for binfmt_misc/java
76 if [ -z "$1" ]; then
78 echo Usage: $0 class-file
84 FQCLASSN=`echo $FQCLASS | sed -e 's/^.*\.\([^.]*\)$/\1/'`
85 FQCLASSP=`echo $FQCLASS | sed -e 's-\.-/-g' -e 's-^[^/]*$--' -e 's-/[^/]*$--'`
95 declare -i LINKLEVEL=0
100 cd -L `dirname $CLASS`
103 if echo $CLASSDIR | grep -q "$FQCLASSP$"; then
104 CLASSBASE=`echo $CLASSDIR | sed -e "s.$FQCLASSP$.."`
108 cd -P `dirname $CLASS`
111 if echo $CLASSDIR | grep -q "$FQCLASSP$"; then
112 CLASSBASE=`echo $CLASSDIR | sed -e "s.$FQCLASSP$.."`
116 if [ ! -L $CLASS ]; then
124 if [ ! -L $CLASS ]; then break; fi
127 if [ $LINKLEVEL -gt 5 ]; then
133 CLASS=`ls --color=no -l $CLASS | sed -e 's/^.* \([^ ]*\)$/\1/'`
136 if [ -z "$CLASSBASE" ]; then
137 if [ -z "$FQCLASSP" ]; then
148 if ! echo $CLASSPATH | grep -q "^\(.*:\)*$CLASSBASE\(:.*\)*"; then
150 if [ -z "${CLASSPATH}" ] ; then
162 .. code-block:: c
171 * This program is free software; you can redistribute it and/or modify
173 * the Free Software Foundation; either version 2 of the License, or
178 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
183 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
193 #define CP_UTF8 1
194 #define CP_INTEGER 3
195 #define CP_FLOAT 4
196 #define CP_LONG 5
197 #define CP_DOUBLE 6
198 #define CP_CLASS 7
199 #define CP_STRING 8
200 #define CP_FIELDREF 9
201 #define CP_METHODREF 10
202 #define CP_INTERFACEMETHODREF 11
203 #define CP_NAMEANDTYPE 12
204 #define CP_METHODHANDLE 15
205 #define CP_METHODTYPE 16
206 #define CP_INVOKEDYNAMIC 18
208 /* Define some commonly used error messages */
210 #define seek_error() error("%s: Cannot seek\n", program)
211 #define corrupt_error() error("%s: Class file corrupt\n", program)
212 #define eof_error() error("%s: Unexpected end of file\n", program)
213 #define utf8_error() error("%s: Only ASCII 1-255 supported\n", program);
225 /* Reads in an unsigned 8-bit integer. */
234 /* Reads in an unsigned 16-bit integer. */
250 u_int16_t len;
256 len = read_16(classfile);
257 seekerr = fseek(classfile, len, SEEK_CUR);
326 if(!pool[this_class] || pool[this_class] == -1)
334 if(!pool[classinfo_ptr] || pool[classinfo_ptr] == -1)
370 # /usr/local/java/bin/jarwrapper - the wrapper for binfmt_misc/jar
372 java -jar $1
375 Now simply ``chmod +x`` the ``.class``, ``.jar`` and/or ``.html`` files you
379 .class file into /usr/bin (or another place you like) omitting the .class
387 .. code-block:: java
423 added executable Jar file support by Kurt Huwig <kurt@iku-netz.de>