1st time compile not working

I am having a problem compiling my 'SimpleProgram.
It is saying 'cant read SimpleProgram.java. I have my sourcei in a dir called javasc. My compiler is in jdk1.3.1_01\bin. I can call javac and it comes up ok but cant find the source. If I do a 'set' command on the dos command line, I can see the dir javac first , then jdk1 bla bla. My file does have an extension of .java. I have changed my auto exec and searched the archives and still it won't compile. When I do a dir of javac the entry
for my souce code does hav a entry description of JAV on the left of the description. My earlier attempts had a type of txt on the left. Is this my problem... I have tried adding the -classpath and-sourcepath option to javac to no avail. I used
javac -classpath javasc SimpleProgram.java.
I am at wits end. Help!

I'm no expert with MSDOS, but the Path setting is where DOS looks for a .exe or .bat or other 'executables' when you enter something at the command line prompt. It is a MS DOS setting, not Java. If you can launch javac.exe without having to type in the full path to it, then your Path is set correctly. You will always need to specify a path to the source file(s) you want to compile, unless they are in the current directory.
It is possible to create your own DOS variable and use that:
set myjava=C:\myjava\
javac %myjava%someclass.java
DOS converts %myjava% to c:\myjava\ and so javac.exe tries to compile c:\myjava\someclass.java (I tried the above with Windows 98 SE.)

