This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Java plugin library compiles ok? on cygwin-XP but WILL NOT RUN
- From: "Alan" <nobrow at eircom dot net>
- To: <cygwin at cygwin dot com>
- Date: Mon, 25 Aug 2003 18:07:02 +0100
- Subject: Re: Java plugin library compiles ok? on cygwin-XP but WILL NOT RUN
----- Original Message -----
From: "Alan" <nobrow@eircom.net>
To: <cygwin@cygwin.com>
Sent: Wednesday, August 20, 2003 3:38 PM
Subject: Java plugin library compiles ok? on cygwin-XP but WILL NOT RUN
Hi. Ive got a problem that may well not be cygwin related but I have a
feeling that it might be so Im going to ask here before I mail a windows or
java forum (besides, Ill never get a response from there - its just too
obscure).
I have been developing a Java profiling utility (using the JVM Profiling
Interface) for sometime on cygwin-win98. I have recently switched to an XP
Home machine. It has the same cygwin and java versions as on the win98 one.
I am now suffering a very elusive problem.
I build my project on XP (exactly as I did on w98) without error. I then run
the program (incidentally the program is a dll that is loaded into a JVM
using the -XrunTheLibrary option to Java) however Java silently
crashes/aborts. The profiler does not produce any output and the Java
program being profiled does not even run. No error logs are generated
anywhere. I know Java is successfully locating my dlls entry point (if it
does not it generates an error) however it will not execute a single line of
that function.
I have replicated the problem with a minimal test project so its not my
coding.
The library compiled on XP, can, however, be copied directly to w98 and runs
successfully. The library compiled on w98 and running successfully there,
behaves as above when copied to XP.
I know this sounds as though it has little to do with cygwin but I cant help
feeling cygwin is just not getting on with XP as well as it does on w98. I
have compiled the minimal test project I mentioned above using the Dev-C++
IDE which uses MinGW or some variant there of, and indeed it works fine on
XP. I have been trying to compile it in Cygwin with the -mno-cygwin flag but
have had zero success (Ive downloaded MinGW libs and headers since its a c++
program but I cant get around those undefined references). This is really
what casts my suspicion on cygwin as the source of the problem (or to be
fair, the cygwin-XP pair).
In summary;
- cygwin-XP compilation seems ok (dll can be copied to and run on win98)
- Java and XP seem okay (MinGW compiled profiling dlls work)
- running cygwin compiled dlls on XP does not work ???
I am using a slightly dated version, cygwin-1.3.15-2.tar.bz2. I will update
soon but until then, does anyone have any idea what Im talking about?! I
have spent days trying and retrying to get it to work but to no avail. Its
obscure I know, but please throw me a bone.
Kind regards,
Alan.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
For the record -
Upgrading to Java 1.4.2 solved the above problem but generated tonnes of
failed wait_sig_inited assertions from sigproc.cc. Upgrading to cygwin
1.3.22-1 got rid of those.
Alan
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/