Cant import classes

i cant compile a file because i keep getting the folowing errors
I:\Huffman(7-11-2001)\unpack.java:18: Class Huffman not found in import.
import Huffman;
^
I:\Huffman(7-11-2001)\unpack.java:19: Class node not found in import.
import node;
^
both classes ARE in the same folder...
does anyone know how to fix this?

seems that u need to include working directory in classpath.
set classpath=.;%classpath%

Similar Messages

  • Importing classes/jar files

    Hi
    im writing a simple mail program but i need to import classes or jar files
    import com.oreilly.servlet.MailMessage;
    is the line i have but i cant find the jar file/class
    when i search for it i only get the description
    where can i find tha actual jar file or package ???

    you must to have the jar file from you want import classes if you don't have this jar you can't do this.
    if you've the jar, you must indicate to your IDE environment where can find this jar file I don't know meybe in the common menu options > Project settings...
    or if you're working with webserver (or stand alone)as Tomcat you need copy jar into /lib folder.

  • Error jsp useBean  cant find class com.bloodoo.shoppingbasket

    I have an application which runs on my home Pc . It is a basic shopping cart app. I have Tomcat 4.1 and j2sdk1.4.2.
    When I transfered the application to Lunarpages my host , with the same folder structure I altered all the passwords and db connectors etc but when Itry to access the shop.jsp page I get the following error " useBean cant find class com.bloodoo.shoppingbasket " . I transferred the .java and .class files to Lunarpages.
    Do the .java files have to be compiled to .class files in the folder they wil be accessed ?
    If this is the case how are .java files compiled in a remote server?
    Any help very much appreciated .
    Thanks
    Jim Ascroft

    Hi there,
    I am using Tomcat on my home server and Lunarpages my web host uses Resin. I have not heard of resin and dont know if this would make any difference. All the folders and imports are ok on Tomcat at home and they are set up withy the same structure on Lunarpages.
    Any thoiughts ?
    Regards
    Jim Ascroft

  • I'm trying to import photos from my iphoto library, but keep getting a message saying I cant import from 7.1.5, that I need to upgrade to 7.1.5 or later.  But I have version 8.1.2.  I don't know what to do. I've been able to import in the past.

    I'm trying to import photos from my iphoto library, but keep getting a message saying I cant import from 7.1.5, that I need to upgrade to 7.1.5 or later.  But I have version 8.1.2.  I don't know what to do. I've been able to import in the past.

    Sounds like an issue with the iPhoto Library
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Importing Class

    I was reading the tutorial on importing class's. This is what
    I read
    Importing classes
    To reference a class in another script, you must prefix the
    class name with the class's package path. The combination of a
    class's name and its package path is the class's fully qualified
    class name. If a class resides in a top-level classpath
    directory--not in a subdirectory in the classpath directory--then
    its fully qualified class name is its class name.
    To specify package paths, use dot (.) notation to separate
    package directory names. Package paths are hierarchical, where each
    dot represents a nested directory. For example, suppose you create
    a class named Data that resides in a com/xyzzycorporation/ package
    in your classpath. To create an instance of that class, you could
    specify the fully qualified class name, as shown in the following
    example:
    var dataInstance = new com.xyzzycorporation.Data();
    My Question is about com/xyzzycorporation/ . would the full
    class parth be c:/com/xyzzycorporation/ . Why do they never state
    the drive letter when teaching about directories.

    Because there is no need. you don't need to reference the
    drive letter.
    Here's the basic jist of what they are saying....
    Single Class File...
    If you create your own custom class and want to use it in
    your flash file, save it into the same directory as the fla file
    and call the classes constructor. By default flash will look inside
    the folder where the fla resides in for the class files if it
    cannot find it inside the default directory.
    Multiple Class Files - 1 Project (often referred to as
    packages)
    Use your qualified domain name but backwards.....
    my domain is www.sd-dezign.com so if I was going to include a
    package of utility class files in my document I would do the
    following
    Create a folder in the same folder with my fla name it com
    and inside that a folder called sddezign and inside that utils and
    all my as files would be in there...the folder structure might look
    like this....
    myfile.fla
    com
    >sddezign
    >>utils
    >>>box.as
    >>>circle.as
    To call the constructor for each class, I have two options.
    The first which is by far the easiest looks like this
    In whatever frame you need to call that class constructor
    include "com.sddezign.utils.*";
    var myBox:Box = new Box();
    The second method requires more typing and can get tedious
    var myBox = new com.sddezign.utils.Box();
    Hope this helps you a bit better.

  • Not allowed to import classes without package names?

    Hi,
    I have a few questions on Packages and importing?
    1. Is the following true that it is illegal to import classes in the same package as the current class, will this cause a comilation error? If this is the case where in the Java Language specification is this actually written as I could not find it?
    2. This has probably been answered by question 1 but if I have 2 classes in the same package and if I import 1 of the classes into the other class, is it illegal to import it by just using the class name and not the package name as well, ie
    if the package name is ie.tcd
    and the 2 class names are exp1.class and exp2.class, can I do this in class 2
    package ie.tcd;
    import exp1;
    public class exp2 {
    3. Is it illegal to import classes that are not explicitly part of any package or must a class be part of a package to be imported. I read somewhere that while this was always illegal it is only after jdk 1.4.2 that this is being enforced? If this is the case where in the Java Language specification is this actually written as I could not find it either?
    Thanks very much for any help,
    John

    Was just also wondering, 1 other thing, I am looking
    at someone elses code they have 2 classes (Class A
    and Class B) in the same package (pkg). The person
    imports class A into B:
    package pkg;
    import A;
    public class B {
    Is this legal code (or was it ever)?Not if A is really in pkg.A. If there is an A in the unnamed package it was legal, or at least it was understood by the compiler, and now it isn't (to both).
    Can you import or is there a point in importing a class in the same
    package?Only by naming the package in the import statement. If the current and the import statement are in the same package the import is redundant.
    If there is a point would you import just be
    using the class name (this would be illegal after jdk
    1.4) or should you use the whole package name even
    though it is in the package anyways?As I understand it you must always use the whole package name in imports.

  • Sony HDR-XR520, cant import into FCE 4.1 on my iMac

    Can anyone help? I have just bought this new AVCHD camera and when I open FCE log and transfer wont work. Doesnt recognise the camera at all. I have also copied over the folder of the camera but the files appear dimmed out and cant import that way either.

    Hi Tom, I am using the 1920x1080 (60i) codec setting. I have had a play around with the others but same result. Have tried the add folder, top level but wont import, it just keeps going through the levels and at the end they are dim.
    This model has not been out long and has built in GPS. I wonder if FCE is incompatible at this stage? Shouldn't be but have run out of ideas!

  • Compilation Error for import classes not found in generated Proxy Class

    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

    Hi,
    I resolved the other errors by changing all references from com.bea.jcom.Variant
    etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
    package.
    Thank you all anyways,
    Regards,
    rahul
    "Rahul Srivastava" <[email protected]> wrote:
    >
    Hi,
    We are generating java classes for the COM dll using JCOM com2java compiler.
    We are getting a compilation error for import class not found when compiling
    the
    generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
    class that
    the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
    or com.bea.jcom.Param. These are interfaces or data types or classes used
    by COM
    library.
    I added weblogic.jar to my class path and the only Dispatch class i found
    inside
    the weblogic.jar is com.linar.jintegra.Dispatch;
    We have com objects for which we want to develop an EJB client to interface
    with
    the COM object using JCOM with Native Mode disabled.
    Any help on the compilation error..I tried changing the extends for Dispatch
    to com.linar.jintegra.Dispatch
    but the other errors are still there.
    To begin with, I think the generated code should not refer to any of the
    COM data
    types.
    Any help please.
    Thank you in advance,
    Regards,
    Rahul Srivastava
    [email protected]

  • Cant import my photos on pc

    hi I'm having trouble syncing my iPhone 4 to PC running windows 7. Since updating to the latest version of iTunes and updating to ios5 I cant import my photos when I plug in my iPhone it says in iTunes that it is syncing and it goes through the 8 steps showed in the status bar in iTunes including the importing photos stage. but my photos are still not appearing on my computer. before the update when I plugged in the phone windows popped up a window importing photos and would do it automatically . I would  appreciate any help as this is driving me up the wall!!!! again thanks in advance

    I would caution against "always do" and leave it uncheced. Otherwise when you connect iPod etc device it may not - did not for me - show up in iTunes anymore. That is more of a warning.
    I would though consider backup, uncheck all the content you do sync, and resetting. And then sych media content back - one at a time, until you have it the way you need to.
    Maybe even remove aside the iTunes backup data and do a fresh backup iPod to iTunes first.

  • Inner class vs. imported class

    Hi everyone,
    I have entitiy beans created for a client's web app I'd like to use in the
    web service using WebLogic Workshop 7.0. Say the classes are imported like
    this in the services:
    import com.hoike.clientname.ap.bean.Invoice
    import com.hoike.clientname.ap.bean.Vendor
    Instances of these classes are used in callback methods and some of the
    service methods.
    When I generate the CTRL file, it actually adds those imported classes as
    inner class of the service defined.
    The problem is that when I try to used these services from another service,
    I cannot use the imported classes (as Invoice or Vendor), but instead I have
    to use the inner class (InvoiceService.Invoice or VendorService.Vendor)
    Does WebLogic Workshop 7.0 only allow you to use inner classes? Is there a
    way to use custom classes as method parameters?
    Thanks in advance!
    Makoto

    how do you declare your inner class?
    Is it (public)
    public static class MyInnerClassor (private)
    private static class MyInnerClassor (package)
    static class MyInnerClassor (protected)
    protected static class MyInnerClassTry to change the way you declare the inner class. Use protected or package or public instead.

  • Problem importing classes and beans

    Hey there. Im having one major fustrating problem! When I code supporting classes and beans for my JSPs I get a code 500 internal server error when trying to import (via <%@ page import="class" %> and <jsp:useBean/>) Im storing my classes and beans in the WEB-INF folder and the calling JSPs are located in /ROOT/tests/8/jsp.jsp. Im using the following to import a class or bean:
    <%@ import="aClass" %>
    Seen as tho its in the WEB-INF folder I won't have to explicitly refer to where the class is located, just the class name.
    I never had this problem when I was using my hosting service. Its only on my localhost server in which I get the Internal Server error.
    Help appreciated, thx.
    PS: Im quite new to JSP/Java Servlet.

    import (via <%@ page import="class" %> and
    <jsp:useBean/>) Im storing my classes and beans in the
    WEB-INF folder try put your class file in WEB-INF/classes.
    or first put bean in the package, like WEB-INF/classes/packagename/beanclass
    in jsp page:
    <jsp:useBean id="Mybean" class="packagename.beanclass" scope="request" />
    Question: is /ROOT a context entry in your server.xml?
    Which JSP Container (version) you use? Maybe your localhost server's set up is different with your hosting.

  • Hi, new to 3D, doubt in importing class

    hi all,
    i m new to JAVA 3D, i currrently hv a simple example source which i try to compile it, it just can't, saying that class not found, but i m sure i hv download and install the JAVA 3D for DirectX 1.3.1, also i hv the following code
    import java.applet.Applet;
    import java.awt.BorderLayout;
    import java.awt.Label;
    import java.awt.GraphicsConfiguration;
    // below having importing class problem
    import com.sun.j3d.utils.applet.MainFrame;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import javax.media.j3d.*;
    import javax.vecmath.*;can anyone guide me, thank you

    That is the way I understand it. Here is the information from the documentation.
    The version of the Export utility must be equal to the version of either the source or target database, whichever is earlier.
    For example, to create an export file for an import into a later release database, use a version of the Export utility that equals the source database. Conversely, to create an export file for an import into an earlier release database, use a version of the Export utility that equals the version of the target database.
    In general, you can use the Export utility from any Oracle8 release to export from an Oracle9i server and create an Oracle8 export file.
    Then further down is this handy table:
    Table 21-5 Using Different Releases of Export and Import
    Export from Import to Use Export Release Use Import Release
    10.1.0 9.0.2 9.0.2 9.0.2
    So, that is the way I understand this. I have not done this, but this is how I undertand it to work.
    Please correct me if I am wrong.
    Thanks
    Dean

  • Cannot import classes

    I have one class calling another, like this:
    import CloseWindowListener;
    import DatabaseSearchControls;
    import java.awt.event.*;
    public class DatabaseSearch {
         public static void main (String[] args) {
              DatabaseSearchControls frame = new DatabaseSearchControls();
              frame.addWindowListener ( new CloseWindowListener() );
              frame.show();
    I get these errors when I compile DatabaseSearch:
    C:\Documents and Settings\Korbel\My Documents\benmay\DatabaseSearch.java:9: '.' expected
    import CloseWindowListener;
    ^
    C:\Documents and Settings\Korbel\My Documents\benmay\DatabaseSearch.java:10: '.' expected
    import DatabaseSearchControls;
    The other 2 files complied correctly and are in the same directory. Anyone ever seen this and know what I am doing wrong?
    Thank you!

    Are you compiling with version 1.4? If so, it is now invalid to import classes that don't belong to a package. It is not necessary to do so anyway, so just remove the import statements. Better yet, follow the Java standard and put each class you write into a named package, using the package statement.

  • Importing classes confusion AS3

    I must admit, I don't know Actionscript 3.0 extremely well but I know my way around it and am able to get by as a designer.
    I'm just wondering if classes should ALWAYS be imported. The reason I ask is because sometimes I don't import classes but my Actionscript still works without any problems.
    Just wondering if anyone could shed some light on this please?
    Thanks

    Are you using custom classes? If so then all of the ones you use will be required.
    So suppose you have in your code:
    var myInstance:SomeClass = new SomeClass();
    Then at the top you should add
    import com.mydomain.somePackage.SomeClass;
    Or if you are using packages like TweenLite or such. Even if you have added that to your classpath and it works without the import statement, it would be a surprise if you move it to another machine that doesn't have that installed.
    And of course the best way to find out is to have a problem where something goes wrong. That is really all that separates the noobs from the "pros" -- we have made a lot more mistakes than you've even thought of yet!

  • Importing classes... HELP!!!

    I'm using JBuilder Enterprise Edition...
    I open a .java file to edit and recompile to test my edit...
    However I keep getting errors that classes imported in the ,java file do not exist...
    I know they do, because I copied them locally to the folder where all the filess I need are located...
    The .java files that compile into .class files are read-only (there are over 100 of them)
    I've pulled them from a server to my local machine...
    Even if I check them out in Visual Source Safe, I still get errors that the imported classes in the source code do not exist...
    how do I fix this issue?

    Looks like I had a copy of JBuilder installed after all. So I selected Project-> Project Properties select the Paths tab then the Required Libraries tab (lower tab), hit the add button, then hit the new button. Fill in the library name and select project to hold the library. Then search your disk for the jar or the directory that contains your classes. Then hit OK a few times.

Maybe you are looking for

  • The simplest way for plsql procedure to return multiple rows

    Hi, What is the simplest way for plsql procedure to return multiple rows (records). There are many combination of ways to do it but I am looking for a solution that is appropriate for plsql beginners. Many solutions use cursors, cursor variables, col

  • How to send email using pl/sql containing the result set as the msg body

    Hi.. im using Pl/SQL code to send emails to the users from a dataset that is obtained in a databse table. i have used utl_smtp commands to establish the connection with the smtp mail server. im stuck at the logic when i have to include the message bo

  • Installing CS3 with Windows 7, 64 bit

    Re: Installing CS3 in W7 home premium The installations stopped and asked for adobePDF.dll on windows vista CD ROM path C;\program files(x86)\adobe\acrobat 8.0\acrobat\xtras\acrobat pdf\i386\ I'm doing this installation in windows 7 home premium. Wha

  • Calibrating my monitor with other monitors

    I have calibrated my monitor so that output to my personal printer is spot-on. But when I give a CD of digital images that look good on my monitor to someone else, they look washed-out on his/her monitor. Is there a way to standardize monitors, LCD o

  • Wireless Mighty Mouse Disc

    I left my install disc in a hotel room in San Francisco. I can not find the drivers for the Wireless Mighty Mouse anywhere on Apple's site. Do I have to buy another mouse just to get the drivers? Why doesn't Apple have the option to download them? Am