This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/24698] [4.1 regression] Apparent problem getting non-.class files out of jars
- From: "bero at arklinux dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 19 Nov 2005 15:16:33 -0000
- Subject: [Bug java/24698] [4.1 regression] Apparent problem getting non-.class files out of jars
- References: <bug-24698-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from bero at arklinux dot org 2005-11-19 15:16 -------
Also try:
gcj -O2 -fPIC -fjni -shared -o libtestcase.so test.jar
gcj -o testcase test1.java --main=test1 -L. -ltestcase
LD_LIBRARY_PATH=. ./testcase
Works as expected in 4.0.x, current SVN acts up: Generating libtestcase.so
doesn't produce an error, but after that things get strange.
$ gcj -o testcase test1.java --main=test1 -L. -ltestcase
test1.java:1: error: Can't find default package 'org.arklinux.test'. Check the
CLASSPATH environment variable and the access to the archives
1 error
test1.java:0: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions
Similar error if I tell it where to find the jar:
$ CLASSPATH=test.jar gcj -o testcase test1.java --main=test1 -L. -ltestcase
test1.java:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24698