Help with a compile error message

Hello
The compiler reports " ReadTVFile.java:7: duplicate class: ....
It is only one file (and class) in my filesystem that is called this, so what can the message mean?
I might be doing something stupid :). This is how my program structure is:
The class ReadTVfile has a method: public ArrayList Dfile() {...}
In Main file: import com.JT.IO.*; //the ReadTVfile is in this package
ArrayList a = ReadTVFile.DFile();
Is this not valid?
My idea is to create several method to read files with. I have not created any objects of ReadTVFile since reading a file is no object. Maybe there is a better solution?
Much regard
JT

Hi
Please :) I dont have any pride in Java. As you can
read above, I apologized for my naming convention used
here, rewrote it for clarity and said ill do better
next time.
However, how does "you write confusing.. are you a VB programmer?"When I see someone who capitalizes method names it suggests VB, because that's the convention for that language. It's a fair question, because people who change from one language to another tend to write in the idiom they know until they learn differently.
"you dont know how to read compile messages, I do" help me solve my problem? The "I do" part certainly doesn't, but that came in the second note. The first time I told you read more of the stack trace comes from seeing too many new programmers who post a stack trace for something like a NullPointerException that tells them the class, the .java source file, and the line at which it occurred, AND THEY STILL CAN'T FIGURE IT OUT. I thought you were one of those.
Kariann
tried to solve it. Admittenly dufymo did help me
realize the importance of clarity in postings, but he
did not adress my problem. If he did, I dont
understand it, and I humbly ask you to clarify it for
me.Sometimes it's hard to pinpoint what someone has done wrong. Your post was one of those. There's very little information to go on from your original note.
If the class isn't too big, and there aren't too many of them, post all the code. Stack traces are good. Maybe some details about how you tried to compile and run the code, because screwing up the commands can be the reason for your problem.

