Problem in IMPORTING!

I have a problem with importing files.
eg i have a file: Complex.java
how can i use this file in another program (NR.java)??

I have a problem with importing files.
eg i have a file: Complex.java
how can i use this file in another program
(NR.java)??There are 2 ways of that purpose.
1.If they are in the different and you hope you have your own function lib, you can define package in Complex.java, and import the package, that you can use this class.
Example:
if your CLASSPATH = .;E:\java;
you must put you Complex.class in E:\java\mylib;
//==== Complex.java ====//
package mylib;
public class Complex{
    public int add(int a, int b){ return (a+b); }
//==== NR.java ====//
import mylib.*;
public class NR{
    public static void main(String[] args){
        Complex obj = new Complex();
        System.out.println("Sum is ",obj.add(1,2));
}2.If they are in the same directory, you can use it directly without define package.
Example:
//==== Complex.java ====//
public class Complex{
    public int add(int a, int b){ return (a+b); }
//==== NR.java ====//
public class NR{
    public static void main(String[] args){
        Complex obj = new Complex();
        System.out.println("Sum is ",obj.add(1,2));

Similar Messages

  • Problems with importing text messages from PC Suit...

    Problems with importing text messages from PC Suit 7.1.18.0 to my Nokia 5800
     I am trying to import a csv file that contains text messages (Note that this file was created using PC Suit 7.1.18.0) to a subfolder that I have created to My Folders but PC Suits only imports the text messages to the Draft folder. Note that initially it shows that the messages are import in the correct folder but after a refresh it shows them in the Draft Folder. Is their any setting that I should change in the PC Suit or the phone? My computer runs on Windows XP Service Pack 3 and the Nokia 5800 was upgraded to the latest firmware v20.0.012
     Thanks for your help

    Most phones only allows importing of draft and archived box for SMS.
    To do a restoring, you need to backup the SMS as a .nbu file using PC Suite and restore later.
    If you got an SD card, you can also do a backup on the SD Card (backup.arc) then restore later (reset and restore: backup.arc and mmc).
    What's the law of the jungle?

  • Tempo problems with imported wav files

    Hey everyone, sorry if there's a quick fix for this in the forums that I couldn't find, but I've been having some tempo problems with imported .wav files.
    Long story short, my system couldn't handle playing all the tracks for a song while recording drums, so I bounced out an mp3 of the song and put it in a new Logic file so my drummer could just play along to that as I recorded him. Unfortunately, the original song is at 167 bpm, but I forgot to change the bpm in the new Logic file with the .mp3 file of the song to 167 bpm, so it was left at the default 120 bpm.
    So, the drums were recorded at the correct 167 bpm, but Logic thinks that those new drum .wav files should be played at 120 bpm, so when I import my drum tracks back into the original file, they do not play correctly at all.
    I could get record it all again, but I wanted to check if there was a way I could salvage what I already have, since my drummer lives about an hour away right now and can't just come over whenever he wants.
    Thanks for the help! I really appreciate it.

    Hi,
    First, do not use MP3 in Logic, the sound quality is less than AIFF, WAV or CAF, and Logic has to decode it for playback, making it a heavier burden on the CPU than an uncoded audiofile, such as AIFF, WAV or CAF.
    Secondly, audio files are independent of Logic's tempo. If you bounce down an audio file in any format (other than Apple Loop), it will play back at the same speed, +regardless of Logics' tempo setting+, either at recording or playback. Logic doesn't 'think' anything. The BPM is only important to MIDI tracks, or to the spacing between audio files. The audio files themselves *are not affected* by the tempo setting. If you import an audio file of tempo 167 into a 120 BPM project, the file will still play at 167, only Logic will indicate the wrong bar positions.
    regards, Erik.

  • Problem while importing a Crystal Report in SAP Business One

    Hi Experts,
                        I am facing a problem while importing a Crystal Report in SAP Business One, it displaying an error  "No matching records found  'Queries' (OUQR) (ODBC -2028)  [Message 131-183]" , and there is no use of this table OUQR  in the Query.
    Kindly let  me know the solution.
    Regards
    Rahul Singh

    Hi Rhaul,
    i don't exactly know why this is a problem, but if your not on latest (881 p10) then upgrade and try again.
    Or as a workaround,
    try saveing from CR to SAP with the CR add-on. That usualy works better then the import.
    Regards,
    D

  • Problem during import of 121 transport requests to productive system

    Hello
    We have problem during import of transport requests to productive system. Import of 121 transport requests stopped very soon in phase "N" (in TRBAT I have only one entry and in  TRJOB  as well).
    In sm50 there is an BGD running under user DDIC in client 000 now for 14453 seconds (program SAPLSDB2). This should be import.
    In SM37 I can see it as  job "RDDGEN0L" with  repport"RDDGENBB". Based on some literature it should perform "Converting all structure changes generated by the import and recorded in table TBATG, other than the structure changes to matchcode objects." Very interesting  that TBATG has only four entries related to 2 indexes in table "DFKKOPK" , one in table "DFKKREP06" and one" ENQU" for EFKKEXC". (only this last one has not status error)
    For fist two indexes I know they are not present  as objects "LIMU""INDX" in any transport request beeing imported.
    Also on productive system there is no"VOL" and "ZOL"indexes for table "DFKKOPK"(instead they are created on test system ie. not transported from development to test system)
    Last command for that process is "CREATE INDEX "DFKKOPK~HKO" ON "DFKKOPK" ("MANDT", "HKONT", "OPBEL") PCTFREE 10 INITRANS 002 TABLESPACE PSA
    PTR3 STORAGE (INITIAL 0000000016 K NEXT 0000000016 K MINEXTENTS 0000000001 MAXEXTENTS UNLIMITED PCTINCREAS"
    There is enaught space on disk and in tablespaces (it is an oracle/HPux server).
    Does anyone knows workaroun to solve production

    are you importing these transport requests simultaneously into production?
    I would suggest you try doing in smaller groups of 5 or 10 and then see whether you are able to import the requests
    Rohit

  • Problem in Importing Transport Request

    Hi Everybody,
                     I have a Problem in Importing a Change Request .  Yesterday ABAP person  had Released two change request from DEV to PRD. I imported the 2. i got successfully  imported but another one  is still importing( status:Truck symbol)
         after that i have imported many Request in PRD server, except this one. how to stop importing this? what may be the reason?
    Regards,
    Siva

    Hi Siva Kumar,
    You can reset the status of that transport.
    Select the transport (which is showing the running status) -> Go to the import monitor -> right click the truck symbol and delete it.
    Best Wishes.

  • Problem with import file type setting

    Problem with import file type settings - In preferences>general I select "wav encoder" But then going to tools>Create it still says "create mp3 version".
    Can't find a way to overcome this. Thanks for any help.

    Doublechecking, roy. After making the preferences change, are you leaving the General tab by clicking the OK button down the bottom-right-hand corner of the tab?

  • Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    haben
    From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
    A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
    Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
    User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
    presets there for the QuickTime choice there.
    What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30)  or something else? Do you know if this camera is recording with a variable or
    a constant frame rate?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • Problem During Importing using DBMS_DATAPUMP

    Hi,
    I am facing Problems while Importing usinf DBMS_DATAPUMP:
    Its not showing any Error but the Tables not getting Imported.
    Below is the Code whihc i have written for Import:
    CREATE OR REPLACE PROCEDURE Data_Pump_Import_Load AS
    ind NUMBER; -- Loop index
    h1 NUMBER; -- Data Pump job handle
    percent_done NUMBER; -- Percentage of job complete
    job_state VARCHAR2(30); -- To keep track of job state
    le ku$_LogEntry; -- For WIP and error messages
    js ku$_JobStatus; -- The job status from get_status
    jd ku$_JobDesc; -- The job description from get_status
    sts ku$_Status; -- The status object returned by get_status
    BEGIN
    -- Create a (user-named) Data Pump job to do a schema export.
    DBMS_OUTPUT.PUT_LINE('COMES HERE');
    h1 := DBMS_DATAPUMP.OPEN(operation => 'IMPORT', job_mode =>
    'TABLE',job_name => 'RET_IMPORT_TEST');
    DBMS_OUTPUT.PUT_LINE('COMES HERE1111');
    DBMS_DATAPUMP.ADD_FILE(handle => h1,filename =>
    'MYEXPORTTEST.DMP', DIRECTORY => 'EXPORT_DIR',filetype=>1);
    DBMS_OUTPUT.PUT_LINE('COMES HERE2222');
    DBMS_DATAPUMP.ADD_FILE(handle => h1,filename =>
    'MYEIMPORTTEST.LOG',DIRECTORY => 'EXPORT_DIR',filetype=>3);
    DBMS_DATAPUMP.SET_PARAMETER (handle => h1,
    NAME => 'INCLUDE_METADATA',
    VALUE => 1);
    DBMS_DATAPUMP.SET_PARAMETER(handle => h1,NAME =>
    'DATA_ACCESS_METHOD', VALUE =>'AUTOMATIC');
    DBMS_DATAPUMP.SET_PARAMETER(handle => h1,NAME =>
    'TABLE_EXISTS_ACTION', VALUE =>'REPLACE');
    DBMS_OUTPUT.PUT_LINE('COMES HERE3333');
    -- Specify a single dump file for the job (using the handle just returned)
    -- and a directory object, which must already be defined and accessible
    -- to the user running this procedure.
    -- Start the job. An exception will be generated if something is not set up
    -- properly.
    DBMS_DATAPUMP.START_JOB(h1);
    -- The export job should now be running. In the following loop, the job
    -- is monitored until it completes. In the meantime, progress information is
    -- displayed.
    percent_done := 0;
    job_state := 'UNDEFINED';
    WHILE (job_state != 'COMPLETED') AND (job_state != 'STOPPED') LOOP
    dbms_datapump.get_status(h1,
    dbms_datapump.ku$_status_job_error +
    dbms_datapump.ku$_status_job_status +
    dbms_datapump.ku$_status_wip,-1,job_state,sts);
    js := sts.job_status;
    -- If the percentage done changed, display the new value.
    IF js.percent_done != percent_done
    THEN
    DBMS_OUTPUT.PUT_LINE('*** Job percent done = ' ||
    TO_CHAR(js.percent_done));
    percent_done := js.percent_done;
    END IF;
    -- If any work-in-progress (WIP) or error messages were received for the job,
    -- display them.
    IF (BITAND(sts.mask,dbms_datapump.ku$_status_wip) != 0)
    THEN
    le := sts.wip;
    ELSE
    IF (BITAND(sts.mask,dbms_datapump.ku$_status_job_error) != 0)
    THEN
    le := sts.error;
    ELSE
    le := NULL;
    END IF;
    END IF;
    IF le IS NOT NULL
    THEN
    ind := le.FIRST;
    WHILE ind IS NOT NULL LOOP
    DBMS_OUTPUT.PUT_LINE(le(ind).LogText);
    ind := le.NEXT(ind);
    END LOOP;
    END IF;
    END LOOP;
    -- Indicate that the job finished and detach from it.
    DBMS_OUTPUT.PUT_LINE('Job has completed');
    DBMS_OUTPUT.PUT_LINE('Final job state = ' || job_state);
    dbms_datapump.detach(h1);
    END;
    /

    Use metadata_remap proc with REMAP_SCHEMA option:
    DBMS_DATAPUMP.METADATA_RAMAP(id, 'REMAP_SCHEMA', 'SOURCE_SCHEMA', 'DESTINATION_SCHEMA');

  • Problem in Importing in configuration.

    Hi All,
      I am facing a problem while importing the configuration object saying that "UNABLE TO CONNECT TO SLD".
    Can you please let me know if i need to check anything , or anyway out.
    thanks,
    JAY

    Thanks a lot for all your valuable suggestion.#
    I have checked the SLDCHECK it is perfectly all right as expected with most of the things in gree and there is no red mark showing in from the perticular transaction, so also the SLD part is also opening perfectly as expected.
    what next ... i am not findng any clue to progress.
    thanks,#
    JD

  • Problem in importing from dmp file

    Hi ,
    I am facing problem while importing from dmp file on unix server
    Error is as follows :
    Export file created by EXPORT:V08.01.07 via conventional path
    IMP-00013: only a DBA can import a file exported by another DBA
    IMP-00000: Import terminated unsuccessfully
    Export taken was with user xxx@yyy
    import command is : imp xxx/ppp file=abc.dmp TABLES=xxx.table1 ignore=y feedback=500
    please help me out.
    Atul Chougule

    I tried with FROM USER / TO USER , but the result is same.
    $ imp uuu/ppp file=aaa.dmp fromuser=uuu touser=uuu ignore=Y
    Import: Release 8.1.7.3.0 - Production on Thu Jun 15 06:44:49 2006
    (c) Copyright 2000 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.7.3.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.3.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    IMP-00013: only a DBA can import a file exported by another DBA
    IMP-00000: Import terminated unsuccessfully
    I am stucked up ,Dont know what to do .

  • Problem in importing package

    i am new to java and facing problems in importing package which are self made.
    secondly does JDK 1.1.3 can support swing

    Hi,
    I had some problems myself. I will add few lines, maybe it helps:
    OK, let's assume that you work in a directory. In this case, set classpath to this hierarchy as well as to "." ('this' hierarchy - like in DOS).
    Now, assume that you want to use packages MyPack1 and MyPack2. The source files of classes belonging to MyPack1 must:
    - start with command
    package MyPack1;
    - be located all in the directory MyPack1
    (and the same for MyPack2, of course)
    If you want to use MyPack1 within MyPack2, you have to include:
    import MyPack1.*;
    even though MyPack1 is, in fact, located on path: ../MyPack1/*
    (trust the classpath is important here)

  • Problem in Importing Configuration object

    Dear All,
    I am facing the problem while importing ID object.
    Business system INTEGRATION_SERVER_XIP is not assigned to a business system group with the ID (XISystemGroup).
    So , I just try to create a Group in Business System in SLD. But I could not find the option to create the System Gourp.
    I could n't see <b> edit groups </b>
    any clue..
    Regards
    Danab

    Hi,
    First, you have to start the SLD.
    To create a group, proceed as follows:
    > Business Systems
    > Click on the drop-down next to Group and select Edit Groups
    > Create a group for each environment (eg DEV, TST, PRD). Specify for each group which Integration Server is used.
    To assign business systems to a group, proceed as follows:
    > Business Systems (Group = all)
    > Select your Business System
    > Click on the Integration tab.
    > Select the related Integration Server (which is associated with a group - see step 1)
    To map your DEV Business Systems to TST Business Systems etc., proceed as follows:
    > Business Systems
    > Select the group of your choice
    > Select your Business System
    > Click on Transport
    > Click on Add/Change Target
    > Select the Target Group and System
    KR, Danny De Roovere

  • Problem in importing SWCV in Integration Repository

    Hi All,
    I am facing a problem while importing SWCV in Integration repository. it is throwing an error as
    <b>Unable to read Software Component Version from the System Landscape Directory "XI1:50000"(SWC_IMPORT_PROCESS_EXCEPTION).</b>
    Regards,
    Chandu

    Hi Chandrasekhar,
    Have you configure SLD properly. to check this give the tcode 'sldcheck'. if it is not giving any error, u have to create 'lcr' rolesin j2ee UME and those roles to be maped to the users using j2ee visuval administrator. for more information check SLD configuration guide .
    Regards
    N.Amarnath

  • Problem in Importing PLSQL functions

    Dear Friends,
    I am facing a problem in Importing the PLSQL functions which i have created, Please refer to the following steps :
    1) I created the function and gave execute grants to EUL_US .
    2) I tried to import the function from Discoverer administrator, but i am unable to find the function in the list.
    Please advice wethere i missed any step..
    Thanks in advance
    Raj

    Hi
    Yes, i tried that. Please verify the following steps i did:
    1) created <mypack.myfunc> under apps user
    2) Grant all on <mypack.myfunc> to EUL_US with grant option;
    It contains two parameters :- id number, as_on_date date
    I tried to import in Discoverer admin, but i couldn't find it. Then i tried to register manually, i gave all options correctly, but it says invalid function.
    Did i miss any thing any where??
    Please help
    Thanks
    Raj

Maybe you are looking for

  • Limitations of the program?

    1. Are there limitations to how much video can be brought into iMovie? 2. Is it possible to insert still images on a different layer that will display along with video? Thanks!

  • Open PDF file in my Hotmail account

    I cannot open a PDF file sent to me to my Hotmail account as an attachment. What can I do??

  • Transaction code (URGENT)

    Hi all,    I would like to know is there any transaction code where, i can enter the GR no. & check to see which PO no. it is referenced with? or if there is no direct t-code, any other way i can get this info... ideas please Vivek

  • Air and windows 8.1 keyboard

    I upgraded windows from 7 pro to 8.1. Keyboard backlight disappeared. Also, I can not use any function keys. Please help. thanks

  • I can't purchase anything that costs, forgotten security questions

    as above. please help me. i have forgotten my security questions. so i can't purchase anything.