From: Maxim Ivanov <ivanov@cg.ru> To: ALT Linux Team development discussions <devel@lists.altlinux.org> Subject: [devel] Java -> native code Date: Fri, 23 May 2008 10:41:35 +0400 Message-ID: <200805231041.35920.ivanov@cg.ru> (raw) Пытаюсь скоипилировать Java программу в нативный код. Компиляю как сказано в в вики gcc следующим скриптом: ============== #!/bin/sh # ${1} is the name of a GCJ database file gcj-dbtool -n ${1} for JAR_FILE in `find -iname "*.jar"` do echo "Compiling ${JAR_FILE} to native" gcj -shared -findirect-dispatch -Wl,-Bsymbolic -fjni -fPIC ${JAR_FILE} -o ${JAR_FILE}.so gcj-dbtool -a ${1} ${JAR_FILE} ${JAR_FILE}.so done ========================= После этого запускаю при помощи gij: ==================== cd /home/999/devel/cgapp LIB=. gij -verbose:class -cp ${LIB}/01_JFUModule.jar:\ ${LIB}/zags.jar:\ ${LIB}/classes12.jar:\ ${LIB}/jbcl.jar:\ ${LIB}/jboss-j2ee.jar:\ ${LIB}/JfuClientServer.jar:\ ${LIB}/jtds-0.9-rc1.jar:\ ${LIB}/log4j-1.2.14.jar:\ ${LIB}/xerces.jar:\ ${LIB}/ibdmodels.jar:\ ${LIB}/ibdClientServer.jar:\ ${LIB}/jooreports-2.0.0.jar \ -Dgnu.gcj.precompiled.db.path=./zgapp.db \ -Djava.library.path=. \ cg.framework.client.Jframework ======================== В выводе повсеместно вижу такие строки: [Loaded (BC-compiled) org.apache.log4j.MDC from (file:/home/999/devel/cgapp/log4j-1.2.14.jar <no certificates>)] [Loaded (BC-compiled) cg.framework.utils.config.EConfigurator from (file:/home/999/devel/cgapp/01_JFUModule.jar <no certificates>)] Как я понимаю мои .so файлы никак тут не используются, а берется просто байт код из jar файлов.
reply other threads:[~2008-05-23 6:41 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200805231041.35920.ivanov@cg.ru \ --to=ivanov@cg.ru \ --cc=devel@lists.altlinux.org \ /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
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git