|
Why did you change the destination? If both are in package "com.ShipleyPgpEdi", then both should have their object in "/com/ShipleyPgpEdi". Joe > -----Original Message----- > From: java400-l-admin@midrange.com > [mailto:java400-l-admin@midrange.com]On Behalf Of Mike Silvers > Sent: Friday, November 16, 2001 5:12 AM > To: Java400L List > Subject: Re: Package problems (continued) > > > To make sure there were no issues with the classpath, I did the following: > > I removed the package statement from the source SystemProp.java. I then > compiled SystemProp.java as follows: > javac -verbose -d /com/ShipleyPgpEdi > /com/ShipleyPgpEdi/src/SystemProp.java > All compiled well. > > I removed the package statement from the source > newAS400Connection.java. I > then compiled newAS400Connection,java as follows: > javac -verbose -d /com/ShipleyPgpEdi > /com/ShipleyPgpEdi/src/newAS400Connection.java > All compiled well. > > I added the package statement (package com.ShipleyPgpEdi;) to the source > SystemProp.java. I then compiled SystemProp as follows (note > that the only > difference is the destination option): > javac -verbose -d / /com/ShipleyPgpEdi/src/SystemProp.java > All compiled well. > > I added the package statement (package com.ShipleyPgpEdi;) to the source > newAS400Connection.java. I then compiled newAS400Connection as follows > (again, note the destination option difference): > javac -verbose -d / /com/ShipleyPgpEdi/src/newAS400Connection.java > Here is where I run into problems. The compiler is unable to resolve the > SystemProp class. The output is: > > [parsing started /com/ShipleyPgpEdi/src/newAS400Connection.java] > [parsing completed 19399ms] > [loading > /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/io/IOException.class)] > [loading > /QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar(com/ibm/as400/acces > s/AS400.cl > ass)] > [loading > /QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar(com/ibm/as400/acces > s/AS400Con > nectionPool.class)] > [loading > /QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar(com/ibm/as400/acces > s/Connecti > onPoolException.class)] > [loading /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/lang/Object.class)] > [loading /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/lang/String.class)] > > [checking com.ShipleyPgpEdi.newAS400Connection] > [loading > /QIBM/ProdData/HTTP/Public/jt400/lib/jt400.jar(com/ibm/as400/acces > s/Connecti > onPool.class)] > [loading > /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/lang/StringBuffer.class)] > /com/ShipleyPgpEdi/src/newAS400Connection.java:71: cannot resolve symbol > symbol : class SystemProp > location: class com.ShipleyPgpEdi.newAS400Connection > SystemProp sp = new SystemProp(); > ^ > /com/ShipleyPgpEdi/src/newAS400Connection.java:71: cannot resolve symbol > symbol : class SystemProp > location: class com.ShipleyPgpEdi.newAS400Connection > SystemProp sp = new SystemProp(); > ^ > [loading > /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/lang/Throwable.class)] > [loading > /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/lang/Exception.class)] > [loading /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/lang/System.class)] > [loading > /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/io/PrintStream.class)] > [loading > /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/io/FilterOutputStream.class)] > [loading > /QIBM/ProdData/Java400/jdk13/lib/rt.jar(java/io/OutputStream.class)] > [total 52724ms] > 2 errors > > In all of these compiles, the classpath has remained the same. Any > suggestions? > > Mike > > ================================ > > Mike Silvers > AS/400 Senior Programmer/Analyst > AS/400 IBM Certified RPG IV Developer > AS/400 IBM Certified Solutions Expert > Hainey Business Systems > 8 E. Canal St > Dover, PA 17315 > Branch Office: (410) 397-8739 > Phone: (800) 932-3380 > Fax: (717) 292-9474 > Web: http://www.hbs-inc.com > ________________________________ > Providing E-Commerce, EDI, AS/400 > Development and related services > nationwide. > ================================ > > > _______________________________________________ > This is the Java Programming on and around the iSeries / AS400 > (JAVA400-L) mailing list > To post a message email: JAVA400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/java400-l > or email: JAVA400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/java400-l. > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.