Wrong path for load picture

hello
trying load pic to JWindow
i put png images in "images" folder
and can't load it - always url is null
String filename="images/image1.png";
JLabel label;
URL url=SWindow.class.getResource(filename);
if (url==null) {
          System.out.println("url not found");
          System.exit(1);
}

all ok
trouble was in IDEA dirrectory tree

Similar Messages

  • IPhoto - My iPhoto is not responding. When I click on iPhoto I get a never ending spinning beachball.  I almost think it is looking in the wrong place for the pictures.  How do I redirect it back to the Mac hard drive?

    My iPhoto is not responding.  Whenever I click on the iPhoto icon I get a twirling beachball.  It is as if the machine is looking in the wrong place for the photos.  How can I see where the machine is looking to find out if this is really the problem.  How can I see the path?

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If it doesn't then the problem lies with your current library.
    If that's the case  Apply the two fixes below in order as needed: 
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #3, followed by #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • Wrong path for go.bat in portal integration

    Hi Friends,
    during the configuration of the portal integration in rspor_cust01 I get the message
    'Windows can not find C:\usr.......\go.bat'.
    Where can I change the path because it is in D:\usr\sap\......go.bat.
    Thanks you for any help.
    Rg Jimbob

    Hi Subbu,
    I used workshop page properties to associate the image to the page.
    framework/skins/classic/images/home.gif
    - Shankar
    Subbu Allamaraju <[email protected]> wrote:
    Shankar,
    Did you use any tag to create the img tag? Do you have any sample
    HTML/JSP snippet?
    Subbu
    Shankar Bala wrote:
    I created a new desktop and have the following problem. The imagelinks to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a imageassociated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images.The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

  • New desktop has wrong path for page links in nav bar

    I created a new desktop and have the following problem. The image links to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a image associated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images. The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

    Hi Subbu,
    I used workshop page properties to associate the image to the page.
    framework/skins/classic/images/home.gif
    - Shankar
    Subbu Allamaraju <[email protected]> wrote:
    Shankar,
    Did you use any tag to create the img tag? Do you have any sample
    HTML/JSP snippet?
    Subbu
    Shankar Bala wrote:
    I created a new desktop and have the following problem. The imagelinks to portal
    pages in the horizontal nav bar in the top have wrong path.
    Example.
    In the original portal the home page link in the nav bar has a imageassociated
    with it in workshop.
    \framework\skin\classic\images\home.gif
    The partial url generated for the image looks liek this:
    \mywebapp\\framework\skin\classic\images\home.gif.
    I created a new desktop everything works fine except for the images.The href's
    are created for the links but the image path is wrong.
    the url generated is : \mywebapp\appmanager\framework\skin\classic\images\home.gif
    The "appmanager" in the path causes the problem.
    Is this a bug?

  • How to set local path for load library

    Hi,
    How do i set local path for native dll as i dont want to set the path in the environment variable.
    can i do like this
    System.loadLibrary("c:\abc");
    Thanks

    I believe that System.load() does exactly the same thing, but accepts fully qualified filenames. So give that a try.
    Failing that.... maybe you can add -Djava.library.path=
    to your command line to explicitely override the path set ?
    regards,
    Owen

  • Mail has wrong path for Save

    I am using v. 7.1 of Mail under OS X 10.9.1. When I attempt to save an email to my Documents folder I get an error message:
    Could not save to path /Users/bob/~/~/~/~/~/~/~/~/~/~/Documents/Payment submitted.rtf. Choose a different path.
    Clearly Mail has a bad pathname for the Documents folder. TextEdit documents save properly to Documents. Terminal shows the path to Documents as: /Users/bob/Documents
    What is going wrong with Mail?
    Bob

    Agreed.  I get a completely different wrong path, but only (so far) when I try for Documents.  Seems like a bug. Good catch.
    Apple - Mac OS X - Feedback

  • Wrong Path for RRMX transaction (Bex)

    Dear All,
    I've just installed the SAP GUI 7.10 with Patch 09 and with BI AddOn Patch 7 for GUI 7.10
    When I launch the Bex Analyser from the Windows Start Menu it works (I'm obliged to launch first the Bex 3.5 before launching the 7.0 !!! but it's not the subject).
    But when I try to use the RRMX transaction, it seems that SAP is looking for the file "SAPBEX0.XLA" in the directory "C:\Program Files\SAP\FrontEnd\BW" although the file is located in the directory "C:\Program Files\Fichiers communs\SAP Shared\BW".
    Does anyone have an idea on how to change this path in SAP ?
    Thanks in advance

    Hi,
    There are two parameters in RS_FRONTEND_INIT :
    VER_MIN_ANA : min revision which you can open BexAnalyzer
    VER_ACT_ANA : actual revision which is better for opening BexAnalyser
    You can find the revision level in your BexAnalyzer installation info.
    My current version is 1352 for exemple.
    There is a note for some problem with the flag VER_MIN_ANA : 1280620
    Good luck.

  • Path for data loader

    Hi
    When I try to launch the dataload play user in DEV instance
    i am given error about wrong dbc file being used
    i check it
    its shows a wrong path for my dbc file
    any idea where to change this path
    OS id RHEl 5
    DB 11.2.0.1
    EBS 12.1.2

    Hi
    Is the value of the variable "s_fnd_secure" in the $CONTEXT_FILE the same as the value of $FND_SECURE environment variable?
    It probably is, but it can't hurt to check.
    Have you tried stopping the Apps Web processes (and making sure that there are no process running on the O/S) and then restarting the web server?
    This test might be useful ..
    1) http://server:port/OA_HTML/jsp/fnd/aoljtest.jsp
    2) Click on "Enter AOL/J Setup Test"
    3) Run these two tests
    a. Locate DBC File
    b. Verify DBC Settings
    Regards
    Frank

  • Profile pictures wrong Path

    I have setup the thumbnail pictures for users in Sharepoint 2013. I can browse the library throughy this  link
    http://myserver/sites/mysite/_layouts/15/start.aspx#/User%20Photos/Forms/Thumbnails.aspx?RootFolder=%2Fsites%2Fmysite%2FUser%20Photos%2FProfile%20Pictures&FolderCTID=0x0120008BF2C6579F4E1947B6C670F4524E2C06&View=%7BDF932ADB%2D33D5%2D4024%2DA88C%2DA4B0253DBE98%7D
    but when I open a user page, the picture is not loading. I see from the debugger that is calling the following url which is missing a "/" right after the sites/mysite
    http://myserver/sites/mysiteUser%20Photos/Profile%20Pictures/j_doe_LThumb.jpg?t=63560464578
    How can I fix this??
    CKotsis

    Hi CKotsis,
    According to your description, my understanding is that the profile picture showed a wrong path.
    Please try to run a full user profile sync, compare the result.
    Please modify and run the following PowerShell commands to check if it works:
    $site = get-spsite "https://sharepoint" 
    $context= [Microsoft.office.server.servercontext]::GetContext($site)  
    $userProfileManager = new-object Microsoft.office.server.userprofiles.userprofilemanager($context)  
    $profiles = $userProfileManager.GetEnumerator()
        foreach ($profile in $profiles)
         $Matchurl = "mysitesUser Photos"
          if($profile["pictureurl"].value -match $matchurl)
                     Write-host $profile["AccountName"].value "contains incorrect url"
                     $CurrentURL = $profile["Pictureurl"].value
                     $CurrentURL = $CurrentURL.tostring()
                     $GoodUrl = "mysites/User Photos"
                     $CorrectUrl = $CurrentURL.replace($matchurl,$goodurl)
                     $profile["pictureurl"].value = $correcturl
                     $profile.commit()
                     Write-host $profile["AccountName"].value "PictureURL has been corrected"
    Here is a similar post for your reference:
    https://social.technet.microsoft.com/Forums/office/en-US/1fa50226-a495-4d3c-8fd3-da9fdede6a52/wrong-profile-picture-url?forum=sharepointadminprevious
    Best Regards,
    Wendy
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Teststand 3.0 Deployment looking for a file(glang.chm) in a wrong path

    Hi, Please help
    i just try deploy an installer using TestStand 3.0. it can successfully process the workspace file,  But, when the TestStand deployment tool try to build the installer, it keep looking for one of project file(glang.chm) in a wrong path, the error message is following, see the attachment for the screen shot  
    Error Code:7
    Could not process LabVIEW VIs. Fix any broken VIs before rebuilding. LabVIEW error:
    C:\MVS 2\data\data\data\glang.chm - source does not exist
    +++++++++++++++++++++++++++++++++++++++++++++++++
    i understand that it is looking for glang.chm in "C:\MVS 2\data\data\data\", but in my project, glang.chm actually is under "C:\MVS 2\data\". In order to make it works, i need to create the path "C:\MVS 2\data\data\data\" and copy glang.chm into the path.
    My question is: How to change the setting in TestStand deployment tool, so that it would look for glang.chm in corrected path"C:\MVS 2\data\", not in "C:\MVS 2\data\data\data\" ?
    Attachments:
    error message(screen shot).jpg ‏184 KB

    Well, David's solution works as expected. It copies the the pristine .lnk file from the startup menu to the desktop.
    This .lnk file will start only the operator interface testexec.exe without loading any sequence.
    Now I did try a modification. I did create a .lnk file, which loads the sequence file automagically by providing the right commandline arguments to testexec.exe. This .lnk file works on the development system either I start it from desktop or from some normal directory with the explorer.
    And now I try to add that .lnk file to the deployed files like all other deployed files by adding it to some project in the workspace, which is configured to be used in the deployment wizard. That doesn't work.
    If there is a 2kb "MySequence.lnk" in t
    he development tree,you will also find a "MySequence.lnk" in the Image tree at the expected position. But this is 1396 kb big, which is just the size of testexec.exe ( Labwindows/CVI version) where the .lnk file did point to. And the properties (commandline) of that .lnk file became empty.
    Other "normal" files in the same directory, which are also included in the deployment, are copied without any coruption into the Image tree into the same directory as the corupted .lnk file.
    The installer will install the corupted .lnk file to the desired position without problems. And copying it with post.bat to the desktop is also no problem.

  • How to get the document path of the pictures uploaded for products?

    Hi Gurus,
    How to get the document path of the pictures uploaded for products uploaded through tcode COMMPR01?
    Many Thanks,
    Neeraj

    client path.
    I need to get the client path in order to download files form server to client.
    Best regards,
    Huy.

  • Path for Pictures,Logos stored in SAP Server ??

    Dear All,
             I am Preparing a Z report for that I want to Import Logo.
             I hv already stored the Logo in SAP Server with SMW0, but for downloading that logo 2 Excel Application I want the path (URL) where it is stored.
            Can anyone guide me where I can get the Path of the pictures stored in SAP.(Database or Application Server).
    Thanking and with best regrads,
    Narendra

    Hi,
    i have not figured it out completely. But i think you can find it in transparant table STXBITMAPS.
    An old (obsolete) way of storing graphics is in tables STXL/STXH
    succes.
    Gr., Frank

  • Hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    hi i've just signed up for lightroom and when i go into the develop screen i get a blue screen with a cross through it and it says cant load picture. any idea how to get around this?

    I'm having same problem in develop module which is laggy as hell compared to LR5.8
    Library module is fine but develop module is slow as hell....5 seconds to make ANY adjustment.

  • [svn:fx-trunk] 10877: Fix a small syntax error in Path bounds calculations that could result in wrong bounds for edge cases involving MoveSegments .

    Revision: 10877
    Author:   [email protected]
    Date:     2009-10-05 15:23:37 -0700 (Mon, 05 Oct 2009)
    Log Message:
    Fix a small syntax error in Path bounds calculations that could result in wrong bounds for edge cases involving MoveSegments.
    Thanks go to Min for noticing the bug!
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: Deepa
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/primitives/Path.as

    orangekay wrote:
    That is absolutely unreadable.
    I agree completely. How about also providing a link to a set of input files so that we could actually run the code ourselves? Otherwise, there is no chance to debug the source code, it is just a mess.
    You might have better luck with an older version of the file. To quote the comments:
    // Modified on March 31, 2005. Initialized maxchange in nonlinvoltra() as
    // INFTY. Replaced crnmbr() by a similar, but faster routine interior().
    // Many thanks to Stuart Anderson for pointing out this shortcut.
    I suspect that the "interior" function is just plain incorrect. It doesn't matter if it runs on some other OS. Something about it is wrong and the code is so cryptic that it can't be deciphered.

  • HT203167 the path for several of my songs that i can't locate is wrong because the path uses forward slashes instead of back slashes.  Can I change this?

    several of my songs in itunes gives me the can't locate ! sign.  in going to the info for each of those songs i noticed the path to locate the file was in proper format except for the slash marks which were / instead of \ .  how can i change the slash makrs in the paths for those songs?

    thanks for the info.  if itunes is applying the wrong path i.e. - forward slashes in path instead of backward slash how will i ever access those songs I've purchased.  it won't let me download them again because it thinks they are on my computer? 

