Import command

Hello,
I created a java file, c:\com\mypackage.myjar.java.
Then created a jar file without a manifest, myjar.jar.
I want to use this jar file by importing it.
import com.mypackage.myjar;
I also edited my classpath to include c:\com\mypackage\myjar.jar.
Any idea why I get a error message:
Class com.myjar not found in import.

tsith,
You are right. I didn't explain this properly.
In the directory, c:\com\kab, I have a java file named stockdata.java.
I compiled the java file to create stockdata.class.
I jared the file to stockdata.jar.
In my import statement, import com.kab.stockdata; it retuns the error that it can't find the class in the import.
If I change my import statement to import stockdata, it returns the following error.
Error During Compilation of Algorithm:
error: File c:\com\kab\stockdata.jar(stockdata.class) does not contain type stockdata as expected, but type com.kab.stockdata.stockdata. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
I javac stockdata.java and also tried javac -classpath \com\kab\ jsut to try.
Any ideas?

Similar Messages

  • Using a dynamic file path with the import command

    In one of the BI Publisher blog entries it was mentioned that the curly braces tell the parser that it needs to evaluate this value first before executing the import statement. The example provided was using the built-in parameter CURRENT_SERVER_URL, but it also mentioned that this could be done with any parameter.
    I am trying to import a subtemplate using a parameter that will hold the relative path. I am using the following import command in my report template:
    <?import:file:///{$P_SERVERPATH}/Report Path/Subtemplate.rtf?>
    as well as the following declaration statement:
    <?param@begin:P_SERVERPATH?>
    It appears that the P_SERVERPATH parameter is not being evaluated before the import statement. Am I missing anything?
    Any help is greatly appreciated, we are a little over a week from migrating to a new environment and I need to nail down a solution ASAP.
    Thanks,
    John

    I believe that you cannot have a dynamic path in the import statement as it is not allowed by xsl.

  • Import command in OO

    I need to import some tables in badi IF_EX_ CUSTOMER_ADD_DATA ~ CHECK_ALL DATE, to save some tables that I use the screens. I used the export code on the screens and badi in import command, but it seems the import field is not supported in OO.
    Anyone know any way to pass these tables to badi?

    Hi Lucas,
    Import & Export statements are supported in OO context! There is another syntax of Import & Export which allows to achieve the necessary i.e,
    EXPORT <var> FROM <var>
    TO MEMORY ID 'VAR'.
    IMPORT <var> TO <var>
    TO MEMORY ID 'VAR'.
    as compared to earlier syntax
    Sample Code
    " Since a lot of internal tables would have been declared with OCCURS addition
    " we can declare our own internal table and pass it along for IMPORT.
    DATA: IT_EXPORT TYPE STANDARD TABLE OF ITAB.
         DELETE FROM MEMORY ID 'IT_EXPORT'.
         IT_EXPORT[] = ITAB[].
         EXPORT IT_EXPORT
         FROM IT_EXPORT
         TO MEMORY ID 'IT_EXPORT'.
    In Calling Program you can write -
    " Please note here your structure for IT_IMPORT should be same as IT_EXPORT. 
         IMPORT IT_EXPORT
         TO IT_IMPORT
         FROM MEMORY ID 'IT_EXPORT'.
    Cheers,
    Varun

  • My bookmarks have vanished. I want to re-import from Safari. But the "Import" command in the File menu is not available. What's up?

    Firefox works fine. However, my bookmarks toolbar is marked as <empty>. Didn't used to be. I have no idea where they've gone.
    So rather than dwell on the loss, I thought I'd move ahead by importing the bookmarks I have in Safari over to Firefox. No luck, the "import" command on the File menu is de-highlighted. I cannot select it.

    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * In Private Browsing mode some menu items are disabled (grayed) and features like visited links are disabled and not showing
    * You are in Private Browsing mode if you see "Tools > Stop Private Browsing", possibly grayed
    * You enter Private Browsing mode if you select: Firefox > Preferences > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Firefox > Preferences > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"

  • 10G Instant client and import command

    Hi all,
    Am using the 10G instant client and need to use the import command through this client but cannot find it anywhere. Does the 10G instant client provide this functionality or anyone know of a workaround for this.
    All replies much appreciated,
    Tom

    Thats a pity. I thought I read someplace that you dont lose any client functionality by using the instant client as opposed to using the client cd install. Is it just that the instant client replicates the connection functionality of a normal 300mb client install?

  • Import Command for importing XML files to server

    Hi All,
    Please help me in importing the files to MDS repository.
    i am trying to import a xml file from my C:\JDeveloper903\jdevhome\jdev\myprojects\oracle\apps\ar\irec\webui to the server. i have a confusion like from where(location) i should run the command ?? is that is from $JAVA_TOP or $APPL_TOP/mds??? or local drive?
    and also i have moved my XML files from local Jdeveloper to server using FileZilla to the location /oraweb/u09/appldev2/oadev2comn/java/oracle/apps/ar/irec/webui in ASCII mode. and then i was using following command to import , from $JAVA_TOP,it says import completed , but when i check from TOAD by jdr_utils.printDocument('/oracle/apps/ar/irec/webui/DownloadPG'); it throws an error - Could not find document /oracle/apps/ar/irec/webui/DownloadPG.
    java oracle.jrad.tools.xml.importer.XMLImporter /oraweb/u09/appldev2/oadev2comn/java/oracle/apps/ar/irec/webui/DownloadPG.xml -username "apps" -password apps -dbconnection "(description=(address_list=(address=(community=tcp.world)(protocol=tcp)(host=utx001dod008.uson.usoncology.int)(port=1540)))(connect_data=(sid=OADEV2)))" -rootdir  /oraweb/u09/appldev2/oadev2comn/java/oracle/apps/ar/irec/webui
    Please suggest me the correct way of doing it..
    Your help in this regard is greatly appreciated.
    Thanks
    Praveen Reddy

    Hi,
    I believe all your questions are answered in [Oracle Application Framework Personalization Guide|http://download-uk.oracle.com/docs/cd/B25516_14/current/acrobat/115fwkpg.pdf], Chapter 9.
    To use the import tool, copy the XML file to the server. It is recommended you copy it to $APPL_TOP/<directory> (for example, $APPL_TOP/personalizations), and run the import command from this directory. For the path, you need to give the full path of the XML file you want to import (for example, if you have copied the file to $APPL_TOP/personalizations, then the path according to your first post should be $APPL_TOP/personalizations/oracle/apps/ar/irec/webui/DownloadPG.xml).
    BTW, you can import from your local PC using import.bat file.
    I would also suggest you review the following thread for similar topic.
    Deploy a custom buid OA page
    Deploy a custom buid OA page
    Regards,
    Hussein

  • Import command on PSE-13 on Mac greyed out - why?

    I recently installed an upgrade from PSE-11 to PSE-13 on my Mac running OS10.9.5 and the Import command under the File pull down menu is greyed out preventing me from inputting images from my scanner.

    Hi, I have just upgraded from PSE11 to 13 and like many many people I find the Import / Export menu item is greyed out so I can no longer Import from my scanner which was fine in PSE11 - very frustrating !!! I have of course installed the plugin as advised but this does not work and yes at startup Twain building is apparently being carried out.
    As stated in a previous Post one-on-one email support does not exist and Adobe just send a user in a loop of FAQs which never address the issue effectively. We appear to be suffering from Corporate Arrogance just like Apple. If one pays for support then maybe things, that should never have been a problem in the first place, get resolved. Why don't Adobe just remove the item from the menu and put us out of our misery.
    I suppose it won't be long before Adobe will want monetise the use of Reader !!

  • Import command to migrate oaf pages to apps enviornment not working

    Hi,
    I am new to OAF Development. I have developed one form in which inserts data to table.
    This works well from Jdeveloper so now i want to migrate this to Apps Enviornment. I have transferred my project files to instance.
    Now when i m trying to run the import command from local machine it gives me error:
    Error: Parameter "DBCONNECTION" has not been supplied.
    i run the command from C:\Program files\Jdeveloper\jdevbin\oaext\bin>
    command: import "C:\Program Files\jdeveloper\jdevhome\jdev\myclasses\amitsurana\oracle\apps\fnd\insertdemo\webui\InsertPG.xml" -username apps -password welcome -rootdir "C:\Program Files\jdeveloper\jdevhome\jdev\myprojects\" -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.16.100.32)(PORT=1545))(CONNECT_DATA=(SID=clonedb)))"
    Kindly help..

    Hi,
    you want to post your question to the OAF forum. This is a forum for generic JDeveloper and ADF questions
    Frank

  • Import Command background functionality

    Hello.
    I want to know that after Copying our custom application pages to Server why we use Import command from our machine ?
    What does this command do ?
    Regards
    Ajay

    1) If you are transferring the pages to server, you need to use adjava command.
    adjava oracle.jrad.tools.xml.importer.XMLImporter $JAVA_TOP/xxoci/oracle/apps/icx/Onhand/webui/OnHandQtyPG.xml -rootdir /u05/ebs/r12/PROD/apps/apps_st/comn/java -username apps -password apps -dbconnection "(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp) (HOST=gasora3.ocichemical.com)(PORT=1526)) (CONNECT_DATA=(SERVICE_NAME=PROD)(INSTANCE_NAME=PROD)))"
    2) if pages are on your local jdev, then use Import command.
    import E:\Jdev\crane\jdevhome\jdev\myclasses\xxoci\oracle\apps\icx\Onhand\webui\OnHandQtyPG.xml -username apps -password apps -dbconnection "(DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=10.96.20.29)(PORT=1581)) (CONNECT_DATA= (SERVICE_NAME=UAT) (INSTANCE_NAME=UAT)))" -rootdir E:\Jdev\crane\jdevhome\jdev\myclasses
    --Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Import command error

    i am trying to load a cube using import command
    import database sample.basic data
    from data_file '/hyperion/data/Rates.txt'
    using rules_file '/hyperion/fte.rul'
    on error write to '/hyperion/loaderr.log';
    when i run this command i am getting an error..
    OK/INFO - 1053012 - Object [94458075] is locked by user [Admin].
    ERROR - 1030200 - Cannot access object: /hyperion/fte.rul.
    OK/INFO - 1053013 - Object [94458075] unlocked by user [Admin].
    ERROR - 1241101 - Unexpected Essbase error 1030200
    i am not able to find why is it not able to access the rul fle??
    can anyone help me with this??

    import database ZZ.ZZ data
    from local data_file '/hyperion/data/Rates.txt
    using local rules_file '/hyperion/data/fte.rul'
    on error write to '/hyperion/data/loaderr.log';
    this is not working where i try to load data from a file which is not in applicaiton but is at a differnt loaction. also the rules file.
    The error says cannot access rules file.
    Is that a compulsion that the rules file should be in any application??
    cant we use a rules file which is elsewhere???
    But if I try using this command...
    import database ZZ.ZZ data
    from server data_file '/ZZ/ZZ/FTERatesloadnew.txt'
    using server rules_file '/ZZ/ZZ/fte.rul'
    on error write to '/hyperion/loaderr.log';
    This works fine...
    why is that its not working if I use local data and rules file??

  • Import command for one table core dumps

    Hi,
    The following import command is causing a core dump;
    $ imp system/***** file=/upload/dbdumps/06-09-19_11.00.01-db.dmp fromuser=ioeadmin tables=(utils) 2>&1 |tee imp.log
    But this one does not:
    $ cat imp.params
    FULL=y
    FILE=/upload/dbdumps/06-09-19_11.00.01-db.dmp
    GRANTS=y
    INDEXES=y
    $ imp system/*****@odinprd parfile=imp.params 2>&1 |tee imp.log
    More info:
    SunOS 5.8 / Oracle 8.1.5
    Thank you for any help on this

    I don't have access to Metalink. What would it say -- "imp tables=" doesn't work in 8i?
    So I have tried the following:
    1. drop the table I want to restore.
    2. run this command to restore all tables and let it fail on those tables that already exist and recreate the one i dropped.
    imp system/code4202@odinprd full=y show=y file=/upload/dbdumps/06-09-27_00.00.00-db.dmp 2>&1 |tee imp.log
    But it doesn't. It says this about the table in question:
    "ALTER SCHEMA = "IOEADMIN""
    "CREATE TABLE "PARTNER" ("PARTNER_ID" VARCHAR2(16) NOT NULL ENABLE, "PARTNER"
    "_TYPE" VARCHAR2(16), "ADDRESS_ID" NUMBER(10, 0), "PAYMENT_ID" NUMBER(10, 0)"
    ", "PRICE_LIST_ID" NUMBER(10, 0), "DEFAULT_CARRIER" VARCHAR2(32), "DEFAULT_M"
    "ETHOD" VARCHAR2(32), "CARRIER_ACCOUNT_NUMBER" VARCHAR2(32), "BILLTYPE" VARC"
    "HAR2(10), "TMB_TYPE" NUMBER) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255"
    " LOGGING STORAGE(INITIAL 10240) TABLESPACE "APP_DATA""
    . . skipping table "PARTNER"
    why is it skip this guy? It does not exist:
    SQL> desc partner;
    ERROR:
    ORA-04043: object partner does not exist
    SQL> desc ioeadmin.partner;
    ERROR:
    ORA-04043: object ioeadmin.partner does not exist

  • Import command is not functional (greyed)

    the "import" command is not available (grayed) I want to import my Safari bookmarks

    I guess the first thing you now need to do is to get the latest drivers for your printer because as you say you uninstalled it from your machine and now reinstalled it again.  I don't know why you thought printer should have been uninstall;led but anyway, please reinstall the driver and then see if it is recognized by your operating system and try scanning something as a test from outside the PSE13 before going back to PSE13 and trying to scan your real image.
    Please post back so that Barbara or R_Kelly can help you as I don't use Apple Mac.

  • Import Command - Option to Delete objects That Already Exist?

    hi experts,
    This is 10g on Windows.
    I'm importing a specific owners objects into my 10g database. most of the tables, etc already exist. Will I have to drop the objects before importing - OR - can I use a switch/option in the import command to auto. drop anything that already exists?
    Have reviewed the command in a book I have and can't find anything that auto drops.
    Thanks, John

    impdp won't read exp dmp files.
    All you have is imp. Imp has ignore=Y, which will make imp not to skip the entire table upon import. This effectively works as 'append'. If you don't want that (duplicate keys come to mind) you need to drop tables and/or the user yourself.
    Sybrand Bakker
    Senior Oracle DBA

  • I want to import my favourites from IE but the import command in Firefox is greyed out

    I've just moed over from IE to Firefox and want to import my favourites from IE using the Firefox import command. But whatever I try I cannot get the import command under the File tab to "ungrey".

    In IE: <br />
    File > Import/Export - Export to HTML file
    ''then in Firefox:'' <br />
    Bookmarks > Organize Bookmarks -> Import & Backup - Import HTML... = From HTML file

  • Usage of 'export' & 'import' command in SSL

    Hi,
    I have a query regarding 'export' and 'import' command while creating security certificates.
    Why do we use export word in this command and not anywhere else -
    keytool -export -alias weblogic -file trust.pem -keystore mykeystore.jks -storepass weblogic -rfc
    why can't we use import instead of export and vice versa.
    what do u mean when u say, import or export, what is the basic difference between these two in terms of security command.
    Thanks,
    Sid

    Hi Vankan,
    Your question is so extensive that should be explained a bit.
    Could you please be more specific? Which platform are we talking about? DB, OS, etc?
    Which kind of export/import do you want to carry out?: e.g.: client transport, client copy, homogeneous system copy, heterogeneous system copy...
    The technique you will use for that depends on what you want to do and on the platform you are working on.

  • Why does LR crash when Import command is used? The only solution I can see is to restart my PC. Issue pre-dates latest LR upgrade.

    LR has stopped working several times when I use the Import command (button and from File menu) - Windows gives the options of waiting or closing LR. I have waited for 30 mnutes but nothing happens. This pre and post-dates the latest LR upgrade. I'm using Windows8 and have only had problems in recent days. The only solution I can see is to restart my PC. What's happening - any ideas?

    Dorin:
    I have uploaded the catalog file and the photo included in that catalog (a Canon 20D .CR2 file) to RapidShare at:
    http://rapidshare.com/files/139240757/_MG_7731.CR2.html
    http://rapidshare.com/files/139240759/LR_Test_Catalog.lrcat.html
    I am assuming that the associated "LR_Test_Catalog Previews.lrdata" folder isn't required too and will be recreated for you?
    John:
    Yes, I imported some .CR2 files taken from home to the office and imported them into an existing catalog there. And yes, they're shown okay. Plus other 2006 files (from the same camera, I usually import into both) are okay too. There are some .XMP files in some 2006 folders, but not many. I will take the catalogue (sorry, got caught up in the Yank spelling) from home to the office on Monday and try importing that, hadn't thought of that. The photo's won't be in the same folder structure though and not all will be there.
    Apologies for not answering the other question, I am a person who came from the Pixmantec RawShooter background and would have still been using that program then. The .RWSettings folders are still in the folder structure. I am pretty careful with my .CR2 files and try not to use any programs that would directly edit them. I have backups on DVD, but I haven't tried them. I also have another copy of some 2006 files on another HDD and have tried importing them tonight into the new catalog with no change in behaviour.
    I will also try setting the camera date to 2006, take some new pics and see what happens.
    Apologies, too, about the apostrophes, my dear Mum would be most embarressed at me. Can't edit them now, history has passed by!
    Thanks for your assistance.
    Simon...

Maybe you are looking for

  • Remote access VPN Users not able to see local lan or internet

    We are setting up a ASA5510. Right now our users can login to the vpn but can't access the internal Lan or internet. Below is the config. Any help or insight would be greatly appreciated. Thanks Cryptochecksum: dd11079f e4fe7597 4a8657ba 1e7b287f : S

  • Ken Burns Effect isnt working, arrggggh

    I have an older Mac G4 with a dual processor. Today, I installed a new processor (2GHz) in hopes that it would bring back the Ken Burns effects in iMovie. Do I need to upgrade to Tiger for this effect to work? I am also getting a message stating iMov

  • How do you create new maps in Mail on iPad?

    How do you create new maps in Mail on iPad? In the iPad-manual they mention you can put messages in other mailboxes or maps (to free up the Inbox). But they don't mention how to create such maps. In the app itself I can't find a way to do it. thanks

  • Help with setting environment variable on solaris 10

    hi, i am new to solaris. i have solaris 10 x86, and as root user, i installed jdk 6 into /usr/jdk/jdk1.6.0_20. now i want to add the path /usr/jdk/jdk1.6.0_20/bin to my path variable. also i want to set JAVA_HOME. but each time i do this, and close t

  • Experts: ****Urgent**** help needed.

    We need to give a demo to a customer tomorrow. We need to store data in the Oracle 10g DB in Persian. Our development DB which we inserted data in English has a WE8ISO8859P1 character set. There is no data in Persian in this DB. We created a new 10 D