Importing packages vs importing classes
What impact does it have if I import a complete package like:
import java.util.*
or import the classes that I need seperately like
import java.util.Vector;
import java.util.Collection;
import java.util.Iterator;
Nothing as far as Java is concerned, the compiler only uses what it needs, so there is no efficiency or size considerations.
However, when you have to modify or debug a program that someone else wrote - which has only package imports - you will curse her/him!
So, class imports are by far the better choice.
Similar Messages
-
Importing packages to java classes
I am at present trying to write a distributed system. To do this, I write an idl which creates a group of classes I need for communication between client and server and bundles them into a package. Within the same file as the package, I am trying to write a Servant class to manipulate classes contained in the package. The servant, at its most basic, looks like this
import UserManagerTest.*;
public class Servant extends _UserManagerImplBase{
When I try to compile this, the compiler returns two errors - that it can't find the UserManagerTest package and that it does not recognise the _UserManagerImplBase class. The package resides in the same file as the Servant, so should it not be able to import it and use classes contained in it? Any help is greatly appreciated,
IanThe problem is your class path.
Most likely either you do not have it set at all or you are pointing at a child directory rather than the root directory.
The package resides in the same file as the Servant,Same file? You can't have two packages in the same file. And if you meant 'directory' then you might as well move it, because trying to keep two packages in the same directory, although possible, is more trouble than it is worth. -
Importing packages, why import more than once
I've seen the following in a textbook:
import java.awt.*;
import java.awt.event.*;
// the rest of the code follows Isn't this redundant? When we use the asterisk after java.awt, doesn't that import all classes inside the awt package, including the event package? Is there something I'm missing / not understanding.
thanks in advance for your help.Thanks Vanilla, your post helps. Can you expound any
more? I would have thought the relationship was that
"awt" is a package that contains both classes and
other packages, and that "event" is a package in the
"awt" package. It would seem that way, but it's not.
Why does Java use the dot notation if the packages
aren't hierarchical? I guess because, even though the packages aren't related as far as Java is concerned, there's a conceptual relationship that we humans use, and the dot notation matches that. Plus the elements of package names correspond to directories, so while the language doesn't care, ClassLoaders do use that aspect of the name to find the class. -
How is the 'import-packages' information saved in the database, and how long?
Hello,
I am developping a ECM Connector for Adobe LiveCycle ES, which is a customized component.
1 - Who should I contact to have some specific support ?
There is no detailed information yet on this on the adobe site (http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/js/html/w whelp.htm?href=000931.html&accessible=true) .
If you think that I should address my problem to another department of Adobe, please tell me which department?
I give you another description of my problem. In fact, I have been investigating on it.
2 - If I put this in my component.xml file, in step 1:
<component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
<version>1.0</version>
<import-packages><package version="1.0">com.rsd.simpleApiFolders</package> </import-packages>
If I change the version to 1.1 and remove the 'import-packages' (in step 2) , will the new component need the com.rsd.simpleApiFolders package. It seems that is still needs it.
3 - How is the 'import-packages' information saved in the database, and how long?
In fact, on thursday, I used 'import-packages' to make a test. And since them, I can not deploy any of my components.
LiveCycle throws a ClassNotFoundException.
ALC-DSC-000-000: com.adobe.idp.dsc.DSCRuntimeException: Internal error.
[java] at com.adobe.idp.dsc.registry.component.impl.ComponentRegistryImpl$6.doInTransaction(Compone ntRegistryImpl.java:338)
... Caused by: java.lang.ClassNotFoundException: http-0.0.0.0-8080-1Class name com.rsd.simpleApiFolders.Context from package com.rsd.simpleApiFolders not found.
[java] at com.adobe.idp.dsc.DSContainerSearchPolicy.searchClassUsingParentFirst(DSContainerSearchPo licy.java:234)
Thank you in advance
Regards.1 - Who should I contact to have some specific support ?
That would depend on your Adobe support contract and if your organization has a TAM assigned. You should check with your organization's Adobe contact and see what support options your organization has purchased.
Having said that, this forum has a few people that may be able to help (but the forum does not have a SLA associated with it)
2 - If I put this in my component.xml file, in step 1:
<component-id>com.rsd.adobe.livecycle.RSDFoldersConnector</component-id>
<version>1.0</version>
<import-packages><package version="1.0">com.rsd.simpleApiFolders</package> </import-packages>
If I change the version to 1.1 and remove the 'import-packages' (in step 2) , will the new component need the com.rsd.simpleApiFolders package. It seems that is still needs it.If your component class needs the simpleApiFolders class then yes, you still need it. Think of import-packages like a class-path statement (but with packages and not jars). Its not physically moving the package into your application, but allowing you to access it from another container.
3 - How is the 'import-packages' information saved in the database, and how long?
As far as I know they are not imported into the database. As I stated above, I believe that the import-packages just allows you to point to classes that are in the app server's classpath, but are not physically in you component jar file. As long as that class is in the app server class-path (or in the Adobe EAR file) then you should be able to access it. Is the jar file containing the simpleApiFolders class in the app server's lib directory? -
PI 711 Installation: Loading of 'SAPNTAB' import package: error but no log
Hello,
I'm perfromong an installation of a SAP PI 7.11 ystem on windoows Server 2003 and Oracle 10.2 .
I've perfromed the installation of the DEV system without particular issue.
But now when tryning to install the QAS system , I can't finish the installation : Im' stuck in the import ABAP step ...
It is impossible to import the 'SAPNTAB' package. I couln't find the reason.
I've tried updating the R3load binary, rebooting the server, restarting the instalaltion from scratch but it didn't help.
Here I provide you the logs, maybe you can help me
SAPNTAB.log
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20110223195542
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/711_REL/src/R3ld/R3load/R3ldmain.c#6 $ SAP
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: version R7.11/V1.4 [UNICODE]
Compiled Dec 14 2010 22:52:23
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
(DB) INFO: SVERS deleted/truncated #20110223195543
sapinst_dev.log
Syslib info about system call. OS message 109 (The pipe has been ended.
) after execution of system call 'ReadFile' with parameter ((read end of child process output pipe)), line (403) in file (synxcpipe.cpp).
WARNING 2011-02-23 19:56:12.607
CJSlibModule::writeWarning_impl()
Execution of the command ""C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\sapjvm\sapjvm_5\bin\java.exe" -classpath migmon.jar -showversion -Xmx1024m com.sap.inst.migmon.imp.ImportMonitor -sapinst" finished with return code 103. Output:
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 5.1.024)
SAP Java 64-Bit Server VM (build 5.1.024, Sep 4 2008 23:21:58 - 51_REL - optU - windows amd64 - bas2:106386 (mixed mode))
Import Monitor jobs: running 1, waiting 28, completed 0, failed 0, total 29.
Loading of 'SAPNTAB' import package: ERROR
Import Monitor jobs: running 0, waiting 28, completed 0, failed 1, total 29.
TRACE 2011-02-23 19:56:12.607
Function setMessageIdOfExceptionMessage: nw.programError
ERROR 2011-02-23 19:56:12.607
CJSlibModule::writeError_impl()
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
import_monitor.log
TRACE: 2011-02-23 19:55:42 com.sap.inst.migmon.imp.ImportStandardTask preCreate
Parse of 'C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\DDLORA.TPL' template file is started.
INFO: 2011-02-23 19:55:42 com.sap.inst.migmon.imp.ImportStandardTask preCreate
Parse of 'C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\DDLORA.TPL' template file is successfully completed.
Primary key creation: after load.
Index creation: after load.
INFO: 2011-02-23 19:55:42
Data codepage 1100 is determined using TOC file 'E:\SAPCD\51036706\DATA_UNITS\EXP1\DATA\REPOSRC.TOC' for package 'REPOSRC'.
INFO: 2011-02-23 19:55:42
Version table 'SVERS' is found in STR file 'E:\SAPCD\51036706\DATA_UNITS\EXP3\DATA\SAPNTAB.STR' from package 'SAPNTAB'.
INFO: 2011-02-23 19:55:42
Data conversion tables 'DDNTF,DDNTF_CONV_UC,DDNTT,DDNTT_CONV_UC' are found in STR file 'E:\SAPCD\51036706\DATA_UNITS\EXP3\DATA\SAPNTAB.STR' from package 'SAPNTAB'.
TRACE: 2011-02-23 19:55:42 com.sap.inst.migmon.LoadTask run
Loading of 'SAPNTAB' import package is started.
TRACE: 2011-02-23 19:55:42 com.sap.inst.migmon.LoadTask processPackage
Loading of 'SAPNTAB' import package into database:
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast
ERROR: 2011-02-23 19:55:45 com.sap.inst.migmon.LoadTask run
Loading of 'SAPNTAB' import package is interrupted with R3load error.
Process 'E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast' exited with return code -1,073,741,819.
For mode details see 'SAPNTAB.log' file.
Standard error output:
sapparam: sapargv(argc, argv) has not been called!
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
WARNING: 2011-02-23 19:56:12
Cannot continue import because not all import packages with data conversion tables are loaded successfully.
WARNING: 2011-02-23 19:56:12
1 error(s) during processing of packages.
INFO: 2011-02-23 19:56:12
Import Monitor is stopped.
Edited by: Raoul Shiro on Feb 23, 2011 8:11 PM
Edited by: Raoul Shiro on Feb 23, 2011 8:12 PMHello,
Thank you for your answer.
I already opened a sap cutomer call, they answered that it it not a database issue,
I restarted the installationfriom scracth , but i still got the same error :
Here is the full content of the file SAPNTAB.log
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20110225170643
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/711_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: version R7.11/V1.4 [UNICODE]
Compiled Dec 22 2008 00:13:12
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -ctf I E:\SAPCD\51036706\DATA_UNITS\EXP3\DATA\SAPNTAB.STR C:\Program Files\sapinst_instdir\NW71\INSTALL\SYSTEM\ORA\STD\AS\DDLORA.TPL SAPNTAB.TSK ORA -l SAPNTAB.log
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: job completed
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: END OF LOG: 20110225170643
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20110225170643
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/711_REL/src/R3ld/R3load/R3ldmain.c#4 $ SAP
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe: version R7.11/V1.4 [UNICODE]
Compiled Dec 22 2008 00:13:12
E:\usr\sap\PIQ\SYS\exe\uc\NTAMD64\R3load.exe -i SAPNTAB.cmd -dbcodepage 4103 -l SAPNTAB.log -stop_on_error -loadprocedure fast
DbSl Trace: ORA-1403 when accessing table SAPUSER
(DB) INFO: connected to DB
(DB) INFO: DbSlControl(DBSL_CMD_NLS_CHARACTERSET_GET): UTF8
(DB) INFO: SVERS created #20110225170643
Regards.
Raoul -
Loading of 'SEOCOMPODF' import package is interrupted with R3load error.
Dear SAP Colleagues,
Please advice with the following, we try to install SAP ERP 6.0 support release 3 on windows 2008 server with oracle database 10g 10.2.0.4.0,
The error is occurred in Import ABAP phase as follow,
ERROR 2010-10-14 12:10:00.729
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
Hint : I already applied this scenario of installation in two other server with same hardware and sap software and itu2019s already up and running,
From my side I applied the following but nothing is changed,
u2022 Applied sap Note 709389
u2022 Replaced the sap source more times,
u2022 Maintained the paging file,
u2022 Restart the sap server
u2022 Restart the installation from scratch
Also I can see that the oracle service and listener is started automatically
I checked the log files mentioned above as follow,
Contents in log file u201Cimport_monitor.javau201D
java version "1.4.2_17"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_17-b06)
Java HotSpot(TM) Client VM (build 1.4.2_17-b06, mixed mode)
Import Monitor jobs: running 1, waiting 4, completed 23, failed 0, total 28.
Import Monitor jobs: running 2, waiting 3, completed 23, failed 0, total 28.
Import Monitor jobs: running 3, waiting 2, completed 23, failed 0, total 28.
Loading of 'SEOCOMPODF' import package: ERROR
Loading of 'DD03L' import package: ERROR
Import Monitor jobs: running 0, waiting 2, completed 23, failed 3, total 28.
Loading of 'FUPARAREF' import package: ERROR
Import Monitor jobs: running 0, waiting 2, completed 23, failed 3, total 28.
Import Monitor jobs: running 0, waiting 2, completed 23, failed 3, total 28.
Import Monitor jobs: running 1, waiting 1, completed 23, failed 3, total 28.
Loading of 'TODIR' import package: ERROR
Import Monitor jobs: running 0, waiting 1, completed 23, failed 4, total 28.
Contents in log file u201Cimport_monitoru201D
ERROR: 2010-10-14 12:09:04 com.sap.inst.migmon.LoadTask run
Loading of 'SEOCOMPODF' import package is interrupted with R3load error.
Process 'D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe -i SEOCOMPODF.cmd -dbcodepage 4103 -l SEOCOMPODF.log -stop_on_error' exited with return code 2.
For mode details see 'SEOCOMPODF.log' file.
Standard error output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
ERROR: 2010-10-14 12:09:04 com.sap.inst.migmon.LoadTask run
Loading of 'DD03L' import package is interrupted with R3load error.
Process 'D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe -i DD03L.cmd -dbcodepage 4103 -l DD03L.log -stop_on_error' exited with return code 2.
For mode details see 'DD03L.log' file.
Standard error output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
ERROR: 2010-10-14 12:09:04 com.sap.inst.migmon.LoadTask run
Loading of 'FUPARAREF' import package is interrupted with R3load error.
Process 'D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe -i FUPARAREF.cmd -dbcodepage 4103 -l FUPARAREF.log -stop_on_error' exited with return code 2.
For mode details see 'FUPARAREF.log' file.
Standard error output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
TRACE: 2010-10-14 12:09:30 com.sap.inst.migmon.LoadTask run
Loading of 'TODIR' import package is started.
TRACE: 2010-10-14 12:09:30 com.sap.inst.migmon.LoadTask processPackage
Loading of 'TODIR' import package into database:
D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe -i TODIR.cmd -dbcodepage 4103 -l TODIR.log -stop_on_error
ERROR: 2010-10-14 12:09:30 com.sap.inst.migmon.LoadTask run
Loading of 'TODIR' import package is interrupted with R3load error.
Process 'D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe -i TODIR.cmd -dbcodepage 4103 -l TODIR.log -stop_on_error' exited with return code 2.
For mode details see 'TODIR.log' file.
Standard error output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
WARNING: 2010-10-14 12:10:00
Cannot start import of packages with views because not all import packages with tables are loaded successfully.
WARNING: 2010-10-14 12:10:00
4 error(s) during processing of packages.
INFO: 2010-10-14 12:10:00
Import Monitor is stopped.
Regards,
Ahmed SaberHi Gagan Deep Kaushal,
The todir.log file it was so big so I backup it run the installation again to regenerate the log file, please find below the log file you requested,
D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe: START OF LOG: 20101014135456
D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe: sccsid @(#) $Id: //bas/700_REL/src/R3ld/R3load/R3ldmain.c#14 $ SAP
D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe: version R7.00/V1.4 [UNICODE]
Compiled Jan 24 2008 01:41:44
D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe -i TODIR.cmd -dbcodepage 4103 -l TODIR.log -stop_on_error
DbSl Trace: OCI-call 'OCISessionBegin' failed with rc=1034
DbSl Trace: CONNECT failed with sql error '1034'
DbSl Trace: OCI-call 'OCISessionBegin' failed with rc=1034
DbSl Trace: CONNECT failed with sql error '1034'
(DB) ERROR: db_connect rc = 256
DbSl Trace: OCI-call 'OCISessionBegin' failed with rc=1034
DbSl Trace: CONNECT failed with sql error '1034'
DbSl Trace: OCI-call 'OCISessionBegin' failed with rc=1034
DbSl Trace: CONNECT failed with sql error '1034'
(DB) ERROR: DbSlErrorMsg rc = 99
D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe: job finished with 1 error(s)
D:\usr\sap\ECP\SYS\exe\uc\NTAMD64\R3load.exe: END OF LOG: 20101014135457
Regards,
Ahmed Saber -
SAPAPPL0,SAPSSEXC,SAPAPPL2 import package is interrupted with R3load
Hi SAP Experts,
I am installing ECC 6.0 SR1 EHP4 with DB29.1 on AIX6.1 but durning Import ABAP , I am getting error
SAPAPPL2' import package is interrupted with R3load error.
SAPAPPL0' import package is interrupted with R3load error.
SAPSSEXC' import package is interrupted with R3load error.
I am attaching all the logs import_monitor,import_monitor.java, SAPAPPL2,SAPAPPL0,SAPSSEXC
Kindly help me to come out from this error.
Import_monitor----
TRACE: 2010-08-19 22:16:46 com.sap.inst.migmon.LoadTask processPackage
Loading of 'SAPAPPL0' import package into database:
/usr/sap/LD1/SYS/exe/run/R3load -i SAPAPPL0.cmd -dbcodepage 4102 -l SAPAPPL0.log -stop_on_error -loadprocedure fast LOAD
ERROR: 2010-08-19 22:16:47 com.sap.inst.migmon.LoadTask run
Loading of 'SAPAPPL2' import package is interrupted with R3load error.
Process '/usr/sap/LD1/SYS/exe/run/R3load -i SAPAPPL2.cmd -dbcodepage 4102 -l SAPAPPL2.log -stop_on_error -loadprocedure fast LOAD' exited with return code 2.
For mode details see 'SAPAPPL2.log' file.
Standard error output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
ERROR: 2010-08-19 22:16:47 com.sap.inst.migmon.LoadTask run
Loading of 'SAPSSEXC' import package is interrupted with R3load error.
Process '/usr/sap/LD1/SYS/exe/run/R3load -i SAPSSEXC.cmd -dbcodepage 4102 -l SAPSSEXC.log -stop_on_error -loadprocedure fast LOAD' exited with return code 2.
For mode details see 'SAPSSEXC.log' file.
Standard error output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
ERROR: 2010-08-19 22:18:00 com.sap.inst.migmon.LoadTask run
Loading of 'SAPAPPL0' import package is interrupted with R3load error.
Process '/usr/sap/LD1/SYS/exe/run/R3load -i SAPAPPL0.cmd -dbcodepage 4102 -l SAPAPPL0.log -stop_on_error -loadprocedure fast LOAD' exited with return code 2.
For mode details see 'SAPAPPL0.log' file.
Standard error output:
sapparam: sapargv( argc, argv) has not been called.
sapparam(1c): No Profile used.
sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
WARNING: 2010-08-19 22:18:14
Cannot start import of packages with views because not all import packages with tables are loaded successfully.
WARNING: 2010-08-19 22:18:14
3 error(s) during processing of packages.
INFO: 2010-08-19 22:18:14
Import Monitor is stopped.
SAPAPPL2
/usr/sap/LD1/SYS/exe/run/R3load: START OF LOG: 20100819221646
/usr/sap/LD1/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/701_REL/src/R3ld/R3load/R3ldmain.c#5 $ SAP
/usr/sap/LD1/SYS/exe/run/R3load: version R7.01/V1.4 [UNICODE]
Compiled Feb 24 2009 21:54:08
/usr/sap/LD1/SYS/exe/run/R3load -i SAPAPPL2.cmd -dbcodepage 4102 -l SAPAPPL2.log -stop_on_error -loadprocedure fast LOAD
(DB) INFO: connected to DB
(TSK) ERROR: file /tmp/sapinst_instdir/ERPEhP4/AS-ABAP/DB6/CENTRAL/SAPAPPL2.TSK.bck already seems to exist
a previous run may not have been finished cleanly
file /tmp/sapinst_instdir/ERPEhP4/AS-ABAP/DB6/CENTRAL/SAPAPPL2.TSK possibly corrupted
/usr/sap/LD1/SYS/exe/run/R3load: job finished with 1 error(s)
/usr/sap/LD1/SYS/exe/run/R3load: END OF LOG: 20100819221647
SAPAPPL0
/usr/sap/LD1/SYS/exe/run/R3load: START OF LOG: 20100819221646
/usr/sap/LD1/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/701_REL/src/R3ld/R3load/R3ldmain.c#5 $ SAP
/usr/sap/LD1/SYS/exe/run/R3load: version R7.01/V1.4 [UNICODE]
Compiled Feb 24 2009 21:54:08
/usr/sap/LD1/SYS/exe/run/R3load -i SAPAPPL0.cmd -dbcodepage 4102 -l SAPAPPL0.log -stop_on_error -loadprocedure fast LOAD
(DB) INFO: connected to DB
(DB) INFO: /1CN/CPTSAP00005 dropped #20100819221758
(DB) INFO: /1CN/CPTSAP00005 created #20100819221759
(DB) INFO: /1CN/CPTSAP00005~0 created #20100819221759
(DB) INFO: /1CN/CPTSAP00005SC created #20100819221759
(IMP) INFO: import of /1CN/CPTSAP00005 completed (0 rows) #20100819221759
(DB) ERROR: DDL statement failed
( CREATE TABLE "/1CN/CPTSAP00006" ( "CLIENT" SAPDB6FIXCHAR(3) DEFAULT '000' NOT NULL , "VARNUMH" CHAR(16) FOR BIT DATA NOT NULL , "PRT_PARTNER" CHAR(16) FOR BIT DATA NOT NULL , "KSCHL" SAPDB6CHAR(4) DEFAULT ' ' NOT NULL , "OBJECT_ID" CHAR(16) FOR BIT DATA , "TIMESTAMP_TO" SAPDB6CHAR(14) DEFAULT ' ' NOT NULL , "RELEASE_STATUS" SAPDB6FIXCHAR(1) DEFAULT ' ' NOT NULL , "TIMESTAMP_FROM" SAPDB6CHAR(14) DEFAULT ' ' NOT NULL , "KSCHL_SUPP" SAPDB6CHAR(4) DEFAULT ' ' NOT NULL , "COND_GROUP_ID" CHAR(16) FOR BIT DATA , "MAINT_STATUS" SAPDB6CHAR(2) DEFAULT ' ' NOT NULL , "CREATED_BY" SAPDB6CHAR(12) DEFAULT ' ' NOT NULL , "CREATED_ON" SAPDB6CHAR(8) DEFAULT '00000000' NOT NULL , "KOPOS" SAPDB6FIXCHAR(3) DEFAULT '000' NOT NULL , "SUPP_EXIST" SAPDB6FIXCHAR(1) DEFAULT ' ' NOT NULL , "SCALE_DIM" SAPDB6FIXCHAR(2) DEFAULT '00' NOT NULL , "KBETR" DECIMAL(15,2) DEFAULT 0 NOT NULL , "KPEIN" DECIMAL(5,0) DEFAULT 0 NOT NULL , "KMEIN" SAPDB6CHAR(3) DEFAULT ' ' NOT NULL , "KONWA" SAPDB6CHAR(5) DEFAULT ' ' NOT NULL , "KRECH" SAPDB6CHAR(3) DEFAULT ' ' NOT NULL ) IN LD1#STABD INDEX IN LD1#STABI LONG IN LD1#STABD )
dsql_exec_immediate returned DS_DBOBJECTEXISTS
(DB) INFO: disconnected from DB
/usr/sap/LD1/SYS/exe/run/R3load: job finished with 1 error(s)
/usr/sap/LD1/SYS/exe/run/R3load: END OF LOG: 20100819221800
SAPSSEXC
/usr/sap/LD1/SYS/exe/run/R3load: START OF LOG: 20100819221646
/usr/sap/LD1/SYS/exe/run/R3load: sccsid @(#) $Id: //bas/701_REL/src/R3ld/R3load/R3ldmain.c#5 $ SAP
/usr/sap/LD1/SYS/exe/run/R3load: version R7.01/V1.4 [UNICODE]
Compiled Feb 24 2009 21:54:08
/usr/sap/LD1/SYS/exe/run/R3load -i SAPSSEXC.cmd -dbcodepage 4102 -l SAPSSEXC.log -stop_on_error -loadprocedure fast LOAD
(DB) INFO: connected to DB
(DB) INFO: BRATEXT dropped #20100819221647
(DB) INFO: BRATEXT created #20100819221647
(DB) INFO: BRATEXT~0 created #20100819221647
(IMP) INFO: import of BRATEXT completed (0 rows) #20100819221647
(DB) ERROR: DDL statement failed
( CREATE TABLE "D010INC" ( "MASTER" SAPDB6CHAR(40) DEFAULT ' ' NOT NULL , "INCLUDE" SAPDB6CHAR(40) DEFAULT ' ' NOT NULL ) IN LD1#ES701D INDEX IN LD1#ES701I LONG IN LD1#ES701D )
dsql_exec_immediate returned DS_DBOBJECTEXISTS
(DB) INFO: disconnected from DB
/usr/sap/LD1/SYS/exe/run/R3load: job finished with 1 error(s)
/usr/sap/LD1/SYS/exe/run/R3load: END OF LOG: 20100819221647
IMPORT_MONITOR.JAVA
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.3)
IBM J9 VM (build 2.3, J2RE 1.4.2 IBM J9 2.3 AIX ppc64-64 j9ap64142ifx-20100615 (JIT enabled)
J9VM - 20100610_59470_BHdSMr
JIT - 20090210_1447ifx2_r8
GC - 200902_24)
Import Monitor jobs: running 1, waiting 3, completed 24, failed 0, total 28.
Import Monitor jobs: running 2, waiting 2, completed 24, failed 0, total 28.
Import Monitor jobs: running 3, waiting 1, completed 24, failed 0, total 28.
Loading of 'SAPAPPL2' import package: ERROR
Import Monitor jobs: running 2, waiting 1, completed 24, failed 1, total 28.
Loading of 'SAPSSEXC' import package: ERROR
Import Monitor jobs: running 1, waiting 1, completed 24, failed 2, total 28.
Loading of 'SAPAPPL0' import package: ERROR
Import Monitor jobs: running 0, waiting 1, completed 24, failed 3, total 28.
PLEASE HELP ANYONE TO RESOLVE THIS ERRORSAPINST.LOG
INFO 2021-03-23 14:09:35
Copied file 'C:/Program Files/sapinst_instdir/ERP/SYSTEM/ORA/CENTRAL/AS/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/SYSTEM/ORA/CENTRAL/AS/inifile.14.xml'.
INFO 2021-03-23 14:09:36
Copied file 'C:/Program Files/sapinst_instdir/ERP/SYSTEM/ORA/CENTRAL/AS/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/SYSTEM/ORA/CENTRAL/AS/inifile.15.xml'.
INFO 2021-03-23 14:09:40
Execute step
Component W2K_ServicePack_Check|ind|ind|ind|ind
Preprocess of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
INFO 2021-03-23 14:10:04
Copied file 'C:/Program Files/sapinst_instdir/ERP/SYSTEM/ORA/CENTRAL/AS/keydb.xml' to 'C:/Program Files/sapinst_instdir/ERP/SYSTEM/ORA/CENTRAL/AS/keydb.8.xml'.
INFO 2021-03-23 14:10:04
Execute step runMigrationMonitor of component |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0.
WARNING 2021-03-23 14:10:11
Error 5 (Access is denied.) in execution of a 'RegOpenKeyEx' function, line (645), with parameter (S-1-5-21-1712382466-689420201-920741312-1010).
WARNING 2021-03-23 14:10:11
Error 5 (Access is denied.) in execution of a 'RegOpenKeyEx' function, line (645), with parameter (ProtectedRoots).
INFO 2021-03-23 14:10:11
Switched to user: rasadm.
INFO 2021-03-23 14:10:11
Creating file C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS\import_monitor.java.log.
INFO 2021-03-23 14:10:11
Switched to user: rasadm.
INFO 2021-03-23 14:10:11
Working directory changed to C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS.
INFO 2021-03-23 14:10:11
Output of C:\j2sdk1.4.2_13\bin\java.exe -classpath migmon.jar -showversion com.sap.inst.migmon.imp.ImportMonitor -dbType ORA -importDirs "D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_1\EXP1;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_2\EXP2;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_3\EXP3;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_4\EXP4;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_5\EXP5;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP6;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP7;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP8;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP9;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP10;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP11" -installDir "C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS" -orderBy "" -r3loadExe H:\usr\sap\RAS\SYS\exe\uc\NTI386\R3load.exe -tskFiles yes -extFiles yes -dbCodepage 4103 -jobNum 3 -monitorTimeout 30 -loadArgs " -stop_on_error" -trace all -sapinst is written to the logfile import_monitor.java.log.
WARNING 2021-03-23 14:10:43
Execution of the command "C:\j2sdk1.4.2_13\bin\java.exe -classpath migmon.jar -showversion com.sap.inst.migmon.imp.ImportMonitor -dbType ORA -importDirs "D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_1\EXP1;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_2\EXP2;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_3\EXP3;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_4\EXP4;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_5\EXP5;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP6;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP7;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP8;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP9;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP10;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP11" -installDir "C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS" -orderBy "" -r3loadExe H:\usr\sap\RAS\SYS\exe\uc\NTI386\R3load.exe -tskFiles yes -extFiles yes -dbCodepage 4103 -jobNum 3 -monitorTimeout 30 -loadArgs " -stop_on_error" -trace all -sapinst" finished with return code 103. Output:
java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
Import Monitor jobs: running 1, waiting 3, completed 15, failed 0, total 19.
Import Monitor jobs: running 2, waiting 2, completed 15, failed 0, total 19.
Import Monitor jobs: running 3, waiting 1, completed 15, failed 0, total 19.
Loading of 'SAPAPPL0' import package: ERROR
Loading of 'SAPSSEXC' import package: ERROR
Import Monitor jobs: running 1, waiting 1, completed 15, failed 2, total 19.
Import Monitor jobs: running 1, waiting 1, completed 15, failed 2, total 19.
Loading of 'SAPAPPL2' import package: ERROR
Import Monitor jobs: running 0, waiting 1, completed 15, failed 3, total 19.
ERROR 2021-03-23 14:10:43
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
ERROR 2021-03-23 14:10:43
FCO-00011 The step runMigrationMonitor with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR .
INFO 2021-03-23 14:10:45
An error occured and the user decided to retry the current step: "|NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor".
INFO 2021-03-23 14:10:46
Switched to user: rasadm.
INFO 2021-03-23 14:10:46
Creating file C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS\import_monitor.java.log.
INFO 2021-03-23 14:10:46
Switched to user: rasadm.
INFO 2021-03-23 14:10:46
Working directory changed to C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS.
INFO 2021-03-23 14:10:46
Output of C:\j2sdk1.4.2_13\bin\java.exe -classpath migmon.jar -showversion com.sap.inst.migmon.imp.ImportMonitor -dbType ORA -importDirs "D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_1\EXP1;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_2\EXP2;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_3\EXP3;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_4\EXP4;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_5\EXP5;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP6;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP7;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP8;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP9;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP10;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP11" -installDir "C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS" -orderBy "" -r3loadExe H:\usr\sap\RAS\SYS\exe\uc\NTI386\R3load.exe -tskFiles yes -extFiles yes -dbCodepage 4103 -jobNum 3 -monitorTimeout 30 -loadArgs " -stop_on_error" -trace all -sapinst is written to the logfile import_monitor.java.log.
WARNING 2021-03-23 14:11:16
Execution of the command "C:\j2sdk1.4.2_13\bin\java.exe -classpath migmon.jar -showversion com.sap.inst.migmon.imp.ImportMonitor -dbType ORA -importDirs "D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_1\EXP1;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_2\EXP2;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_3\EXP3;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_4\EXP4;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_5\EXP5;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP6;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP7;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP8;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP9;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP10;D:\SAP IDES 60\SAP_ERP60_IDES_Export\51032413_6\EXP11" -installDir "C:\Program Files\sapinst_instdir\ERP\SYSTEM\ORA\CENTRAL\AS" -orderBy "" -r3loadExe H:\usr\sap\RAS\SYS\exe\uc\NTI386\R3load.exe -tskFiles yes -extFiles yes -dbCodepage 4103 -jobNum 3 -monitorTimeout 30 -loadArgs " -stop_on_error" -trace all -sapinst" finished with return code 103. Output:
java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) Client VM (build 1.4.2_13-b06, mixed mode)
Import Monitor jobs: running 1, waiting 3, completed 15, failed 0, total 19.
Import Monitor jobs: running 2, waiting 2, completed 15, failed 0, total 19.
Import Monitor jobs: running 3, waiting 1, completed 15, failed 0, total 19.
Loading of 'SAPAPPL0' import package: ERROR
Import Monitor jobs: running 2, waiting 1, completed 15, failed 1, total 19.
Loading of 'SAPAPPL2' import package: ERROR
Import Monitor jobs: running 1, waiting 1, completed 15, failed 2, total 19.
Loading of 'SAPSSEXC' import package: ERROR
Import Monitor jobs: running 0, waiting 1, completed 15, failed 3, total 19.
ERROR 2021-03-23 14:11:16
CJS-30022 Program 'Migration Monitor' exits with error code 103. For details see log file(s) import_monitor.java.log, import_monitor.log.
ERROR 2021-03-23 14:11:16
FCO-00011 The step runMigrationMonitor with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_ABAP_Import_Dialog|ind|ind|ind|ind|5|0|NW_ABAP_Import|ind|ind|ind|ind|0|0|runMigrationMonitor was executed with status ERROR . -
Re-importing packages during installation
Hello all,
Was doing an installation.When it started, got the following errors:
Import Monitor jobs: running 1, waiting 110, completed 1, failed 0, total 112.
Import Monitor jobs: running 2, waiting 109, completed 1, failed 0, total 112.
Import Monitor jobs: running 3, waiting 108, completed 1, failed 0, total 112.
Loading of 'DOKCLU' import package: ERROR
Import Monitor jobs: running 1, waiting 108, completed 1, failed 2, total 112.
Loading of 'PCL4' import package: ERROR
Import Monitor jobs: running 1, waiting 108, completed 1, failed 2, total 112.
Loading of 'REPOSRC' import package: ERROR
Import Monitor jobs: running 0, waiting 108, completed 1, failed 3, total 112.
This seems to have failed on the first 3 packages: DOKCLU, PCL4 and REPOSRC. These were the first 3 packages that were to be imported. After that, all was fine. As of now, the last line in the import_monitor.java.log file is:
Loading of 'SAPDFACT' import package: OK
Import Monitor jobs: running 0, waiting 1, completed 108, failed 3, total 112.
So, 108 have been completed with no issue.
Only the first 3 failed.
How can one re-import these packages again.
TIAHello again,
When looking at the TSK files, it seems to specify that the files associated with several packages loaded OK.
15 Jul 1 10:01 REPOSRC.TSK
38 Jul 1 10:34 PCL2.TSK
28 Jul 1 10:43 DOKCLU.TSK
Example, for PCL2.TSK, got the following:
T PCL2 C ok
D PCL2 I ok
P PCL2~0 C ok
For DOKCLU.TSK, got the following:
T DOKCLU C ok
D DOKCLU I ok
and for REPOSRC.TSK, got the following:
T REPOSRC C ok
saw the following *.bck files
DDLORA.TPL.bck
DOKCLU.TSK.bck
REPOSRC.TSK.bck
DDLORA_LRG.TPL.bck
PCL4.TSK.bck
Edited by: Casey Harris on Jul 2, 2009 9:54 AM -
Import package status with successful when all the data have been rejected
Dear all,
We use the import package to import some data files. We check that the status is successful , but all the data are rejected. Is it possible to set the status to error when there are reject records in the data file?
Best Regards,
JeffTry to set the MAXREJECTCOUNT parameter in the transformation file to -1. This will create an error or warning if you have rejected records.
Hope this helps.
-Joost -
Static import of member of class in same unnamed package fails
I think I found a bug in the JDK 1.5 (Tiger) javac compiler. It involves static import and unnamed packages.
Consider the following compilation unit:
import static D.x;
class C {
int foo() { return x; }
class D {
static final int x = 1;
}Running javac from the Tiger beta 2 SDK generates the following output:
Test.java:1: cannot find symbol
symbol: class D
import static D.x;
^
Test.java:1: static import only from classes and interfaces
import static D.x;
^
Test.java:4: cannot find symbol
symbol : variable x
location: class C
int foo() { return x; }
^
3 errorsIn my opinion, this is a bug. This compilation unit should compile without errors.
Note that the following compilation unit compiles without errors with Tiger beta 2:
package p;
import static p.D.x;
class C {
int foo() { return x; }
class D {
static final int x = 1;
}Note that this issue is distinct from the issue of importing a class from an unnamed package into a named package. I totally agree that the latter is not allowed. However, the current issue is a different matter, since here I am importing members from the same package (which happens to be an unnamed package).The unnamed package feature is deprecated. Even if this is a bug (which I sort of doubt), this may never be fixed.
-
Package creation and class importation
how do i code a package statement so that i may use an import statement for that class in another class? i.e I have class called IaMFullOfStaticMethods.java and i want to import it into my StaticMethodTest.java. assume that all java installations are in their default directories. Both of the afore-mentioned classes are in the same folder as well.
are in the same folderTwo classes stored in a same folder should belong to a same package, including unnamed
package(JLS 7.4.2). And their access each other doesn't need import statement. -
Import a package inside a class
Hi All,
I have the source files kept in the following manner . The parent directory is "src". Inside src, i have two folder's by name "servlet" and "helper".
First i compiled the files inside the helper folder. They got compiled without any error. But when i tried to compile the parent servlet inside the "servlet" folder, the compiler doesnt recognize the import statement which import's the helper classes.
Please suggest me where im wrong.This is an urgent request.Thanks.src --
-- servlet
|-- Servlet.java
-- helper
|-- Helper.javawith that directory structure, the Servlet class is in teh package servlet and if it references the Helper class at all, you need to import helper.Helper, and the Helper class is in the package helper, and would import servlet.Servlet.
on the command line, in the src directory , do this
javac -cp . servlet\Servlet.java
javac -cp . helper\Helper.java
~Tim -
How to create package and import from jar file?
Hi all,
I am writing a software and I am not sure how to create a package for the classes.
Say I have two classes in the same directory as follows:
testA.java
==========
package AB;
public class testA
public static void main(String[] args){
testB myB = new testB();
System.out.println("A test");
testB.java
===========
package AB;
public class testB
public testB(){
System.out.println("B constructor");
both file compile without the package heading;
both file compile using: javac -classpath .\ *.java
Question 1:
I cannot run testA by: java -classpath .\ testA
I think it is a syntax error. What is the correct one?
If I run testA by: java testA
The only output I get is: A test
But I am expecting: B constructor /n A test
What went wrong?
Question 2:
I need to use APIs of another software. I have downloaded a .jar file (xxx.jar) with all the classes in it. And I have put "import xxx.*;" in my source file. But the compiler complains about the importing. What is the right way to copmile it?
I have read a couple of tutorials but they don't answer my question.
(I am using windows2000 and don't have the classpath variable.)
Hope some one can help.
Thanks a lotTry moving testA out of the package and importing 'AB.*;'
If you have:
./testA.class
./AB/testb.class
Then to execute testA from ./ type: java -cp . testA -
Hi All!
Does somebody know what's wrong in import statement?
Thanks.
****err msg************
Client.java:7: cannot resolve symbol
symbol : class Utilities
location: package shared
import mygame.shared.Utilities;
^
Client.java:23: cannot resolve symbol
symbol : variable Utilities
location: class mygame.client.Client
Utilities.printMsg("creating output stream");
^
Client.java:32: cannot resolve symbol
symbol : variable Utilities
location: class mygame.client.Client
Utilities.printMsg("writing current date");
^
3 errors
****pgm***********
package mygame.client;
import java.io.*;
import java.net.*;
import java.util.*;
import mygame.shared.Utilities;
public class Client extends Thread {
Socket clientSocket = null;
public Client(Socket s) {
clientSocket = s;
public void run() {
if (clientSocket == null) {
return;
PrintStream out = null;
Utilities.printMsg("creating output stream");
try {
out = new PrintStream(clientSocket.getOutputStream());
} catch (IOException e) {
System.err.println("Error binding output to socket, " + e);
System.exit(1);
Utilities.printMsg("writing current date");
Date d = new Date();
out.println(d);
try {
out.close();
clientSocket.close();
} catch (IOException e) {
protected void finalize() {
if (clientSocket != null) {
try {
clientSocket.close();
} catch (IOException e) {
clientSocket = null;
****pgm***********
package mygame.shared;
public class Utilities {
// set DEBUG = false and compile to stop debug messages
final static boolean DEBUG = true;
public static void printMsg(String msg) {
if (DEBUG) {
System.out.println(msg);Could you give me an example of how to code a path to a package.
In this case to shared.Utilities.
Thanks.
package mygame.client;
import java.io.*;
import java.net.*;
import java.util.*;
import mygame.shared.Utilities;
public class Client extends Thread { -
I have a question regarding import statement in java language. When I use import java.util.*; and use only say Date class in that package in my class, does java compiler import all the classes that belong to util package or only the class that I am using?
and this string (java.util.* OR java.util.Date) is written
(along with length of this string) into the byte-code.This is incorrect.
$ cp /dev/tty Foo.java
import java.util.Date;
public class Foo {
Date d;
$ javac Foo.java
$ mv Foo.class Foo1.class
$ cp /dev/tty Foo.java
import java.util.*;
public class Foo {
Date d;
$ javac Foo.javaThe files Foo.class and Foo1.class are identical.
Maybe you are looking for
-
Problem in validating menu item
hi, everybody. i have created a main window using JInternalFrame. The window has a menu bar in which document menu is used for closing the main window, while employee menu is used for adding new frame for the employee. while the login frame is displa
-
My iPhone will no longer picks-up the wifi at home(comcast). My mom used to have comcast and I used to connect there as well, but she changed to verison and I connect there, but no longer can get the comcast wi-fi at home. The wi-fi settings are ok
-
How do I install NVivo on my MacBook Pro?
Is it possible to download Nvivo on my MacBook Pro?
-
How do i sort photos by rating stars in bridge?
ow
-
REP-1419 -- Error in report 6i
I am getting this error while running the report6i in the apps REP-1419 Can any one help me out of these.... Krishna