[jcifs] Updating ACE[] using jcifs

Michael B Allen ioplex at gmail.com
Fri Mar 9 09:14:10 MST 2012


On Fri, Mar 9, 2012 at 7:53 AM, Chris Dail <chrisdail at gmail.com> wrote:
> Michael,
>
> Thanks for the pointers. I will take a look at midlc. I looked at the
> README.txt and there does not seem to be a mention of midlc (search turns up
> empty).

Hi Chris,

Are you looking at the README.txt that comes with the midlc package in
the JCIFS download area?

INSTALLATION

Midlc  must  be  compiled  from  source. It is known to compile on Linux and
Windows  although  the  Windows  implementation  currently does not run the
preprocessor   (need   to   implement   preprocw.c).   Libmba  is  required
(http://www.ioplex.com/~miallen/libmba/).  Follow  the  libmba instructions
for  the target platform, modify the first line of the Makefile to point to
the   libmba   directory,   and  run  'make'.  On  Windows  run  'nmake  -f
Makefile.msvc'.

RUNNING

usage: ./midlc [-v|-d] [-s <symtab>] [-t c|java] [-o outfile]
[-Dmacro=defn] <filename>

-v verbose   - List partial parse tree
-d debug     - List full parse tree and insert symbol comments into stub
-s <symtab>  - Specify primative data type symbol table (default is
               currently symtabjava.txt)
-t c|java    - Specify the code type generated (currently only java
               is supported)
-o <outfile> - Specify name of output file. Otherwise outfile is same
               name as input pathname but with different extension
               (e.g. .java)
-Dmacro=defn - Specify a preprocessor macro. All idl files are first
               processed by the preprocessor. Additionally setting the
               special macro 'package' will insert a 'package xyz;'
               statement at the top of the generated Java stub.
<filename>   - The pathname of the input IDL file.

Beware  that  validation  is  totally  non-existant.  The input IDL MUST be
syntactically perfect. Try running your IDL though MIDL to be certain it is
valid.

EXAMPLE

  $ ./midlc -v src/HelloWorld.idl

or

  C:\> midlc -v src\HelloWorld.idl

This  will  generate  a  class file src/HelloWorld.java that can encode and
decode  NDR  into an arbitrary byte array. Create a driver program like the
Jarapac example and run it.

>
> Chris,
>
> Thanks for the link you sent. That information will be very helpful.

I doubt that.

Mike


More information about the jCIFS mailing list