[Bug libgcj/20266] New: Using v4 of gcj I am unable to build an executable from shared libraries
bparker at ilstechnology dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 1 20:17:00 GMT 2005
Using gcj verion 4 running on red Hat Enterprise Linux ES release 3 I tried to
create a executable using shared libraries I had previously created. I got the
following results:
[acuser@linux WMQ]$ gcj --main=mqTester -o mqTester mqTester.java -L. -
lconnector-shared -lmq-shared
mqTester.java:18: error: Can't find default package ΓÃÿcom.ibm.mqΓÃÃ. Check the
CLASSPATH environment variable and the access to the archives
mqTester.java:49: error: Type ΓÃÿMQQueueManagerΓÃà not found in the declaration
of the local variable ΓÃÿqMgrΓÃÃ.
MQQueueManager qMgr = null;
^
mqTester.java:50: error: Type ΓÃÿMQQueueΓÃà not found in the declaration of the
local variable ΓÃÿlocal_queueΓÃÃ.
MQQueue local_queue = null;
^
mqTester.java:144: error: Type ΓÃÿMQMessageΓÃà not found in the declaration of
the local variable ΓÃÿhello_worldΓÃÃ.
MQMessage hello_world = new MQMessage();
^
mqTester.java:151: error: Type ΓÃÿMQPutMessageOptionsΓÃà not found in the
declaration of the local variable ΓÃÿpmoΓÃÃ.
MQPutMessageOptions pmo = new MQPutMessageOptions();
^
mqTester.java:186: error: Type ΓÃÿMQExceptionΓÃà not found in the declaration
of the local variable ΓÃÿmeΓÃÃ.
catch (MQException me) {
^
mqTester.java:197: error: Type ΓÃÿMQExceptionΓÃà not found in the declaration
of the local variable ΓÃÿmqeΓÃÃ.
} catch (MQException mqe ) {
^
7 errors
The classes MQQueueManager, MQException, MQPutMessageOptions, etc. referenced
above all reside in the mq-shared shared library, which was built from a jar
file and resides in the /home/acuser/gcj/WMQ directory.
I am running this from the /home/acuser/gcj/WMQ directory. My classpath is set
to the folloing:
[acuser@linux WMQ]$ echo $CLASSPATH
/home/acuser/gcj/WMQ:.
My path is set to the following:
[acuser@linux WMQ]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/home/acuser/gcj/WMQ:/home/acuser/bin
FYI..the main program compiles and run successfully on the same box if I do the
folowing from the command line
[acuser@linux WMQ]$java -cp com.ibm.mq.jar:connector.jar: mqTester -QMgr
AIX.QUEUE.MANAGER -QName AIX.DATA.QUEUE -hostname 192.168.1.36 -channel
CHANNEL1 -port 1416
--
Summary: Using v4 of gcj I am unable to build an executable from
shared libraries
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bparker at ilstechnology dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20266
More information about the Java-prs
mailing list