Maybe you are looking for

  • Enhancement on MIRO

    HI Experts, I need a tax report which should show Invoice No, Inv. Date, Material, Invoice Value, Tax amount.  If a invoice contains multiple line items, it should show them in seperate lines eventhough Invoice No. is same. In MIRO tax amount is ente

  • Help with my css

    Right I making a site this one> http://sheepskinshoestore.com/Library/Test/tesa.html < And I'm using CSS to make it with. This is the home page. But I need to have a content area its gonna sit where all the links in the "top box" are, they have links

  • HD space issue

    Hi all, I'm having an issue with my hard drive space when using iMovie. Up until a few days ago I had around 34 gbs of space left on my mac and then imported a bunch of video. The new video dropped my space down to around 20 gbs left...so I decided t

  • Photoshop Elements 10 won't work and won't uninstall

    I have Photoshop Elements 10 and Windows 8 on a Lenovo g500s i7 laptop. Photoshop will not open. I cannot uninstall it either. The uninstall process stops at the first Installwizard screen which asks me to press next to continue. I have tried various

  • Finder not working after update to 10.10.3

    I have updated to the latest version 10.10.3 of Yosemite and any task involving the finder now takes several minutes, making my Mac useless. I have plenty of RAM (12GB). I have tried the following: - Deleted and let the system rebuilt CloudKitMetadat