Compiling from the default directory.

Im trying to compile java programs without having to change the directory in the DOS prompt. By setting up a classpath to my program directory I can run java programs from the base directory using JAVA, but JAVAC refuses to work saying "error cannot read hi.java" there is definitely a hi.java in the same folder as hi.class
Can anyone tell me how to get it to compile without having to change directory? Is there an Environmental Variable to set up?
Thanks for any help.

The main argument to javac is the path to a source code FILE. This is different from the main argument to java, which is a CLASS name. Classpath is used to find CLASSES. It is not used to find source code FILES.
So for javac, you can do something likejavac c:\path\to\hi.javafrom any directory and javac will find the source code FILE.
The source code may reference another CLASS - if it does, javac will use the Classpath to find the other CLASS.

Similar Messages

  • How to change the default directory from within SQL*Plus ?

    Hello,
    I want to change the default directory directly from within SQL*Plus to be able to launch my command files with simple instructions like :
    @my_command.sql
    If I haven't launched SQL*Plus from the directory containing the file my_command.sql, how do I change the default directory to the directory of my command files ?
    I've searched through the Oracle documentation, there's no SET DEFAULTDIR or something like that. When I do a SHOW ALL, there's no variable containing the default directory.
    If you have an idea...
    regards,
    Jérôme.

    Hi Jérôme (J鲴me ?),
    You cannot directly do that, but you can use @@ instead of @ to run subscripts in the same directory as the superscript
    # head /tmp/tl30/xxx/[xyz].sql                    
    ==> /tmp/tl30/xxx/x.sql <==
    prompt call y
    @y
    prompt call z
    @@z
    quit
    ==> /tmp/tl30/xxx/y.sql <==
    prompt i am in y
    ==> /tmp/tl30/xxx/z.sql <==
    prompt i am in z
    # pwd                                             
    /root
    # sqlplus -s scott/tiger@lsc62 @/tmp/tl30/xxx/x.sql
    call y
    SP2-0310: Datei "y.sql" konnte nicht geöffnet werden
    call z
    i am in zKind regards
    Laurent Schneider
    OCM DBA

  • How to submit a bug report for OSB? - restore fails if number of items per page is changed from the default of 30

    In the OSB web gui, one of my users found that if the number of items per page is changed from the default of 30, the restore of the file will fail.  He tested this using recent versions of Firefox and IE.  We have verified this to also be the case using Chrome.
    In a directory containing over 100,000 files, moving 30 at a time to find the one to be restored is a very frustrating user experience.
    How do I file a bug report for this issue?  Is there a workaround for this bug to enable my users to more easily find the file to restore without being restricted to the default of 30 items per page?

    Yes there is a bug in the webtool in the current release. You can use the commandline obtool to do the restore, that is much faster and works fine.
    Thanks
    Rich

  • How to populate a sharepoint 2010 list from the active directory. How to populate a sharepoint 2010 list with all sharepoint user profiles

    How to populate a sharepoint 2010 from the active directory.
    I want a list of all the computers in the active directory,
    another one with all users.
    I want also to populate a sharepoint 2010 list from the sharepoint user profiles.
    Thanks
    sz

    While
    the contacts list is usually filled out for contacts that are outside the company, there are times when you would use a contacts list to store internal and external resources.  Wouldn’t it be nice if you didn’t have to re-type your internal contacts’
    information that are already in the system?  Now you can with a little InfoPath customization on the contacts list. 
    Here’s our plan:
    Create the contacts list, and open in InfoPath
    Create a data connection to the User Profile web service
    Customize the form adding some text, a people picker and a button
    Create InfoPath rules that will populate the contact fields from the user fields in the User Profile store
    Let’s get going!  Before we begin, make sure you have InfoPath 2010 installed locally on your computer.  I also want to give credit Laura
    Rogers and Darvish Shadravan’s book Using
    Microsoft InfoPath 2010 with Microsoft SharePoint 2010 Step by Step.  I know it looks like a lot of steps, but it’s easy once you get the hang of it.
    So obviously we need a contacts list.  If you don’t already have one, go to the SharePoint site where it will live, and create a contacts list.
    From the list, click the List tab on the ribbon, then click Customize form:
    So now we have our form open in InfoPath 2010.  Let’s add our elements to the form. 
    Above all the fields, let’s add some text instructing users what to do with the the field we’re about to add (.e.g To enter an existing user’s information, choose the user below).
    Insert a people picker control by clicking the Person/Group Picker control in the Controls section of the ribbon.  This will add a column to the contacts list called group.
    Below the people picker, insert a button control from the same section of the ribbon as above.  With the button still highlighted, click the Control Tools|Properties tab on the ribbon. 
    Then in the Label box, change the text to something more appropriate to our task (e.g. Click here to load user data!).
    You can drag the button control a little larger to account for the text.
    We should end up with something like this:
    Before we can populate the fields with user data, we need to create a connection to the User Profile Service.
    Add a data connection to the User Profile Service
    Click the Data tab on the ribbon, and click the option From Web Service, and From SOAP Web Service.
    For the location, enter the URL of your SharePoint site in the following format – http://<site url>/_vti_bin/UserProfileService.asmx?WSDL.  Click Next.
    Note - for the URL, it can be any SharePoint site URL, not just to the site where your list is.
    For the operation, choose GetUserProfileByName.  Click Next.
    Click Next on the next two screens.
    On the final screen, uncheck the box for “Automatically retrieve data when form is opened”. This is because we are going to retrieve the data when the button is clicked, also for performance reasons.
    Now we need to wire up the actions on our button to populate the fields with the information for the user in the people picker control.
    Tell the form to read the user from the people picker control
    Click the Home tab on the ribbon.
    Click the button control we created, and under the Rules section of the ribbon, click Manage Rules. Notice the pane appear on the far right.
    In the Rules pane, click New –> Action. Change the name to something like “Query and load user data”.
    Leave the condition to default (none – rule runs when button is clicked).
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Click the Show advanced view on the bottom.  At the top, click the drop down and choose the GetUserProfileByName
    (Secondary) option.  Expand myFields and queryFields to the last option and highlightAccountName.  Click ok. 
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button. Again click the show advanced view link, but this time leave the data
    connection as Main. Expand dataFields, then mySharePointListItem_RW.  At the bottom you should see a folder called group (the people picker control we just added to the form).  Expand this, then pc:Person,
    and highlightAccountId.  Click Ok twice to get back to the Rules pane.
    If we didn’t do this and just queried the user profile service, it would load the data of the currently logged in user.  So we need to tell the form what user to load the data for.  We take the AccountID field from the people
    picker control and inject into the AccountName query field of the User Profile Service data connection. 
    Load the user profile service information for the chosen user
    Click the Add button next to “Run these actions:”, and choose Query for data.
    In the popup, for Data connection, click the one we created earlier – GetUserProfileByName and clickOk.
    We’re closing in on our goal.  Let’s see our progress.  We should see something like this:
    Now that we have the user’s data read into the form, we can populate the fields in the contact form.  The number of steps to complete will depend on how many fields you want to populate.  We need to add an action step for
    each field.  I’ll show you one example and then you will just repeat the steps for the other fields.  Let’s update the Job Title field.
    Populate the contact form fields with existing user’s data
    Click the Add button next to “Run these actions:”, and choose “Set a field’s value”.
    For Field, click the button on the right to load the select a field dialog.  Highlight the field Job Title.
    For Value, click the formula icon. On the formula screen, click the Insert Field or Group button.  Click the Show advanced view on the bottom. At the top, click the
    drop down and choose theGetUserProfileByName (Secondary) option.  Expand the fields all the way down until you see the Value field.  Highlight it but don’t click ok, but click the Filter
    Data button, then Add. 
    For the first dropdown that says Value, choose Select a field or group.   The value field will be highlighted, but click the field Name field
    under PropertyData.  Click Ok. 
    In the blank field after “is equal to”, click in the box and choose Type text.  Then type the text Title. 
    Click ok until you get back to the Manage Rules pane.  The last previous screen will look like this.
    We’re going to update common fields that are in the user’s profile, and likely from Active Directory.  You can update fields like first and last name, company, mobile and work phone number, etc.  For the other fields, the
    steps are the same except the Field you choose to update from the form, and the very last step where you enter the text will change.  Here’s what the rules look like when we’re done:
    We’re all done, good work!  You can preview the form and try it now.  Click Ctrl+Shift+B to preview the form.  Once you’re satisfied, you can publish the form back to the library.  Click File –> Quick
    Publish.  Once it’s done, you will get confirmation:
    Now open your form in SharePoint.  From the contact list, click Add new item.  Type in a name, and click the button and watch the magic happen!

  • How do I change the "Default Directory" or default subscription when I log into the portal?

    When I login to the Windows Azure portal it redirects me to a URL like:
    https://manage.windowsazure.com/@{SomeOneElsesAccount}hotmail.onmicrosoft.com?whr=live.com#Workspaces/All/dashboard
    If I look at the URL I can see the email of a friend's account not mine.
    If I click on the Subscription drop down his account is listed as the "Default Directory" even though I no longer have access.
    How do I remove his account/subscription/directory from my account?
    How do I change my subscription as the default, so that when I login the URL is more like: https://manage.windowsazure.com/@{my email}.onmicrosoft.com#Workspaces/All/dashboard
    I have also
    asked this here...
    See the image below.  The one listed as "default directory" I no longer have access to.

    Hi Gary,
    Did you use the organizational accounts ? I guess your login account was added by "SomeOneElsesAccount" . When we used azure AD account to logging into portal, the url show the "SomeOneElsesAccount" message on the portal. If you didn't
    show other user message, I suggest you could use Microsoft account to login. Also, I suggest you read this document (http://msdn.microsoft.com/en-us/library/windowsazure/hh531793.aspx )
    firstly.
    Any question, please let me know.
    Thanks
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cannot change the default directory for the web services

    When I change the default directory the drive letter always changes back to the drive letter the project was loaded from.
    Software version Labview 2009.

    Did you change the default page within your code?  Everytime you start the vi, it will revert to that page.
    When you change the default directory (if it is a control on the Front Panel), did you right click the control and select save as default?
    Otherwise, each time you re-open the VI, it will revert to the actual default value, which was the previous directory.

  • I upgraded MacbookPro 2009 from 10.6.8 to Yosemite.  Beforehand I made a backup copy of my Iphoto library onto an external hard drive. Lets call it BU. I also deleted half of my photos from the default library on my laptop, lets call it DE. I then in

    I upgraded MacbookPro 2009 from 10.6.8 to Yosemite 2 weeks ago. My iphoto is now a nightmare. i went to our local apple retailer but they could not help either. Perhaps someone can help. Beforehand the OS upgrade I made a backup copy of my Iphoto library onto an external hard drive. Lets call it BU with 50GB. I also deleted half of my photos from the default library on my laptop, lets call it DE, now with about 20GB, to gain space. I then upgraded to Yosemite.
    I have also installed since a long time Iphoto Library Manager 3.8.6. (this may be the cause of the problem as it was not upgraded and perhaps thus not compatible with iphoto 9.6 which I have now after the upgrade to Yosemite) It all worked fine before the upgrade, switching in iphoto between the two libraries DE and BU.
    It also worked fine after the upgrade for a few days. At one stage Iphoto asked me to upgrade the iphoto version as it otherwise could not read the photos when I tried to load the BU library into iphoto. I did click yes to upgrade iphoto. As a result I became a brand new but totally empty library, no photos.
    BU was still on the external disc, however the "Master" file was empty. We fortunately discovered all photos were in another file called Old Master, also under BU. We made another copy of the Old Master file onto the external disc. Lucky we did, because shortly afterwards we could not open anymore the BU file thus had no access to anything in there. Now I have 17000 photos in a file called Old Master on my external disc and another smaller library  DE on my laptop. When I tried to import the photos from Old Master into a new iphoto library it was very messy. All events dates were mixed up, many photos were imported twice. I have no idea whether all my 17000 photos have been imported.
    Can anyone suggest what is the most time efficient way? How do I best import my 17000 into a new library ensuring I don't loose any in the process. I do not wish sorting through 17000 photos for a week or so. Shall i also get a new iphoto library version now? Thank you for anything that may work.

    Yes, the Old Master file has a folder for each year where I find all photos from that specific year. I am attaching a screen shot of the file.
    In the meantime i have managed to download all photos (it did not download any video files though in mpg, avi, 3gp, m4v,mp4 and mov format) to a new iphoto library. Unfortunately the photos are quite mixed and often doubled up. I ma considering to purchase iphoto library which checks all duplicates in iphoto. this will save me a lot of time. What do you think?

  • When I email myself a picture from my iphone 4s, the email is sent from an email account that I don't have set up as the default account. How can I set it up so that the emails are coming from the default account selected in Mail?

    Under my mail tab, it shows that I have a specific email account set up as a default account. That is the account I would like for me emails to be sent from. But when I actually send out an email such as a picture, it is being sent from one of my different email accounts that is not set up as the default. How can I change this so that future messages will be sent from the default account? Any advice would be appreciated. Thanks!!

    All photo attachments received or sent with the iPhone's Mail app appear inline or viewed in place within the body of the message when viewed with the iPhone's Mail app which is the same with the Mail.app on a Mac. A photo attachment that appears inline or viewed in place does not mean the photo was not sent as a true attachment to the message. A photo attached to a message with the iPhone's Mail app is sent as a true attachment to the message. How an inline or viewed in place attachment appears on the recipient's end depends on the recipient's email client. If the recipient's email client does not support viewing an attached photo inline or viewed in place within the body of the message, the attached file must be manually selected and opened to viewed.
    I am getting the email with the Picture Inline ( not as attachment),The picture is shown distorted , no metter what i do and with what mail client i am using (Gmail\Hotmail\My Enterprise exchange mail), i still get the same behavior.
    With which email client?

  • The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.

    got event ID 4015 and source DNS-Server-Service. please suggest how to fix this issue
    The DNS server has encountered a critical error from the Active Directory. Check that the Active Directory is functioning properly. The extended error debug information (which may be empty) is "". The event data contains the error.
    Raj

    Hi
     first run "ipconfig /flushdns" and then "ipconfig /registerdns" finally restart dns service and check the situation,also you can check dns logs computer management ->Event viewer->Custom Views->Server roles->DNS.

  • PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now I get "Some of the application components are missing from the Application directory, Please reinstall.."

    PS CS4 64-bit (in Web Premium CS4) on Win 7 PC.  I did a duplicate file check on my hdd and deleted dup files. Now when I try to run PS 64-bit I get "Some of the application components are missing from the Application directory, Please reinstall the application." When I do this, it seems to install correctly until the very end, then it says "Installation Complete With Errors", and when I try to run I get the same 'component missing message'. What can I do? PS 32 bit runs fine. Some of the other applications ib Web Premium say the shortcut has been changed or removed. I appreciate your help...Thank you

    Best advice I can think of is to uninstall and run the Clean Script from here.
    Adobe - Adobe CS4 Clean Script

  • How do I change the "Default Directory" associated with my subscription?

    I was recently added as an administrator for a client's Azure subscription.  This has caused his account AD to be the default directory I see when I log in.  So every time I log in I have to open the Subscriptions menu and change the FILTER BY
    DIRECTORY option.  How can I make my own directory the default directory when I log in?
    Note: there was an almost identical question back in Dec 2013 and the solution was to have the other user remove you as an administrator.  The marked answer suggested the questioner read some arcane description of Azure subscriptions and Active Directory.
      I need to remain an admin for the other account and the referenced document had nothing useful to say about my problem.
    Anyway, thanks in advance for your help.

    Hi,
     Thank you for posting.
     I hope you find the following link helpful.
     http://itproguru.com/expert/2014/07/change-azure-subscriptionsgo-directly-to-a-specific-subscription-in-windows-azurestep-by-step/
    Regards,
    Nithin Rathnakar.

  • Reading files from the parent directory

    Hi all, I'm just wondering if files can be read from the parent directory.
    I've created a package and realise that for one function it needs to read from a file which was created in the parent directory. I've tried:
    BufferedReader inPut =
    new BufferedReader(new FileReader("../file.txt"))
    but it's still saying that it can't find the file.
    Any ideas if I can read that file?
    Thanks

    How about using the getParent() or getParentFile from the File class?

  • The package file is missing from the project directory

    Today after working in SSIS all day with no problems, I re-opened one of my projects and got the message:
    The package file ‘package_name.dtsx’ is missing from the project directory. This package has been skipped, and project will continue to load.
    So two of my packages loaded and all remaining packages where skipped, one pop-up dialog for each “missing” package. I then looked in my project directory and all my packages are still there.
    1. Has anyone experienced this and found why this happens?
    2. Can I just import my packages again and be good to go?
    Update:
    I discovered that this had to do with renaming my packages in SSDT. For some reason the name changes did not get saved into the project .dtproj file. I was able to correct by renaming the .dtsx files in the project directory to their original name. Then
    I re-opened the project, renamed the packages to the new names, saved and closed all packages. At this point you need to save the project, which actually wasn't really straight forward. You need to highlight the project name in Solution Explorer
    and then from the File menu select 'Save Selected Items'. This updates the .dtproj file.
    Upon closing SSDT, a dialog SOMETIMES appears asking you to save the project, after selecting Yes, the .dtproj file also updates. However, I've realized that upon closing the project, that the dialog asking to save the project does not always appear,
    depending on what has changed in the project. To be safe, use method previously described, especially after renaming packages. Also, if SSDT happens to crash after you have renamed a package, the project will not re-open properly.

    I remember one such occurrence when I used Source Control (if I recall right it was TFS), and yes, you can simply right-click on the packages folder and choose 'add existing package'.
    But check for project file perhaps it has a wrong reference. E.g. something from the outside manipulated on the package files.
    Arthur
    MyBlog
    Twitter

  • Podcast removed from the iTunes directory as a result of technical problem

    I received an email from iTunes informing me that my feed:
    http://www.mevio.com/feeds/d4emixtape.xml
    Had been removed from the iTunes directory because the feed had some sort of technical issue. I've checked the feed a couple of ways including using Feed Validator and all seems to be working ok.
    I tried to resubmit the feed, but I get an 'It appears the feed had already been submitted' error.
    There is a duplicate feed that was being used from a different server (Odeo), but I stopped using that about four years ago. I have requested that feed to be removed.
    I've contacted Apple Support to get the current feed back on iTunes, but that hasn't been any help.
    Any advice on what I can do to get the my podcast feed back in iTunes?

    Your feed appears to be technically OK. When the iTunes removes a podcast it usually says 'technical reasons', whatever the actual reason may be. One possible reason for removal is suspected copyright violations, and it's possible (I'm not saying this actually is the case) that they are concerned that your 'mixes' contain copyright material for which you don't have either the written permission of the copyright owner or a podcast licence from a recognized authority. As I say, I just mention that as a possibility to consider.
    As to resubmitting: the title of your feed is 'D4E Hip Hop Mixtape' and there is already a podcast of that name showing in the Store (though it's looking for the feed which you have removed). Even if that one gets removed, you are still likely to get the same error - there appears to be a minor bug in the Store software which claims that a podcasts has already been submitted even if either the podcast hasn't been accepted previously or if one of the same name has been removed.
    To get round this you need to make a small change in the title - a single character would probably do - and resubmit. You can always change the title back once it's been accepted.
    As to removing the old podcast, did you follow the procedure outlined here?

  • 'Some of the application components are missing from the Application directory. Please reinstall the application.'

    I tried opening PS and this message popped up 'Some of the application components are missing from the Application directory. Please reinstall the application.' I cannot find the Reinstall button?

    I followed these instructions but cannot find how to reinstall PS. When I click on the membership link the page displays as NOT BEING FOUND.
    Quit all applications. 
    In the Finder, navigate to the Photoshop application folder. 
    Do one of the following: 
    If the Locales folder is not listed within the application folder, then skip to Step 5.
    If the Locales folder is listed within the application folder, then drag the Locales folder to the Trash.
    Choose Finder > Empty Trash. 
    Start the installer for Photoshop or your edition of the Adobe Creative Suite. 
    If you purchased boxed software, then insert the installation DVD-ROM into your computer's DVD drive.
    If you purchased downloadable software from the Adobe Online Store, then double-click the disk image (.dmg) file or files that you downloaded. (If you no longer have the downloaded disk image file or files, then log in to your account at www.adobe.com/membership to download the installer.)

Maybe you are looking for

  • Search - doesn't find the word entered, doesn't link to the word entered

    Hi all, Using TCS2 on Windows 7 64-bit - linked FM file to RH. Generating WebHelp (primary layout). The SEARCH functionality in RH doesn't seem to work terribly well and I'm wondering if I'm just missing something. For example: I have chapters about

  • How to sent the data reading in labview to excel datasheet

    Hi, I have aquire the current input from Cb68LP connector block to the labview.Thank a lot But I not sure how to sent the data to the excel datasheet(with row and column). thank

  • I have a desktop Mac OS 10.2.8, which is the latest Firefox to download?

    I have a desktop Mac OS 10.2.8, which is the latest Firefox to download? It's Jaguar, the latest I can load on my Mac. I only use it to get/send Yahoo mail. What is the latest version I can use, and where can I get it. Right now am running Mozilla Fi

  • Ever since I downloaded Photoshop Elements 10 it freezes.

    Ever since I downloaded Photoshop Elements 10, it freezes or gives me the following message "the requested operation could not be completed because the catalog is currently locked by another process."  It is VERY frustrating!!!

  • Hash Partition vs Range

    I have a table into which data is inserted daily and contain customer nos. Most of the queries contain where clauses with customer no. field and date field. I am looking for some suggestions on the type table to be created (IOT or Normal) and also th