Problem for import & package

Hi, I got a problem about the import and package , my problem is like that : I write 2 java files call Test.java (C:\..\test\GetAdd\Test.java) and Tambah.java(C:\..\test\tambah\Tambah.java)
//Test.java
package test.GetAdd;
import test.tambah.*;
public class Test
private Tambah add = new Tambah();
public Test()
System.out.println(add.get());
public static void main(String[] args)
Test t = new Test();
//Tambah.java
package test.tambah;
public class Tambah
public int get()
int h = 5;
return h;
When i compile this 2 java files, it got error that say can't resolve class Tambah, why?
Thanks

http://java.sun.com/j2se/1.4.1/docs/tooldocs/windows/classpath.html
(For a casual compiling use the console window with the parent directory of your "test" directory as the current directory, and the command above.)

Similar Messages

  • 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 for import dmp file

    Hi,
    I had installed both oracle 8i and 11g, I'm trying to import my dmp file in oracle 8i, but that query will shift to 11g environment.
    How can i import my dmp file in 8i.
    eg:
    host imp sys/sys@ora file='D:\Ven_Excercise\hlw_demo\koow.dmp' ignore=y
    fromuser=trainee
    regards
    venki

    Already some references had been provided in ur previous post itself. Refer the
    link been provided there.
    Ur Orginal post:
      problem of import file
    Regards
    Nirmal

  • Problem with Importing Packages

    I have a file which has several classes and an interface. The first line is package ImageSequence; . It is saved in a file called ImageSequence.java. I have another file in the same directory that has include ImageSequence.* as the third line. I get an error that the package is not found. What is wrong?

    Thanks, but that still doesn't solve the problem. I have this code:
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import ImageSequence.*;
    public class ImageSequenceTest extends JComponent {
         public static void main(String args[])
              new ImageSequenceTest();
         public ImageSequenceTest()
              Toolkit toolkit = Toolkit.getDefaultToolkit();
              Image i1 = toolkit.getImage("ImageSequenceTesti1.gif");
              Image i2 = toolkit.getImage("ImageSequenceTesti2.gif");
              Image i3 = toolkit.getImage("ImageSequenceTesti3.gif");
              Image i4 = toolkit.getImage("ImageSequenceTesti4.gif");
              Image i5 = toolkit.getImage("ImageSequenceTesti5.gif");
              Image i6 = toolkit.getImage("ImageSequenceTesti6.gif");
              Image images[] = new Image[] {i1, i2, i3, i4, i5, i6};
              ImageSequence is = new ImageSequence(images, 50);
              JFrame frame = new JFrame();
              frame.setSize(100, 100);
              frame.getContentPane().add(is);
              frame.setVisible(true);
              is.setRepeat(true);
              is.start();
    }When I try to compile it, I get these error messages:C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:22: cannot resolve symbol
    symbol : constructor ImageSequence (java.awt.Image[],int)
    location: class ImageSequence
              ImageSequence is = new ImageSequence(images, 50);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:25: cannot resolve symbol
    symbol : method add (ImageSequence)
    location: class java.awt.Container
              frame.getContentPane().add(is);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:27: cannot resolve symbol
    symbol : method setRepeat (boolean)
    location: class ImageSequence
              is.setRepeat(true);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:28: cannot resolve symbol
    symbol : method start ()
    location: class ImageSequence
              is.start();
    ^
    4 errors
    When I get rid of import ImageSequence.*; and copy the code for the ImageSequence class from the package into the file, everything works.

  • Problem for import picture of sony nex-5 with lightroom 5

    I have Lr 5 on os X and I don't understand when I import picture of Sony NEX-5, my pixel size is 4592 x 2576 instead of 4592 x 3056.
    So the picture render is cut only on lightroom and is good on mode preview on Mac
    Thanks for your help

    Thank you e2photo.
    Yesterday I found a similar post about the same issue with a new Canon camera. They fixed the problem by copying the files from the camera to a folder on the computer. Then they loaded the files into AP3 from the folder. Great news; it worked!!
    Thank you for your thoughts on iMovie as I had not tried to download movie content yet. You prompted me to do a little trial. No problem. iMovie 08 read the ACVHD movie and it looks great.
    Kind regards,
    Karl McC

  • What's the problem for this package????

    My Package is :
    CREATE OR REPLACE PACKAGE MY_PAQ IS
    TYPE RESULT IS REF CURSOR;
    FUNCTION MY_FUN
    RETURN RESULT;
    END MY_PAQ;
    CREATE OR REPLACE PACKAGE BODY MY_PAQ IS
    FUNCTION MY_FUN
    RETURN RESULT
    IS
    C RESULT;
    BEGIN
    OPEN C FOR SELECT * FROM MY_TAB;
    RETURN C;
    END MY_FUN;
    END MY_PAQ;
    SQL> SELECT MY_PAQ.MY_FUN FROM DUAL;
    SELECT MY_PAQ.MY_FUN FROM DUAL
    ERROR at line 1:
    ORA-00902: invalid datatype
    I like that my function returns a set of rows from a table(s)
    thanks in advance
    Mario

    Mario,
    Package seems okay. However since the function returns an open cursor, one suggested option is as follows:
    sqlplus > variable test_cursor refcursor;
    use this bind variable and call the function
    sqlplus > exec :test_cursor := MY_PAQ.MY_FUN;
    sqlplus > print test_cursor;
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Mario Alberto Suarez ([email protected]):
    My Package is :
    CREATE OR REPLACE PACKAGE MY_PAQ IS
    TYPE RESULT IS REF CURSOR;
    FUNCTION MY_FUN
    RETURN RESULT;
    END MY_PAQ;
    CREATE OR REPLACE PACKAGE BODY MY_PAQ IS
    FUNCTION MY_FUN
    RETURN RESULT
    IS
    C RESULT;
    BEGIN
    OPEN C FOR SELECT * FROM MY_TAB;
    RETURN C;
    END MY_FUN;
    END MY_PAQ;
    SQL> SELECT MY_PAQ.MY_FUN FROM DUAL;
    SELECT MY_PAQ.MY_FUN FROM DUAL
    ERROR at line 1:
    ORA-00902: invalid datatype
    I like that my function returns a set of rows from a table(s)
    thanks in advance
    Mario<HR></BLOCKQUOTE>
    null

  • Problem with importing packages in servlet

    Hi all,
    I am a newbie to java so please bear with me...
    I am trying to create a java servlet but Eclipse is giving me errors such as:
    'the import org.apache.struts cannot be resolved' in the following line:
    import org.apache.struts.action.Action;
    My environtment is:
    Windows 2000
    Tomcat 5
    j2sdk1.4.2_04
    struts 1.1
    Any help would be greatly appreciated.
    Thanks
    John

    you need to add the struts.jar to your classpath

  • RG23 Register Problem for Import Duties

    Hai Friends,
    In RG23 Register Import BED is updating in AED Field, While capturing all are coming correct also Domestic Duties are coming correctly.
    Can anybody help it out.

    Hi Sathya
    Pls check the assignment of Import BED condition type in appropriate feild in cust settings
    SPRO>Log gen>Tax on goods..>India>Basic settngs>Determntion of exc duty> "Maintain Excise Defaults".
    You may get solution there..
    Regds

  • Problems for importing files. avi

    hello,
    when I try to download a file. avi, a message appears saying:"the software that's used to decode the media is not available on this system. installing
    the correct decoder", how to resolve. The file is a movie downloaded from the internet. thanks

    We'll need a lot more detail about that AVI file. See this ARTICLE to get an idea of the problems that can exist and also some background on AVI's (and MPEG's and MOV's).
    The problem will likely be with your particular AVI file - not all are created equal.
    Good luck, and I look forward to the details. The answer will be contained with in that info.
    Hunt

  • Problem in Import PO pritout

    Hi,
      I have one problem   for import PO printing documen tcurrency in USD  for on PO  in line item price   the amount is coming as   4.7185  dollar which is OK   but in another PO insted of 3.900  Dollar  it is printing it as 3,9000    even though  the user settinf in OWN Dta is OK  it is decimal notation X  and also in ME23N  it is showing as 3.9000  but in printing it is displaying as 3,900 
    can you help on this issue,  I have search SDN  but all reply are asking for checking of Decinal notation  which is already  OK
      regards,
       zafar

    Hi,
    We are using customize program in NEU output type only  also price field is OK  and we are facing this problem in some PO only.
    regards,
    zafar

  • Problem importing packages via ICE??

    Hello,
    I am running Portal 6.0 on Windows Server. For one of the business package that is to be implemented in my Portal, i have to deploy two files as a pre-requisite that are associated with SAP Note 660777(https://service.sap.com/sap/support/notes/660777). I have imported the "com.sap.pct.crm.kmconfig40.par" file but having problems deploying "fullupdate_completeBP602.zip". I must admit that i haven't got much idea about importing packages via ICE as i have never used it before.
    I tried to import it via, Portal->System Administration->System Configuration. In there, Actions->Import. When i point to the "fullupdate_completeBP602.zip" file and say Preview, i get a error message saying "Enter a valid configuration archive name". Isn't this the right way to import this package? Please guide. Thanks.
    Regards,

    I suggest you also ask in the KM forum about ICE. There is also some information in the SAP help pages about ICE. For example an overview of it can be found
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/63/42aa17425c514f85ad5ecd45988509/frameset.htm">here</a>
    Cheers

  • Hello  J have problem in the demarage d iphoto the dialogue displays and asks me for the following text?  138 photos not having been imported were found in the iPhoto library(bookcase).  Would you care for import them? Yes or no you already have meet this

    onjour
    j ai des probleme au demarage d iphoto le dialogue s affiche et  me demande le  texte suivant ?
    138 photos n’ayant pas été importées ont été trouvées dans la bibliothèque iPhoto.
    Souhaitez-vous les importer ? oui  ou non avez vous deja rencontrer ce proble  si oui pouvez vous m aider
    Merci
    Hello
    J have problem in the demarage d iphoto the dialogue displays and asks me for the following text?
    138 photos not having been imported were found in the iPhoto library(bookcase).
    Would you care for import them? Yes or no you already have meet this prowheat if yes can you m help
    Thank you

    Open your iPhoto Library package with the Finder as shown in this screenshot
    and look in the folder named Auto Import.  Move any files in that folder to a folder on the Desktop and close the package. Do not make any other changes.  Launch iPhoto (the message should be gone) and drag the folder on the Dersktop into the open iPhoto window to import them.
    OT

  • 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

  • Visual age problem - importing packages

    Hello,
    I have created a Java client NT application on Visual Age which interacts with Oracle database thru JDBC driver.
    when i give
    import oracle.jdbc.driver.*;
    the visual age editor is not able to find the above package, whereas when i export the same application and execute it on DOS environment there are no problems.
    I want to know the best way to import packages in Visual Age because when I added the required packages to my application, "no suitable driver" error occurred.
    Not as familiar with Visual Age. Any help would be appreciated. Thanks :-)
    Raj

    Thanks! Got it fixed.
    Giving the duke dollar to myself ;)
    raj

  • Import package problem

    hi,
    I am trying to import some classes into my java file.The path is as follows:
    "c:\tinyos\tinyos-1.x\tools\java\net\tinyos\mcenter\treetable".I am importing the classes in the treetable package.
    when I write import tinyos.tinyos-1.x.tools.java.net.tinyos.mcenter.treetable,a problem occur because of the folder tinyos-1.x. do you have any idea about this situation? :(
    thanks in advance

    You are right, I cannot use "-" character in a Java identifier. In fact, you exactly point to the problem. The package I want to import is actually net.tinyos.mcenter.treetable. However, I have two similar "net" directories. their exact paths are as follows:
    1. c:/tinyos/cygwin/home/tinyos/tinyos-1.x/tools/java/net
    2. c:/tinyos/cygwin/opt/tinyos-1.x/tools/java/net
    I need to import the classes in the first "net" directory. However, it tries to find the classes in the second path and gives errors. therefore, I need to specify them exactly or somehow distinct them.
    Could you help me?
    thanks..

Maybe you are looking for

  • The album artwork on my iPod Classic is all mixed up. Wrong artwork on each song..

    Why does the album artwork on my iPod Classic get all mixed up wheres it is correct in the library. Please help

  • How can I get the Creative Cloud Desktop app To work on Windows Vista?

    Currently My CC Desktop app is a greyed out icon. It has been on and off for months now. I have called technical support several times and been directed to 1) Uninstall it 2) Run the cleaner 3) Turn AV Software off 4) Delet my prefrences 5) Delet Hos

  • Viewing Full Screen Problem

    Hello I edit using an 27 inch IMac as my main FCP screen and an older monitor to display the Browser.  When I hit Command/F12 to payback a sequence full screen, the image goes to  the secondary, inferior monitor. Can't drag the display to the higher

  • How do I install print drivers

    I want to print to my home printer on my home network, which is wireless. I download an installer for MAC from HP for the printer and can't locate the HP printer in the add a printer function. What do I do?

  • Low battery warning prompts

    I got the 20% low battery warning after a standby of 59 hours and usage of 5 3/4 hours. I was browsing the web through Edge when I got the 20% warning. Less than 2 minutes later, the 15% warning showed up. I continued to browse the web for more than