Similar Messages

  • Videos (eg, YouTube, New York Times) do not work on my Retina Display MacBook Pro.  There is sound but only empty space where the video should be.  Help?

    Videos (eg, YouTube, New York Times) do not work on my Retina Display MacBook Pro.  There is sound but only empty space where the video should be.  Help?

    Did you install Flash Player?
    http://get.adobe.com/flashplayer/

  • Hi, My face time is not working properly in my computer and mi iPhone, some of the people that i used to contact a can't talk to anymore, and some i can. Its not working in my mac nor in my iPhone, it just shows legend that says face time error

    Hi, My face time is not working properly in my computer and mi iPhone, some of the people that i used to contact a can't talk to anymore, and some i can. Its not working in my mac nor in my iPhone, it just shows legend that says face time error, what can i do???

    Assign an email address (gmail.com?)
    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • After 04 months of purchase of iphone 5 the lock button is too hard. At times its not working at all. The phone has been purchased in USA now I'm not getting service in India. After all whats the point in spending so much amount without any service.

    After 04 months of purchase of iphone 5 the lock button is too hard. At times its not working at all. The phone has been purchased in USA now I'm not getting service in India. After all whats the point in spending so much amount without any service.

    The warranty says that Apple may restrict service of an iPhone to the country of sale, and any reliable salesperson will tell you that if you tell them that you plan to use the iPhone in another country. Such service restrictions are common with cellphones and are by no means limited to Apple's phones.
    Sorry, but if your iPhone requires service, you will need to send it to someone you know in the US who can get it serviced and then send it back to you.
    Regards.

  • Help....my daughter has an ipod, iphone and ipad and face time will not work

    My daughter has an iphone, ipod and we have a family ipad. for some reason face time will not work. it rings in but the connection is never made. I even had her phone into verizon and they couldn't figure out why facetime wouldn't work. Anyone have any ideas on how we can correct this. It cannot be her phone because it's doing the same thing on her ipod, I cannot get facetime even to call out on our ipad. My oldest daughter has the iphone and a MAC in the same household and hers are working?

    Alot of people are having problems with FaceTime.
    Are you're devices updated?

  • I m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me. thanks ravi

    i m using apple mac pc, when we start windows 7 , apple mouse doesn't work properly it take to much time to gain signals from the pc and many times it not work but when we use mac it moves fastly and works properly. please suggest me.
    thanks
    ravi
    <Email removed by Host>                                                                                                                                                                                                                                       

    sounds more like Bluetooth rather than moue, but w/o knowing w/o posting mac model type/year we... will... not... know... what you have
    All computers are personal computers, a PC though is also "non-Apple" in common usage.
    Mac also is platform and OS.
    Very confused reading what you are trying to tell us.

  • Since installing Yosemite and Photos I can now no longer drag and drop a photo in an email, as I have always done. I repaired permission and restarted a number of times. still not working... Help?! Thanks, Michael

    Since installing Yosemite and Photos I can now no longer drag and drop a photo in an email, as I have always done. I repaired permission and restarted a number of times. still not working... Help?! Thanks, Michael

    What happens if you use the Share button and select Mail?
    What happens when you try? I had to hold there photo there for a short period before it would load.

  • The date and time is not working after setting it to current date and goes back to may,26 2011

    the date and time is not working after setting it to current date and goes back to may,26 2011; 2 PM . I bought my ipod tocuh 4th gen on july 18th

    On the iPod, make sure your Calendar is set to Gregorian (Settings > General > International > Calendar).  Also make sure your date and time on your computer is correct as well as the Time Zones on both.

  • Face time is not working in the middle east, face time is not working in the middle east, face time is not working in the middle east, face time is not working in the middle east

    face time is not working in the middle east ive tried every thing but its still not working plz help ive updated my old version every thing it used to work but the it stopped working and there is a message shown waiting for activation but its still not activated

    Not sure why you had to repeat the same statemnt 5 times, but some middle eastern countries do not permit Facetime so carriers block it..

  • HT1414 Things that i downloading the first time it not working now why is that

    Things that i downloading the first time it not working now why is that

    Hi there,
    I would restart your device and pc, it could also be a faulty USB connector.
    Try reinstalling iTunes.
    You could also try running iTunes as an administrator (Windows), you can do this by right clicking on the icon and clicking "Run as administrator".
    If this still continues, then take your device to an Apple retail store.
    Hope this helps!

  • Quick time does not work on win7. What do I do?

    quick time does not work on win7. What do I do?

    Mine works fine with both my iPad and my iPod Touch.  Been using it for two years.  I recently replaced it with an Apple TV.

  • Windows 8 Last Access Time Stamps not working

     Hi I have been trying to fix a issue with last access time stamps not working when I open a file
    so will have time on created modified and accessed from when created but some are wrong like one file
    saying
    created ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    modified  ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    accessed Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    I'm not sure what can cause this please help thank you

    Hi whowhatwere,
    Are you only confused about the last access time not change when you open a file?
    If you want to know more details about modified and created time, we can refer to the following KB.
    http://support.microsoft.com/kb/299648/en-us
    About the accessed time, please refer to the following blog.
    How do I access a file without updating its last-access time?
    http://blogs.msdn.com/b/oldnewthing/archive/2011/10/10/10222560.aspx
    The blog mentioned that: In fact, the intuitive definition of access is more specific: It's "the last time I opened, modified, printed, or otherwise performed some sort of purposeful action on the file."
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • My apple tv, all of a sudden, is no longer able to connect to my computer.  I have restarted EVERYTHING, multiple times, still not working.

    My apple tv, all of a sudden, is no longer able to connect to my computer.  I have restarted EVERYTHING, multiple times, still not working.

    Welcome to the Apple Community.
    Check your store location is set correctly, if this doesn't help, try restarting the Apple TV by removing ALL the cables for a 30 seconds.

  • Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    Since last week my date & time have not worked on my 5c. The date & time are constantly wrong. I've shut down, doesn't work. Set it automatically, doesn't work. I don't get texts or calls when it's sleeping. Any suggestions?

    try a reset.
    Hold the home & power buttons down simultaneously until you see the Apple logo appear.
    Note: no data will be lost.

  • I recently bought iphone6, My imessage and face time is not working and still it charged me for normal text message multiple times and still not able to authorise the usage. Let me know how I can start using the same.

    I recently bought iphone6, My imessage and face time is not working and still it charged me for normal text message multiple times and still not able to authorise the usage. Let me know how I can start using the same.

    Hello vinay34,
    If you are having issues with activating your Apple ID for FaceTime and iMessage, then take a look at the article below to get it sorted out. Make sure that you have the Date and Time set to Automatic as well as any other steps listed in the article. 
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/en-us/ts4268
    Regards,
    -Norm G. 

Maybe you are looking for