Reputation: 1 Apprentice
- Active Members
- Active Posts:
- 135 (0.18 per day)
- 26-July 12
- Profile Views:
- Last Active:
- Jul 13 2014 08:12 AM
- Dream Kudos:
Posts I've Made
Posted 13 Jul 2014
QuoteBut there's no such folder in the path you're using ...But the resource is there with image in the folder(Images).
Please post the result of the following command, having opened cmd.exe and changed to your workspace directory
dir /s/b YourProjectFolder
Let me know if you're not using Windows
See also http://technojeeves....va-with-eclipse
It worked as per your link I did the import and it worked.
I was doing import the wrong way..manually copy and past the image into the folder(Wrong way).
Thank you very much.
Posted 12 Jul 2014Yes I'm using Eclipse
1.Java Directory folder on my desktop.
2.Folder in which class files are created.
4.Inside src folder is the .jpg file.
Posted 12 Jul 2014But the resource is there with image in the folder(Images).
Posted 11 Jul 2014Change it to the following and let us know what's printed
java.net.URL u = getClass().getResource("/resources/Companylogo_FINAL.jpg"); System.out.println(u); myPicture = ImageIO.read(u);
This is what I got
null Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(ImageIO.java:1388)
Posted 10 Jul 2014Thanks you all .
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
chdboy hasn't added any friends yet.