tag:blogger.com,1999:blog-6836539881617831685.post3060945709279933871..comments2023-12-26T20:50:58.757+07:00Comments on me and my stuff: using Class.getResource() load resource file in Eclipsepnixhttp://www.blogger.com/profile/06557491016103075395noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-6836539881617831685.post-49704376366280797732015-11-27T17:41:48.622+07:002015-11-27T17:41:48.622+07:00thanks it's solve my Windows and Linux class p...thanks it's solve my Windows and Linux class path related issues.sharda prasad singhhttps://www.blogger.com/profile/12029976016972013615noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-65327584310952775922013-03-22T11:14:07.485+07:002013-03-22T11:14:07.485+07:00Very nice tip.
Instead of using "/resource/f...Very nice tip.<br /><br />Instead of using "/resource/filename" I'd put files in my main pachage folder, and just use a class in there to call getResource().<br /><br />This way we avoid conflicts with other libs!Hikarihttp://hikari.wsnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-29948037361097964272012-11-06T14:38:57.327+07:002012-11-06T14:38:57.327+07:00I used this but I am geting a nullpointerexception...I used this but I am geting a nullpointerexception. Could you please help. I am using JSFrakenduhttps://www.blogger.com/profile/17160662454088711103noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-35586185396981083072012-11-06T14:38:37.665+07:002012-11-06T14:38:37.665+07:00I used this but I am geting a nullpointerexception...I used this but I am geting a nullpointerexception. Could you please help. I am using JSFrakenduhttps://www.blogger.com/profile/17160662454088711103noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-46298707215371045792012-11-06T14:37:41.454+07:002012-11-06T14:37:41.454+07:00I used this but I am geting a nullpointerexception...I used this but I am geting a nullpointerexception. Could you please help. I am using JSFrakenduhttps://www.blogger.com/profile/17160662454088711103noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-87318817572860298362012-08-22T15:23:55.655+07:002012-08-22T15:23:55.655+07:00Please tell me pros and cons to put /resource dire...Please tell me pros and cons to put /resource directory in /src or in / where are /libs and /src directories?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-48147824533700304022012-05-16T13:06:40.957+07:002012-05-16T13:06:40.957+07:00How come 2000 people just repeat what the javadoc ...How come 2000 people just repeat what the javadoc already says, while you add the USEABLE bit of information? thanks a lot! your post should be WAY higher in Google rankings.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-90450122919369809242012-04-23T14:12:57.767+07:002012-04-23T14:12:57.767+07:00Thanks a lot dude,seriously ur post helped a lot.Thanks a lot dude,seriously ur post helped a lot.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-3203658083343493102012-02-21T00:24:50.251+07:002012-02-21T00:24:50.251+07:00Hello,
Could you please explain me how to copy a ...Hello,<br /><br />Could you please explain me how to copy a resource to a directory in the computer? <br /><br />thank you!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-89770983156530605502012-02-13T06:24:17.548+07:002012-02-13T06:24:17.548+07:00Thank you, this helped me a lot!Thank you, this helped me a lot!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-50081218786351365842011-10-21T18:56:08.911+07:002011-10-21T18:56:08.911+07:00Thanx a lot....was going crazy on this topic!!Thanx a lot....was going crazy on this topic!!YetAnotherG33khttps://www.blogger.com/profile/15861079868210418573noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-10166125219997307132011-10-13T19:51:12.926+07:002011-10-13T19:51:12.926+07:00thanks!!thanks!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-17050957350456251412011-10-06T05:24:38.609+07:002011-10-06T05:24:38.609+07:00Great, thanks!Great, thanks!Joschanoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-66314305282175388182011-08-30T03:16:51.222+07:002011-08-30T03:16:51.222+07:00thanks, but what this has to do with Eclipse? This...thanks, but what this has to do with Eclipse? This is Java coding anyway!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-74748838520230444772011-05-20T09:37:47.646+07:002011-05-20T09:37:47.646+07:00ahh! Thats an extremely usefull nugget.ahh! Thats an extremely usefull nugget.Raja SPhttps://www.blogger.com/profile/10153881737674051551noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-72225271940142507782011-02-23T10:39:54.002+07:002011-02-23T10:39:54.002+07:00Surely the title should be using Class.getResource...Surely the title should be using Class.getResource() load resource file in Java.... you're code isn't anything to do with the IDEAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-41905901171741446632010-11-20T11:10:49.517+07:002010-11-20T11:10:49.517+07:00Thanks, do you know how to write to an external fi...Thanks, do you know how to write to an external file when the jar is run?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-59519910743163350692010-07-28T11:01:59.409+07:002010-07-28T11:01:59.409+07:00When I bought my computer and I didn´t know how to...When I bought my computer and I didn´t know how to use java graphics, so I decided looking for information in a webside and I found an useful information that helped me a lot.. Now I am interested in to do the best investment and I found a webside very useful and interesting called <a href="http://www.costaricaindex.com/costa-rica-investment/investment-costa-rica.html" title="costa rica investment opportunities" rel="nofollow">costa rica investment opportunities</a> , I think it´s a very wonderful site.Unknownhttps://www.blogger.com/profile/01813240290829967874noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-54840524426343342452010-03-27T03:36:47.758+07:002010-03-27T03:36:47.758+07:00Thx a lot dude, that's exactly what I was look...Thx a lot dude, that's exactly what I was looking for.rafaelnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-1682890225676487892010-03-03T20:28:34.055+07:002010-03-03T20:28:34.055+07:00I have noticed the following problem with getResso...I have noticed the following problem with getRessourceAsStream(): for every call, the jar il loaded again. This can be very annoying, especially when the jar il loaded over a slow connection.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-29299230096154349962010-02-20T20:06:06.081+07:002010-02-20T20:06:06.081+07:00worked fine.. thanksworked fine.. thanksandcoderhttps://www.blogger.com/profile/12749958811917545243noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-84338794423292996892010-01-15T08:43:01.691+07:002010-01-15T08:43:01.691+07:00It works but when compiling, the images are copied...It works but when compiling, the images are copied to bin folder.Emerald214https://www.blogger.com/profile/14123842577294633427noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-36420437581121341032009-11-24T15:25:18.323+07:002009-11-24T15:25:18.323+07:00Thank you very much! This helped me out!Thank you very much! This helped me out!Ferosshttps://www.blogger.com/profile/05600212446858169219noreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-23244640700460818022009-08-25T20:15:52.725+07:002009-08-25T20:15:52.725+07:00thanks, good postthanks, good postolusholanoreply@blogger.comtag:blogger.com,1999:blog-6836539881617831685.post-91075298678544180322009-07-28T20:33:42.595+07:002009-07-28T20:33:42.595+07:00Lovely post, works like a charm.
Could you maybe e...Lovely post, works like a charm.<br />Could you maybe explain the difference to the ClassLoader.getSystemResource(..) function? I could not find comprehensive help on this topic and it looks like resource loading is a very often encountered problem.Sebastiannoreply@blogger.com