Similar Messages

  • Can anyone help with the following error message?

    While installing itunes update 7.5 received message Error 1905 module c:\programfiles\itunes\itunesminiplaayer.Dl failed to unregister HRESULT-2147220472

    I noticed no one replied to your questions but was wondering what you found out. I had an ipod shuffle and just replaced it with a 3rd gen ipod nano. The new nano who not show up on my itunes so I went in to update it to the new version and received the same exact error message you did. Were you able to figure out a solution?
    Any help you can give would be greatful.

  • Can you help with this serious error message?

    I have Premiere Elements 8.  I tried to open some .prel that I have made and now I get this error message:   Projects created with Adobe Premiere Pro and Adobe Premiere Elements are not compatible.  Please use the appropriate application to open this project.  What gives??  Also, as usual, Premiere Elements 8 crashes after I have accomplished one lousy thing, so I have to constantly open project and save.  Now I can't even open a project.
    Thanks for any help you can give me.

    Holy cow! Something is seriously wrong here, lilthea!
    What model of camcorder is your video coming from and what format and resolution is it?
    What project settings did you select when you set up your project? (You can see them under Edit/Project Settings.)
    Version 8 was not the best version of the program ever produced. In fact, it was one of the worst, when first released. But if you downloaded the update (from Help/Check for Updates) and the rest of your system is stable, you should at least be able to edit video from a miniDV, HDV or even AVCHD camcorder.
    If you truly can't do ANYTHING without it crashing though, there's something much, much deeper going on that a bug in your program or its set-up. (This is why I need you to be as specific as you can about things!) If things are really that unstable, it could indicate malware or viruses or possible corruption of the operating system.
    I sometimes recommend a program that I use every week but that some people object to because it's Chinese software and has been accused of stealing virus definitions from other software companies. But it's got an easy interface. Just select Deep Care, click the go button and then select the option to clean. In my opinion, it makes your operating system as good as new. But there are some people who disagree, so that's my personal recommendation only.
    Download the free version from here:
    http://www.iobit.com/advancedsystemcareper.html
    What you're dealing with could be problems with your source video -- since I don't have enough information to say either way. But, assuming your video came from a miniDV, HDV or AVCHD camcorder and that you've properly set up your project to those specs, a tune-up using Advanced System Care might be worth considering.

  • Help with Encore CS5 Error Message

    When I try to load an Encore CS5 Project with Encore CS5 or CS5.5  I get this error message: Adobe Encore as encountered an error. [..\..\Src\Clip\VideoClip.cpp-276] I am running win 7 64x. Any help appreciated. -ed

    As well as the below, right click the Encore icon and select Run as Administrator... which fixes several "odd" problems
    Long File Names or odd characters cause problems
    Read http://forums.adobe.com/thread/588273
    And #4 Here http://forums.adobe.com/thread/666558?tstart=0
    And This Message Thread http://forums.adobe.com/thread/665641?tstart=0

  • Help with "Testing Failed" Error message in iWeb09

    I bought the iLife 09 upgrade purely so I could publish to my own domain server. I have a MobileMe account and iWeb09 publishes fine there--no problems.
    My domain name is hosted on a Windows NT server. The admin is willing to help, but I was hoping someone could point me to documentation for this error:
    "Testing Failed.
    Unable to write to server. Verify your settings and try again."
    If I ftp to the site in a terminal window and do a put, I can write to the site. Obviously, I could at some point, because it servers the "dummy" page I put up, but I tested again in case my permissions had changed.
    I looked at the "Publishing to Windows-based FTP Server" but it does not seem to describe this error.
    BTW, I pay AppleCare for support, but when I tried to get support documentation from them, the tech said they "can't help" with this part of iWeb and hung up on me--the call lasted exactly 90 seconds.
    I am hoping someone out here will know where the errors are documented or will be able to help me figure it out.

    I waded through the posts for iWeb09 and came across a recommendation for Cyberduck (www.cyberduck.ch), so I tried a copy. Works like a champ. Unlike iWeb09, all I had to do was type in my server name, user name, and password to open the connection. Then I published my site to a folder in iWeb and uploaded the folder in Cyberduck. Cyberduck had no problem writing to the server.
    I still would love to know why iWeb can't write to my web server.

  • Help with printer driver error message after Yosemite upgrade

    Hi, I have a MacBook Air and just upgraded to OS X Yosemite Version 10.10. Following the upgrade, I am not longer able to print wirelessly at university. When I tried to reinstall the printer drivers, I got the following error message "The file /Volumes/InstallLibraryPrinter/.drivers/bizhub_C364_101.pkg does not exist". I do have access to IT support, but they were stumped by this error too. Do you have any suggestions for how to fix this, so that I can print again? Thank you for your assistance.

    Re: Can not print in Preview app
    may help - it shows where to download the 10.9 drivers.

  • I need help with an application error message

    AcroRd32.exe.- application error message appears. It states that   The instruction @"0x60006db6" referenced memory at "0x60006db6". The memory could not be "read". Click OK to terminate program.

    Please try to repair the Installation from control Panel-> Add Remove Programs-> Adobe Reader-> Repair.

  • ITunes help with syncing; many error messages, Help please!

    So, I have downloaded and re-downloaded the new iTunes 10.7 about a thousand times. Everytime I try to download, I get the message "rolling back" and then it starts up again and continues to download. Once downloaded, I plug my iPod touch 4th generation in and I get two pop-up messages: the first says "...mobile device is either not designed to run on Windows or it contains an error. Try installing the program again using the original installation or contact your system administration or the software vendor for support." The next message I receive is "iTunes requires a newer version of Apple Mobile Device Support. Please uninstall both Apple Mobile Device Support and iTunes, then install iTunes again." What am I doing wrong? Can someone please help? I would greatly appreciate it. I have been at this for about 4 hours and all I want to do is buy the new Red album and listen to it commuting to college.

    Let's try something relatively simple first. Restart the PC. If you're using Vista or 7, now head into your Uninstall a program control panel, select "Apple Mobile Device Support" and then click "Repair". If you're using XP, head into your Add or Remove Programs control panel, select "Apple Mobile Device Support", click "Change" and then click "Repair".
    Can you connect without the errors now?

  • Help with Disk Utility error message.

    I just ran the repair utility via the installation disk, and at first I got this:
    Checking HFS Plus Volume
    Invalid node structure
    Invalid node structure
    Volume Check Failed
    Error: The underlying task reported failure on exit
    1 HFS Volume
    1 volume could not be repaired because of an error.
    I ran it for a second time, and got the same message, only my Macintosh HD, which is listed at the side, had been renamed to disk1s2.
    I then ran it for a third time and got this.
    Checking HFS Plus Volume
    Checking Extents Overflow
    Checking Catalog File
    Invalid Node Stucture
    Rebuilding Catalog B-tree
    The Volume Macintosh HD could not be repaired
    Error underlying task reported failure on exit
    1 HFS Volume Check
    1 volume could not be repaired because of an error.
    What does all his mean? How can I repair my disk? My computer is acting up. The cursor turns into the coloured busy symbol at the slightest thing. It can stay busy for really long, preventing me from doing anything. I then have to shut down and restart. I've also received the flashing question mark when trying to restart.

    Paul Rybarczyk1 wrote:
    First of all, Dale, you gotta change your closing to these messages! "Cheers!" doesn't quite do it!
    I'm open to suggestions! I am tired of it now too!
    Anyway, why would everything be working OK before the update if my computer was so bad?
    That happens. Applying an update sometimes makes the problems more noticeable.
    Luckily, I managed do back up everything on my two external HDs with no problems.
    What kind of backup? If it's a clone, it will have the same serious error you have now; unless it was done a while back, before any issues were there.
    things seem to freeze up when I'm doing lots of multitasking.
    Because you have serious directory corruption.
    But maybe it's time for a new machine sooner than I planned?
    This is repairable by you. It's possible a piece of hardware, think bad RAM, could cause this directory corruption.
    Try running your Apple Hardware Test to see if it flags anything.
    Cheers! DALE

  • HT4993 I need help with an Activation Error Message on my Iphone 5

    Hi I am having Trouble with my IPhone 5
    It shows an Activation Error message

    The iPhone 5 says it can not connect to iTunes

  • Need help with the following error message...

    I just got a Shuffle for Christmas and was trying to download iTunes when I got the following message. FYI - I have a PC and the operating system is Windows XP:
    iTunesSetup[1].exe is not a valid Win32 application
    Anyone received this message before? I've looked around the troubleshooting section but am at a loss as to what to do from here...
    Thx

    I do have SR but hoping i can get quicker answer hereYou may always escalate the SR if you are not getting response timely. Anyways, give the reference of this thread in the SR and ask service engineer to file a bug.
    I will email you the wire messageI saw the wire message you mailed across. There are some junk characters in the starting of the payload and that's why parsing is failing. Most probably it is a BOM (Byte Order Mark). Ask your TP to send messages in UTF-8 encoding without BOM or any other junk character in the starting of the message. You may open the wire message payload you mailed across in notepad or textpad and you will able to see those junk characters in the starting of the payload.
    Regards,
    Anuj

  • Need help with a compilation errors

    Here is my code
    import javax.swing.*;
    import java.awt.*;
    import java.net.*;
    import java.awt.event.*;
    public class piratepanel extends JPanel implements Runnable
         int appletx = 500;
         int applety = 500;
         Image blackpearl;
         Image ship1p;
         Image ship2p;
         Image ship3p;
         Font font;
         Thread animator;
         Boolean running = false;
         public piratepanel()
              // Set background colour
              setBackground(Color.blue);
              setPreferredSize( new Dimension(appletx, applety));
              // Get game sprites
              blackpearl = getImage (getCodeBase(), "blackpearlf.gif");
              ship1p = getImage (getCodeBase(), "ship1.gif");
              ship2p = getImage (getCodeBase(), "ship2.gif");
              ship3p = getImage (getCodeBase(), "ship3.gif");
              // Game objects
              blackpearl blackpearl = new blackpearl();
              ship1 ship1 = new ship1();
              ship2 ship2 = new ship2();
              ship3 ship3 = new ship3();
              // Set up game font
              Font gamefont = new Font( "Serif",Font.PLAIN,28 );
              // Add action listener
              addKeyListener( new KeyAdapter() {
              public void keyPressed(KeyEvent e)
              { processKey(e);  }
              // initialise timing elements
              running = false;
         public void run()
    }And here is the command promt errors
    http://img171.imageshack.us/img171/3396/compilingji0.png
    What is wrong?

    The main advantage to using the old AWT and
    java.applet.Applet is that your code could run in
    browsers that only have an old, slow, buggy JRE
    plugin installed.For some reason I thought he was asking for the pros/cons of JPanel and JApplet...

  • Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError $true -CurrentV

    I installed Exchange Server 2010 inside my VMWare Windows Server 2008 Ent R2. And After successful installation  when I try to open my Exchange Server Console, I am getting the following error message. I am very new to Exchange server please help me
    to solve this problem.
    Initialization Failed
    The following error occurred while searching for the on-premises Exchange server:
    [win-.local] Connecting to remote server failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. It was running the command 'Discover-ExchangeServer -UseWIA $true -SuppressError
    $true -CurrentVersion 'Version 14.1 (Build 218.15)''.
    Thanks Vivek
    SharePoint Foundation 2010 Book
    http://www.redpipit.com

    Hi,
    Please have a look at the article below:
    Troubleshooting Exchange 2010 Management Tools startup issues
    http://blogs.technet.com/b/exchange/archive/2010/02/04/3409289.aspx
    Resolving WinRM errors and Exchange 2010 Management tools startup failures
    http://blogs.technet.com/b/exchange/archive/2010/12/07/3411644.aspx
    Besides, please run the cmdlet below:
     set-user alias -remotepowershellenabled$true
    Xiu Zhang
    TechNet Community Support

  • TS3694 Downloaded latest IOS 7.0.2 and it crashed my iphone 4. Now Ive got nothing and it wont restore when connected with Itunes cos Error Message 4005 comes up. Cant find it listed anywhere. Help

    Downloaded latest IOS 7.0.2 and it crashed my iphone 4. Now Ive got nothing and it wont restore when connected with Itunes cos Error Message 4005 comes up. Cant find it listed anywhere. Help

    Hi!
    It looks like there might be some security settings or software on your laptop that's preventing the restore process from working.
    Check out this article in Apple's support. It shows you the steps you can take to try to get around error 1611.
    Like diesel vdub said, a DFU-mode restore might give you success where a regular restore might not, so maybe you can try that.
    What you need to do is put your phone into DFU mode, which is a low-level mode that helps the restore process get a little more done, or it can help iTunes get around certain roadblocks (hopefully like the one you're experiencing!). Your computer will install special DFU-iPhone drivers for it, and then iTunes will see it as a phone that needs restoring.
    To get your phone into DFU mode:
    Plug your phone into your laptop.
    Turn the phone off.
    Press and hold the power/lock button. Keep it held in, even after the display turns on and you see something on the screen. As soon as you see something on the screen, start holding the home button as well as the power button, so that they're being pressed together.
    Keep both buttons pressed down for 10 seconds.
    After 10 seconds, release the power button, but keep holding home until the laptop sees a new USB device. Once you see that, you're in DFU mode, and you can let go of buttons. Your iPhone screen will be blank during it all, even though it's actually on, in DFU mode.
    Now your restore should work!
    If your phone shows the Apple logo or anything else while you're trying to get it into DFU mode, then something went wrong. Try the steps again. If it suddenly starts up normally again, try reducing the time to a bit less than 10 seconds--try reducing it by about a second at a time. It should work!

  • Interesting compiler error message

    Hi,
    i have the following fragment of code:
         public void setTheArmies(int attacking, int defending) {
              defending.setArmies(defending);
              attacking.setArmies(attacking);
              game.repaint();
         }defending and attacking are both of typr Country, the setArmies() method in class Country is as follows:
         public void setArmies(int a) {
              occArmies = a;
         }When i try and compile it, it comes up with the following error message:
    java:254: Can't invoke a method on a int.
    java:255: Can't invoke a method on a int.This is strange as im clearing using an integer as an argument for this method????? Can someone please help me.
    Thanks
    Cath

    you have variables named the same 'defending', one is an int, the other is an object.
    Hi,
    i have the following fragment of code:
    public void setTheArmies(int attacking, int
    defending) {
    defending.setArmies(defending);
    attacking.setArmies(attacking);
    game.repaint();
    }defending and attacking are both of typr Country, the
    setArmies() method in class Country is as follows:
    public void setArmies(int a) {
    occArmies = a;
    }When i try and compile it, it comes up with the
    following error message:
    java:254: Can't invoke a method on a int.
    java:255: Can't invoke a method on a int.This is strange as im clearing using an integer as an
    argument for this method????? Can someone please help
    me.
    Thanks
    Cath

Maybe you are looking for

  • Using Adobe 8.1.2 some PDF files won't print

    Since we've upgraded to the latest version of Reader, 8.1.2, some of the files won't print. For example, this morning I got two PDF files in the same email, they both opened in Reader, but only one of them prints--sending to a Canon ImageRunner 5570

  • (id).mov file conversion

    Hi.  I imported footage into FCP 10.1 and it has created (id).mov files.  I'd like to share some files with a non-FCP user.  I copied them to a new folder but it seems that each file has to be converted before Quicktime player can play them.  Is this

  • Getting started: making popup notifications that align to desktop corner?

    Hello, Using Flash CS3, I'm wondering how I would get started generating windows that align to the corner of the screen. I want to creat a small app that gets xml updates from basecamphq.com, and brings them to my attention. Getting and parsing the d

  • 2.3 or 2.6 quad core MBP?

    alright, getting the 15 inch MBP for christmas, I'll be upgrading the RAM and the HDD to an SSD in the months following, so the base specs aren't that important for me.  the big question is: should i stick with the 2.3 or the 2.6 quad core?  obviousl

  • ISO - tool to generate simple web application

    Hi, everyone, We have a client with two dozen legacy applications that need to be migrated to the web. They all have fairly simple business logic. All they really need is basically web access to the backend legacy databases. I am curious if there is