Class can't find anothe class in same directory.

Hi
I'm using javac and appletviewer and I keep getting this strange reaction.
I've got a couple of classes, one extends the other. ie:
class a
class b extends a
Now when I compile b it says it cannot find class a. Both of these java files are in the same directory. Class a compiles fine on its own but I can't compil b.
Also, when compiling a with the statement:
package c
as the first statement and then trying to run the compiled class in the appletviewer, I get the following error:
java.lang.NoClassDefFoundError: a (wrong name: c/a)
The Applet window comes up but with applet not initialised.
Can anyone help with this? I purposely didn't put up the code because I figured it would be unnecessary.
Thanks
allan

Yep, that solved the compiling error. Thanks.
Any ideas about the applet viewer problem? Or where I can look for an answer?
allan

Similar Messages

  • Can I find another plug in instead of Adobes problem Flash player. Happy for any tip of an alternative.

    Adobe flash player has stop function. There is no way I can update it. Adobes update service say "the application already is running"
    So I got tired on trying.
    Now my question is - can I find another application so I can get Firefox Ok again.
    I need to watch my videos from the university.

    You don't have Flash installed, so it can't be running now.
    # Restart Windows.
    #Bring up Firefox, and install Flash from http://get.adobe.com/flashplayer/ but before you install, uncheck the Security Scan Plus. It has nothing to do with Flash Player and such additional baggage during installation is known as crapware. Only install the Flash Player.
    #If the installation does not start use "Ctrl+J" to find the downloaded install and run it.
    #When the install actually begins in an installation window, bring Firefox down with "Alt+F" (File) > Exit.
    #If the installation does not proceed, then bring up the Windows Task Manager ("Ctrl+Alt+Del"), click on the "Processes" tab of the WTM and look for firefox.exe and plugins-container.exe and terminate if running.
    #When the installation completes, restart windows, then bring up Firefox
    #Check your Flash installation at http://www.adobe.com/software/flash/about/ to show that you have the latest Flash installed. (don't press the play now button).
    #Check all of your Firefox plug-ins at http://www.mozilla.org/plugincheck/

  • Cannot find class in same directory during compilation

    hi
    i have two file hello.java & hi.java in same directory having simple println statements.
    hello.java
    public class hello {
      public static void main(String[] args) {
        System.out.println("hello");
        new hi();
    }hi.java
    class hi {
      hi() {
        System.out.println("hi");
    }hi.java has compiled
    but when i try to compile hello.java i get error saying "Cannot find symbol class hi"
    i've tried giving classpath pointing to current directory during compilation as
    javac -classpath . hello.java
    but this also does not work.
    Please let me know if i am missing anything?
    thanks in advance...

    The javac compiler uses the Classpath to find classes. If your directory structure is c:\myjava\buron\doeacc (for example) then you need to have c:\myjava in the Classpath when you compile. For example javac -classpath c:\myjava MainFrame.java

  • Unable to use class in same directory

    I am not really new to java. But havent worked with these environment variables for a long time. I am not able to use my public classes in the same directory. I know it is perfectly legal but I am not able to solve the problem. My environment variables are set fine as I can even import org.xml.sax.* an other classes.
    Would appreciate a quick reply.
    Thanks

    solve the problem. My environment variables are set
    fine as I can even import org.xml.sax.* an otherDoesn't mean anything, they're not found using the CLASSPATH. You should set this variable in your system environment to either containg nothing or at least a dot "." if you want to use the current directory. Alternatively, use the -classpath argument.

  • My external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive. Same thing has happened with Final Cut Express.

    My new LaCie external hard drive is 'seen' by my iMac and I can go into the Finder and open files and folders. I am using the hard drive for Time Machine back up. However Time Machine says it can't find the drive.
    The same thing happened recently between Final Cut Express and my other LaCie external hard drive used as the Scratch disk. It fixed itself.
    I've run out of ideas. Help would be very much appreciated. Thanks.

    have you done some searches on FCPx and time machine? Is there a known issue with using a TM drive with FCPx? dunno but ...wait...I'll take 60 sec for you cause I'm just that kind of guy....   google...." fcpx time machine problem"  Frist page link 
    http://www.premiumbeat.com/blog/fcpx-bug-best-practices-for-using-external-hard- drives-and-final-cut-pro-x/
           You cannot have time machine backups on your hard drive if you intend to use it in FCPX.
    booya!

  • 1 user can access inernet, another user on same computer cannot

    I can access the internet, another user on same computer gets the message "connection was reset"

    This article should be of help: http://docs.info.apple.com/article.html?artnum=93195

  • My Back arrow is missing from my Firefox toolbar and I can't find another way to go back. How can I get it back?

    My "Back" arrow disappeared from my Firefox toolbar and I can't find a way to go back to a previous page. How can I get it back on?

    Hey kayo410,
    Sounds like they might have accidentally been removed from the toolbar. The toolbar can be customized pretty extensively, so it's not an uncommon mistake. Take a look at the Knowledge Base article [[Back and forward or other toolbar items are missing]]. It will show you how to restore the buttons.
    Hopefully this helps!

  • Where can I find another retaining cpu bracket?

    I forgot to remove the top and bottom brackets for the cpu when I sent my motherboard back for replacement.  Where can I get another?  Thanks

    Quote
    Originally posted by squinty
    ack!  It didn't come with the metal plate that goes underneath.  :(
    It should, since the one that came with my Zalman was slightly different than the stock MSI metal plate.  I don't think the Zalman would attach properly if you didn't use the metal plate that should have came with it.

  • JavaBean Can't Find Another JavaBean

    I have a JavaBean -- ProcessLogin.java, that handles a the login process, it reads the username and password and verify them against the database. It is located on my hard drive directory
    C:\jakarta-tomcat-4.0.3\webapps\examples\WEB-INF\classes\login
    Now I want to access the database using connection pool. So I created another JavaBean -- ConPool.java, I compiled it and the class file (ConPool.class) was generated. These two files are located in
    C:\jakarta-tomcat-4.0.3\webapps\examples\WEB-INF\classes\dbcon
    So I added the following statements to ProcessLogin.java
    import dbcon.*;
    ConPool cp= new ConPool();
    When I recompile ProcessLogin.java, I get the following error
    ProcessLogin.java:59: Class login.ConPool not found.
    Why did this happen? Your help is appreciated.
    Jingkun

    I also have this problem so I added the class
    directory to my classpath and it will solve the
    problem. Any other people have a solution? Other than
    adding the path to the classpath?Building a J2EE webapp, even a small one, is such a delicate process with all kinds of class loaders and dependencies, that it can be really helpful to use a build script. Check out Ant, a utility designed specifically for this purpose:
    http://jakarta.apache.org/ant

  • DS sends updates to DB only in commit (can't find modified data in same TX)

    Hello experts!
    We have a physical data service mapping a simple Oracle database table. When we update one record in the database (invoking submit on the DS), and use a function in that same dataservice to get the refreshed record, the updated column comes with the OLD value. But after the transaction ends (we isolated this is a simple JWS), the database gets updated.
    The most strange fact: we also did a test using another Data Service to do the update, now mapping a stored procedure to do the updates (without commits in body). Then the test works fine.
    The conclusion I can reach is DSP is holding the instance somewhere after the submit() and is not sending it to the database connection. I understand that the commit is not performed, but if I do a query in the same TX, I should see my changed, shouldn't I?
    We use WL 8.1.6 with DSP 2.5.
    We´d appreciate very much if yuo guys could help.
    Thanks,
    Zica.

    Let me get your scenario straight
    client starts a transaction
    client calls submit to update a data services
    client calls read to re-read the update value (does not see update)
    client ends the transaction
    If you read now, you will see the update
    And you're wondering why the first read doesn't seem the update values?
    By default, ALDSP 2.5 reads are through an EJB that has trans-attrib=NotSupported - which means if you do a read within a transaction, that transaction is suspended the call is made without any transaction, then the transaction is resumed. So this is one reason you don't see the read. To do the read via an EJB method with trans-attribute=Required. See TRANSACTION SUPPORT at http://e-docs.bea.com/aldsp/docs25/javadoc/com/bea/dsp/dsmediator/client/DataServiceFactory.html
    If you are using the control, the control will need to specify
    @jc:LiquidData ReadTransactionAttribute="Required"
    That is only part of the solution. You will also need to configure your connection pool with the property KeepXAConnTillTxComplete="true" to ensure that your read is on the same connection as your write.
    <JDBCConnectionPool CapacityIncrement="2"
    KeepXAConnTillTxComplete="true" />
    Then I have to ask - if your client already has the modified DataObject in memory, what's the purpose of re-reading it? If all you need is a clean ChangeSummary so you can do more changes (the ChangeSummary is not cleared when you call submit), you can simply call myDataObject..getDataGraph().getChangeSummary().beginLogging()

  • My Itunes Shows The downloads history...but when I try to play them it states it can not find the file.  (same computer for the last 2 years) and no issues. now 1/2 of my library can not be played (as it can not be found)

    When I try and re-download some of them from the ITUNES store...I get an error that the file already exists on the computer.  However, when I open Itunes.  The file can not be found.  This problem just started about 1 1/2 ago...prior to that did not have any problems...Help?  direction?

    You can move the folder to where iTunes expects to find it and that will work.
    Or you can attempt to fix one broken track by looking for it when prompted when you use Get Info or attempt to play. This often works if everything is in the standard layout.
    Or you can repair things with my FindTracks script.
    tt2

  • As I updated ios6 on my iPad 3 my YouTube icon is deleted and I can't find to download the same please tel what to do

    Please can you help me with my iPad YouTube the icon is missing

    I also had same issue. After upgrading OS to V 6 i was missing Youtube ICON. After searching internet for 4 hours i came across below post which helped me to get youtube back to my iPAD. I have posted link below. Hope that post will help you as well.
    http://www.australia-bestmate.blogspot.com.au/2012/09/youtube-icon-missing-on-ip ad-and-iphone.html
    Cheers

  • How can I find anothe IPhone ( my daughter) how could I add her number to my find my iPhone account or using my Apple ID and account. Basically how could I add more then 1

    I would like to know if I can have more then 1 line on find my I phone app. Basically I need to locate my teenage daughter and if she is telling the truth where she is at. How can I add her number on my app obviously with my apple id and passcode. And do this from my device?

    You can download Apple free Find My iPhone app.
    Click this link: https://itunes.apple.com/au/app/find-my-iphone/id376101648?mt=8
    With that you can use your daughter Apple ID & password to locate her iPhone.
    You can of course locate any other Apple devices.

  • I have an older version of Photoshop...3.5... I bought a new computer and it will not load. Can I get another of the same version? or do I have to buy a new one?

    I have an older version of Photoshop...3.5.  I bought a new computer and what I have will not load. I love this version. Can I get a new cd that will load into Windows 7? or do I have to buy a complete new program?

    No CD, but you can download the installation files if you have the serial number, and the previous install has been deactivated
    https://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html
    or
    Download Adobe CS5.5 Trials: Direct Links (no Assistant / Manager) | ProDesignTools
    If you are unable to deactivate the earlier installation, you wil need  to phone customer support and ask them to reset your activations.

  • Where can I find out of the box Directory (LDAP) Server Stress Testing Software?

     

    You can download the iPlanet Directory Server Resource Kit 5.1 from http://wwws.sun.com/software/download/developer/5175.html which contain some stress tools...
    Or you can check DirectoryMark from MindCraft (Directory Server benchmarking tool)
    Regards,
    Ludovic

Maybe you are looking for

  • Set a "mobile" scroll behaviour to a scrollable List on a desktop app

    Hi, We're looking for some help on a Flex 4.5 AIR app deployed on a touch desktop environment. We're developping a kind of a kiosk app originally made for desktop machines (mouse). Recently we've tested it on a touch screen used with a stylus or fing

  • Animating a dvd menu

    hello everyone, Im currently working on a dvd project and i was wondering...i need to do a layout for the main menu where Planets are the buttons to different menus. but instead of havin the menu static..when u switch buttons the planets rotate to th

  • Crystal report viewer Toolbar

    I am developing reports on Crystal Reports XI R2, VS.NET 2005 , SQL Server 2000, C#. When i run the report it generates the report fine but after a minute when I click on the toolbar either for print or export or drilldown or search or zoom or group

  • Keychain won't turn on!

    My Keychain was not syncing between my mac and iphone, so I turned the it off from my phone. The problem is, Keychain won't turn back on!! Help please!

  • CIN effect that global template

    Dear CIN experts, I need CIN experts advise on query as mentioned below, -Suppose if i have global template in a project implementation or rollout and now i want implement SAP for country India,here how CIN will effect that global template in SD poin