public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/20266] New: Using v4 of gcj I am unable to build an executable from shared libraries
@ 2005-03-01 20:17 bparker at ilstechnology dot com
  2005-03-01 22:27 ` [Bug libgcj/20266] " pinskia at gcc dot gnu dot org
  2005-03-02 22:11 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: bparker at ilstechnology dot com @ 2005-03-01 20:17 UTC (permalink / raw)
  To: java-prs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3124 bytes --]

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-02 21:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-01 20:17 [Bug libgcj/20266] New: Using v4 of gcj I am unable to build an executable from shared libraries bparker at ilstechnology dot com
2005-03-01 22:27 ` [Bug libgcj/20266] " pinskia at gcc dot gnu dot org
2005-03-02 22:11 ` pinskia at gcc dot gnu dot org

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).