This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Java under Cygwin and the installation of CaGe


this is my problem: I used Windows XP and would like to install the graph 
visualization software CaGe, obtainable at

which is built in, and requires Java; the system requirements include
the following passage:

a Java installation
(with Java Native Interface [JNI] files -- which means that a Runtime
Environment [JRE] won't be enough, you need the full Software Development
Kit [SDK]. Tested with JavaSoft's JDK 1.1.7 and Borland JBuilder's 1.3).

However, no Windows version of CaGe exists and thus I have settled for 

I have little experience with Java and virtually no experience with Cygwin,
so please view my inability to make sense of the errors which I describe 
below in this light. I am not even able to find out whether I have the 
necessary JNI files (I do not now what this is) or how to obtain from
SUN's site the files I need. Nor can I read off from the error messages 
below whether the only problem are the missing JNI files or whether there
are Cygwin related things to do in order to get CaGe running.

I have done a complete installation of Cygwin and it seems to work fine, 
just as some tutorial expect it to work.

Now I describe the errors that arise during the installation:

When I start the installation of CaGe after downloading and unzipping
the files by ./, then the following things happen: I quote:

* Looking for a C compiler ...
Ok, using '/usr/bin/gcc'.

* Looking for commands: 'unzip', 'make', 'mkdir', 'chmod', 'find' ...
All found.

* Looking for a Java installation ...

The following directory seems to be part of a Java installation.
Choose it (enter 1) or enter the path of another such directory.
Enter '?' for a full search. '-' to exit.

1: /cygdrive/c/Programme/Java/jdk1.5.0_09/bin

number or directory:


If I confirm this with 1, the installation continues and fails as follows:

* Making native libraries ...

/usr/bin/gcc -fPIC -c -I/cygdrive/c/Programme/Java/jdk1.5.0_09/include
ive/c/Programme/Java/jdk1.5.0_09/include/win32 NativeCaGePipe.c
der.c NativeEmbeddableGraph.c NativeEdgeIterator.c NativePlanarWriter.c
itegraphWriter.c NativeCMLWriter.c NativePDBWriter.c Pipe.c
m.c BufferedFDOutputStream.c get_element.c check_graph.c graph.c
read_graphs.c d
string.c cmd_vector.c pipe_tools.c file_tools.c malloc.c jbytes.c j_debug.c
ror_exit.c Systoolbox.c
NativeCaGePipe.c:1: warning: -fPIC ignored for target (all code is position
In file included from
from NativeCaGePipe.h:2,
from NativeCaGePipe.c:21:
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/win32/jni_md.h:16: error:
parse e
rror before "jlong"
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/win32/jni_md.h:16: warning:
definition has no type or storage class
In file included from NativeCaGePipe.h:2,
from NativeCaGePipe.c:21:
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:108: error: parse error
ore "jlong"
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:108: warning: no
at end of struct or union
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:112: error: parse error
ore '}' token
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:112: warning: data
on has no type or storage class
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:255: error: parse error
ore '*' token
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:270: error: parse error
ore '*' token
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:277: error: parse error
ore '*' token
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:284: error: parse error
ore '*' token


( It goes on like that for a long time with similar messages
and ends as follows)

/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:735: warning: data
on has no type or storage class
/cygdrive/c/Programme/Java/jdk1.5.0_09/include/jni.h:736: error: parse error
ore '}' token
make: *** [CaGe.dll] Error 1

- 'make' failure, aborting.

I have searched with Google for quite a long time on the topic of Java and
Cygwin and CaGe, but have hardly found more than

and all this does not help me. The hint to get acquainted with the 
cygpath command does not help me either. 

It seems that until now nobody with my problem (Windows, want to install
CaGe, total beginner with Cygwin) has left his/her traces on the web.

Can anybody help me? What is the problem? What do I have to do or learn,
where to look next, in order to get CaGe running? At the moment I do not
even know to look, especially on SUN's site. Could anyone adept at Cygwin
just take a moment and install CaGe and describe what one has to do?

If you would like me to post this to some other forum, please let me know,
I am even grateful for help of this kind.

Thank you very much,
View this message in context:
Sent from the Cygwin Users mailing list archive at

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]