public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Sacri Acuyo" <sacuyo@yahoo.es>
To: cygwin@cygwin.com
Subject: help!!
Date: Mon, 24 Mar 2003 11:41:00 -0000	[thread overview]
Message-ID: <20030324093159.13068.qmail@web13207.mail.yahoo.com> (raw)

Hello, I would like to make you a question:

I'm trying to call to java code from C++ code, so I
have just do it for linux with gcc using gcj and gcjh.
Now, I have been trying the same for Windows 2000,
following these steps:

1.- Write the java file --> prueba_java.java
2.- Compile it with javac --> javac prueba_java.java
3.- Create the header file --> gcjh prueba_java
4.- Create the .o file --> 
          gcj gcj -c -g -O prueba_java.java 
5.- Write the C++ file, from which I call the java
code --> main.cc
6.- Compile it --> gcc -c -I /MinGW/include main.cc
7.- Linking with java code --> 
    gcc -static main.o prueba_java.o -o ejecutable -L
-L/MinGW/lib -lgcj -lmingw32 -lwsock32

   And when I try to execute the executable file (
ejecutable ), but it dies with an abnormal program
termination, because of the following error:

Program received signal SIGSEGV, Segmentation fault.
0x78002320 in _libwsock32_a_iname ()
(gdb) where
#0  0x78002320 in _libwsock32_a_iname ()
#1  0x0043f966 in
java::lang::System::init_properties() ()
#2  0x00413335 in
java::lang::System::getProperty(java::lang::String*)
()
#3  0x00458caa in
java::util::TimeZone::__U3c_clinit__U3e_() ()
#4  0x0040530f in java::lang::Class::initializeClass()
()
#5  0x004d671c in _Jv_InitClass () at {standard
input}:205
#6  0x004543f6 in
java::util::TimeZone::getTimeZone(java::lang::String*)
()
#7  0x00412f79 in
java::lang::System::getDefaultTimeZoneId() ()
#8  0x0043f7ed in
java::lang::System::init_properties() ()
#9  0x00413335 in
java::lang::System::getProperty(java::lang::String*)
()
#10 0x004602b1 in
java::io::PrintStream::__U3c_clinit__U3e_() ()
#11 0x0040530f in java::lang::Class::initializeClass()
()
#12 0x00402c31 in _Jv_AllocObjectNoFinalizer ()
#13 0x004136e7 in
java::lang::System::__U3c_clinit__U3e_() ()
#14 0x0040530f in java::lang::Class::initializeClass()
()
#15 0x004d671c in _Jv_InitClass () at {standard
input}:205
#16 0x004133e0 in
java::lang::System::getSecurityManager() ()
#17 0x0040c81a in java::lang::Thread::checkAccess() ()
#18 0x0040ca24 in java::lang::Thread::setDaemon(bool)
()
#19 0x004127a2 in
gnu::gcj::runtime::FinalizerThread::FinalizerThread()
()
#20 0x0040396f in _Jv_CreateJavaVM(void*) ()
#21 0x004d674d in JvCreateJavaVM(void*) () at
{standard input}:205
#22 0x004012b7 in main ()

I would like you to tell me how to solve this problem,
if it's possible..

Thank you very much for your attention..


___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

             reply	other threads:[~2003-03-24  9:32 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 11:41 Sacri Acuyo [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-10-26  8:35 Help! Tomas Ukkonen
2008-01-17 15:59 help!!!! octavian andrei
2008-01-17 18:45 ` help!!!! Larry Hall (Cygwin)
2008-01-17 19:04   ` help!!!! Marc/MDPI314
2008-01-17 19:36     ` help!!!! Dave Korn
2007-03-16 23:08 HELP!!!!!!!!!!!! Curt
2007-03-16 23:55 ` HELP!!!!!!!!!!!! Larry Hall (Cygwin)
2003-11-18 22:02 HELP! Philip Kamara
     [not found] <20030606212620.13285.qmail@web80512.mail.yahoo.com>
2003-06-09 11:55 ` help! Jason Tishler
2003-03-24 16:14 help!! lhall
2002-05-25  3:30 Help!!! Baloo Brahm
2002-04-25 13:59 HELP! Heribert Dahms
2002-04-27  4:14 ` HELP! Dave Trollope
2002-04-24 13:31 1.3.10 memcmp() bug C. J.
2002-04-24 23:44 ` HELP! Dave Trollope
2002-04-08 15:56 Help! Rhomer L Oliveira Jr
2002-04-08 16:14 ` Help! Larry Hall (RFK Partners, Inc)
2002-01-01 15:38 HELP !! Marios Karagiannopoulos
2002-01-01 16:36 ` Tim Prince
2002-01-01 16:38   ` Christopher Faylor
2001-10-28  6:48 HELP!!! Sascha Hoeche
2001-10-28  7:27 ` HELP!!! Gerrit P. Haase
2001-08-15  9:52 help! Troy Noble
2001-08-15  7:30 help! Troy Noble
2001-08-15  7:22 help! Liu Wang
     [not found] <990176609.30786.ezmlm@sources.redhat.com>
2001-05-18  2:09 ` HELP! Abhishek Gupta
2001-05-18  6:02   ` HELP! Earnie Boyd
2001-02-16  2:33 Help! Joop van Gent
2001-02-16  4:13 ` Help! Corinna Vinschen
2000-10-19 22:32 Help! streetstories
2000-10-20  9:01 ` Help! DJ Delorie
2000-10-03 15:31 Help! Laurence F. Wood
2000-10-03 16:06 ` Help! Erdely, Michael
2000-10-03 17:19   ` Help! Chris Faylor
2000-10-05  1:46     ` Help! Laurence F. Wood
2000-09-28 20:22 HELP!!! MustangLyf
2000-09-28 20:29 ` HELP!!! Chris Faylor
2000-08-28 10:14 HELP!!! Earnie Boyd
2000-08-28  9:24 HELP!!! Peter Pendlebury
2000-05-30 10:56 help!! Parker, Ron
2000-05-28  5:22 help!! Shxin YU
1999-12-27 15:46 Help! Darin S. Ramzinski
1999-12-27 16:56 ` Help! Christopher Faylor
1999-12-31 13:28   ` Help! Christopher Faylor
1999-12-31 13:28 ` Help! Darin S. Ramzinski
     [not found] <382D5EDA.A2961B62@unavarra.es>
1999-11-13 16:44 ` Help! Suhaib M. Siddiqi
1999-11-30 23:39   ` Help! Suhaib M. Siddiqi
1999-10-12  5:32 HELP!!!! N8TM
1999-10-31 19:54 ` HELP!!!! N8TM
1999-10-12  5:16 HELP!!!! Earnie Boyd
1999-10-31 19:54 ` HELP!!!! Earnie Boyd
1999-10-11 23:21 HELP!!!! FallenAngel
1999-10-31 19:54 ` HELP!!!! FallenAngel
1999-01-31 23:52 HELP !!! JPhelps
1999-01-31 23:52 ` Heinz-Juergen Oertel
1998-02-19 14:40 Help! "Zow" Terry Brugger
1998-02-18  3:00 Help! Amy Wells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030324093159.13068.qmail@web13207.mail.yahoo.com \
    --to=sacuyo@yahoo.es \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).