Can't compile files! Please help.

Hi people,
I've posted before mentioning that I can't actually compile any files on my work PC. The machine is Windows 2000 (SP4). I downloaded the latest JDK. Here is what I set my Environment variables to:
User variables to:
Variable: Path
Value: C:\Program Files\Java\jdk1.5.0_04\bin;
System Variables to:
Variable: Path
Value: C:\Program Files\Java\jdk1.5.0_04\bin;
I have also created a directory where i would like my java work to go into. It's called C:\myjava . I put things in the myjava folder. When i go into the command prompt, and go into the directory myjava, and i type javac name_file.java i get:
error: cannot read ..... .java
Here's one example:
class MyFirst{
public static void main(String[] args) {
int sum = 0;
for (int current = 1; current <= 10; current++) {
sum = sum + current;
System.out.println("Sum = " + sum);
I compile it by doing javac MyFirst.java and I get that error.
Please can someone help me?!
Thanks
Yash

error: cannot read ..... .javaThen you don't have a ..... .java file in that directory, contrary to your belief. Or at least if you do have one, it isn't readable due to some kind of rights issue.
My guess: You created the source file with notepad, and it is actually named .... .java.txt and you have turned on the "hide extensions of known file types" option.

Similar Messages

  • How can maintain log file Please help Very Urgent.

    I am developping an application in PDK. From my application I need maintain a log file in the server side. Please help me how can I do this. If you do have links regarding this matter please pass it.

    You might want to use the SAP Logging API. see
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm">Logging and Tracing</a>
    In NWDS include a reference to logging.jar (use variable SAP_LOGGING_LIB_HOME).
    You can then write to the log in this way:
    public class Xyz {
         private static final Location TRACE = Location.getLocation(Xyz.class);
         // It is not nice to set the severity in static code - only for demonstration purposes.
         // For production-ready code this should be done via a log-configuration.xml
         // to allow configuration of the severity at runtime.
              TRACE.setEffectiveSeverity(Severity.ALL);
         public void myMethod() {
              final String METHOD = "myMethod()";
              TRACE.entering(METHOD);
              TRACE.debugT("whatever");
              TRACE.exiting(METHOD);

  • IChat can't send file, please help

    After updating to OSX 10.4.4 my iChat cannot send any file, but it allows me to receive it. When I try to send the message to another person, it shows that it is waiting for me to start and in a couple seconds later I would get an error message stating that the other person did not accepth the file.
    I have seen these problem around the forum, but yet any of them have been answer.
    Is it the new 10.4.4 that is causing it? Anyone with solution please help.
    P.S. I also tried open port 5190, but it is not working.

    Hi APT015,
    Ok.
    Most Connection devices come, as default, with DHCP turned on.
    This means the device (Linksys and Airports) are their own server giving out Addresses dynamically to your Local Network.
    As by default most devices have port 1-1024 open and not part of any methods to open them you tend to be able to add a whole bunch of DHCP server together and applications that use ports below the 1024 threshold can work (web browsing, Mail, FTP to upload Web pages to a server or download files)
    Having IP given out by different devices creates Subnets on your LAN.
    Because of the way routers in particular handle IP addresses given out by previuos devices your computer can recieve more than one IP address on the LAN (Although only one can be seen on the Mac)
    Pause.
    So you have several things to deal with here.
    1) The Mac Firewall if it is On.
    2) The DHCP serving on your Network.
    3) The way the method you use of Opening the ports in one device effects the result of opening the ports on the other device.
    To Solve 1) look at the table on this page
    Also look at the instructions and Pics of the Firewall on this one
    To solve 2) do this:
    Open Airport Admin Utility found in Application/Utlities
    Log on to the Airport
    Go to the NEtwork tab
    Deselect "Distributing Addresses"
    Apply cahnges
    As this also turns of NAT in the Airport it adds to solving 3)
    For Finishing 3) completely do this:
    Type 192.168.1.1 in to your web browser like a page address
    Type Admin for both User ID and Password.
    Go to the Adminsrtaion tab
    Enable UPnP
    Save Settings.
    For other people following this go to http://portforward.com/routers.htm and follow the links to iChat and the Pics and Instructions for your modem.
    You should use this site to see if the Pics show where the UPnP is if your Modem has it, not to mention finding out the default IP address of the modem and the default User ID and Passwords.
    What this achieves is the modem is still doing DHCP to your Network. It is opening the ports by UPnP. The Airport is now basically a wireless access point. The Airport and computer now have IP addresses from the Modem only.
    Ralph

  • Can't Attach Files, Please Help

    I tried to attach some screen shots, I hit browse, click my doc, hit open, shows up C:\Users\Derek\Documents\Multisim 12 Screen Shots\Screen Shots.docx in the Attachments box. hit post. It disappears from the Att. box. If I hit post again it will just post my comments.
    Warm regards,
    Derek
    Solved!
    Go to Solution.

    Hello,
    If you try to do this then you'll notice that at the top you get a message.
    It reads:
    Please correct the highlighted errors and try again.
    The file does not have a valid extension for an attachment. jpg,gif,txt,xls,vi,zip,doc,llb,pdf,png,ini,wsp,rtf,lvproj,lvlib,cfg,ppt,pps,csv,ms10,ms9,ms8,ms7,msm,prz,cir,ewprj,gbr,seproj,ms11,mp11,ms12 are the valid extensions.
    Kind regards,
    Miguel V
    National Instruments

  • I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can

    I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.

    Read this: iOS 4: Updating your device to iOS 5 or later
    ... oh I think it is a 3gs or a 3
    This makes a difference. What does it say in Settings > General > About?

  • HT3964 I just opened up my MacBook Pro after a few days of not using it and it was frozen. I turned it off and back on and all I see is a white screen, there was a file with a question mark flashing for a bit but I can't do anything, please help me!!

    I just opened up my MacBook Pro after a few days of not using it and it was frozen. I turned it off and back on and all I see is a white screen, there was a file with a question mark flashing for a bit but I can't do anything, please help me!!

    Jerricayoung,
    you have a 13-inch Mid 2012 MacBook Pro. It’s modern enough that it supports booting into Recovery mode. To do so, hold down a Command key and the R key as you start up. It should eventually show a Mac OS X Utilities menu. Select Disk Utility from that menu; when the Disk Utility window appears, select the bootable volume from the left-hand side of the window. (It’s typically called “Macintosh HD”.) When the volume is selected, some buttons will appear on the right-hand side. If it’s not greyed out, press the Verify Disk button; if it is greyed out, or if it reports on errors that it found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu; that will restart your MacBook Pro in its normal mode. With luck, that will be enough to get you to your normal login screen, rather than the white screen.

  • A previous and unrelated text always appears when I need to send a new text. This prevents forwarding texts also, which I need to do all the time for my business. How can I fix? Please help!

    A previous and unrelated text always appears when I need to send a new text. This prevens forwarding texts also, which I need to do all the time for my businss. How can I fix? Please help?

    Hi,
    This sounds like it is about Window positions.
    iChat has Default places for Incoming Invites.
    Video is always top Center of your Screen
    Audio and Text chats are Upper right with the Audio slightly lower than Text Chats.
    Secondary invites are sort of Stacked like when you open multiple files from the same App.
    Your outgoing Windows are "Remembered" as to where the last one was when you used it.
    This can be an issue if you use your Mac with a second display and turn Off Mirroring.
    You windows can get "left" on the other screen.
    Go to System Preferences > Displays and turn On Mirroring and the windows should come back to one Screen/display.
    If this does not help go to your Home Folder/Library/Preferences and delete (Drag to Trash) com.apple.ichat.plist and restart iChat.
    Unfortunately you will need to reset any iChat Preferences you have changed from defaults.
    10:42 PM      Tuesday; April 26, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
    , Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Illustrator CS4 wont save files, please help?

    You can edit a file, go to save, close it down, then when you re-open it the changes made have not been saved?? No error message or warning pops up, and it all looks ok like it has saved properly, until you open it up again. This also happens when you use 'save as' command if you use the original file name. If however you type in a different file name - it saves ok. But obviously that is not great as you cant now trust or rely on the save mechanism of the programme, to make sure any changes to artwork have been stored!! I have never seen an issue like this, it is worrying, I hope somebody can help?
    Thanks.
    We are running CS4 on windows7 - yes PC!!!

    We save in EPS, and its not just one file, its a variety of different files and it seems to be random as to which files it does it on, some work fine - some don't. And it can be anything from a minor text change to a colour change, it doesnt seem to matter on the change made, it reacts the same.
    The files are saved over a network connection to a large external hard drive.
    Its really puzzling and now starting to cause problems as we do a fair bit of work in it, and can't trust one of the most important features, and that any changes that have been done have been saved and stored!
    Hope maybe you can help with any thoughts at all.
    Cheers.
    Date: Thu, 24 Jun 2010 03:41:40 -0600
    From: [email protected]
    To: [email protected]
    Subject: Illustrator CS4 wont save files, please help?
    What file format do you save it in?
    What kinds of changes did you make in that file?
    Where do you save the file (removable or network media)?
    >

  • How to view corrupted word files, please help?

    Can't view doc corrupted file .How to recover unsaved documents WORD? how to view corrupted word files, please help

    It could be Word or even Windows that is having the problem. Before you start trying to restore a backup or repair a file, try opening other documents.
    Try opening your "corrupt" document from another computer. Also you can try to make a copy of corrupted files. (It could work) : http://www.filerepairforum.com/forum/microsoft/microsoft-aa/word/968-i-would-be-grateful-for-any-help-to-repair-or-the-procedures-word-files
    But if nothing helps, you can try to recover it by using DOCX Viewer Tool Download free demo versions of this software from website: http://www.docx.viewertool.com/ It’s
    gonna help.

  • Lost unsaved Garage Band File - PLEASE HELP

    Lost unsaved Garage Band File - PLEASE HELP
    I had an audio file made on Garage Band but it was unsaved. I left my computer on at night and for some reason this morning my computer had seemed tor restart. I opened the garage band file but nothing came up.
    Is there any way I can recover this 'unsaved file'? It must be stored in cache somewhere.
    Someone please advise.
    Thanks.

    I would just like to say Thanks to HangTime up there. This trick worked 100% ... I had recorded 8 or 9 rather long tracks; for an unexpected reason (first time I've ever seen the "gray screen of death") the popup window came up and in several languages told me I needed to restart the computer; did what it told me to, begrudingly. Came back online, opened the GB file, nothing was there. Yet, when I checked package contents for the file (which I didn't even know existed, compartmentalized "Media", until after reading this), there were the tracks! I owe you both for getting this up and running... album creds just may be in line. ~Matt

  • TS3992 I got a problem in my ipad2 due to "icloud backup message". I can't open my unit and am worried that I can not use my ipad anymore. What can I do. Please help me.   Thank you & GOD BLESS!

    I got a problem in my ipad2 due to "icloud backup message". I can't open my unit and am worried that I can not use my ipad anymore. What can I do. Please help me.   Thank you & GOD BLESS!

    Try to reset it. just press hold the on/off botton (ignore the red slider) just hold it then the ipad is automatically reset. dont worry about your file, there nothing happen to it. Godbless.

  • I have paid for Creative Cloud - illustrator CC 1 year monthly plan, but it still show "Trial Expired". I have tried to sign in and sign out creative cloud many times, but still can't work. Please help!

    I have paid for Creative Cloud - illustrator CC 1 year monthly plan, but it still show "Trial Expired". I have tried to sign in and sign out creative cloud many times, but still can't work. Please help!

    Does your Cloud subscription show on your account page?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    Also,
    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • My itunes will not work at all. i have deleted and reinstalled in over ten times, i have ended the process, i have reinstalled quicktime i few times, i have deleted many folders. What else can i do? Please help:(

    My itunes will not work at all. i have deleted and reinstalled in over ten times, i have ended the process, i have reinstalled quicktime i few times, i have deleted many folders such as TEMP, itunes helper et What else can i do? Please help:(

    Now it sometimes keeps coming up and working but once i plug an ipod in it freezes my whole computer up and no i dont get any response from itunes at all

  • My iPhone 5 won't stop scrolling through songs and I can't stop it please help !! :(

    My iPhone 5 won't stop scrolling through songs and I can't stop it please help !! :(

    settings - general - usuage - music - delete.   Then do a reset, hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    Then sync the music back via iTunes.

  • I forgot my icloud account and my email how can i recover it please help me icloud maker and icloud password and username holder

    i forgot my icloud account and my email how can i recover it please help me icloud maker and icloud password and username holder

    If you don't know your ID, you can try to find it as explained here: http://support.apple.com/kb/HT5625.  Then you can reset the password as explained here: http://support.apple.com/kb/PH2617.  Of course, you can only do this if it's your ID.

  • HT5624 My wife and I share the same apple id, we just updated our iphones. When we were asked if we wanted to share the same apple id for icloud we said yes, now our phones can't face time, please help?

    My wife and I share the same apple id, we just updated our iphones. When we were asked if we wanted to share the same apple id for icloud we said yes, now our phones can't face time, please help?

    Read http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    If you wish to share an Apple ID with family members then read: http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/

Maybe you are looking for

  • Why am I getting an error message when trying to replace existing music on itunes

    How do I stop the error message from showing up when I try to replace existing music on my iTunes?

  • Macbook Pro to Projector issue. Please help.

    Hey now. I have been watching tv via a projector using my macbooks for years now. Today all of a sudden it doesn't work anymore. I don't know if it has to do with an apple update I downloaded. Curiously, I can see my computer's wallpaper through the

  • New muvo txfm can't drag files to

    when i plug my muvo into my usb my computer recognizes it as removable dri've but when i try to drag files to it, it tells me to insert disk into dri've so i thought maybe i needed to format and i get the same message any suggestions

  • Vinyl Scratching Loops

    Not a lot of them in LE8 and was wondering if anyone could recommend some downloads or software that has a good mix of scratching samples. Also, are there more of them in Logic Pro 8? Might be better just to upgrade if that is the case. Working on a

  • Proxy for base class

    I attempted to write a proxy for a base class on an Entity today and got an error saying this wasn't supported. Are there any plans to support this in the future? Trevor