Results 1 to 4 of 4
Thread: adding resources to jar file
- 02-21-2010, 10:39 PM #1
Member
- Join Date
- Nov 2009
- Posts
- 71
- Rep Power
- 0
adding resources to jar file
Hi all . I have a little problem but I cant figure out it . I want to add to my project some resources like music, video or simply txt file .But when i run my code whit compiler it works normal ands shows that path file is normal .but when i run Jar file in my computer or on another compter it doesnt see thoose resources..
for example I am addin txt file to project in src folder in package where my.java files. and in path i am using like src/packagename/file.txt. it works when i am compiling with compiler NetBeans. but when I run jar file in dist folder it doesnt see this .txt file.Where am I wrong?
-
Resources in Jar files are not files but resources, so you may need to change the way that you are referencing them.
- 02-21-2010, 11:15 PM #3
Member
- Join Date
- Nov 2009
- Posts
- 71
- Rep Power
- 0
but after that when i run on compiler it doesnt see..
- 02-21-2010, 11:34 PM #4
Member
- Join Date
- Nov 2009
- Posts
- 71
- Rep Power
- 0
Similar Threads
-
adding printf to system.in file
By bettyhagan in forum New To JavaReplies: 2Last Post: 12-21-2009, 11:11 AM -
Access to resources inside jar file
By aleks.farrier in forum JavaServer Pages (JSP) and JSTLReplies: 0Last Post: 04-15-2009, 01:29 PM -
Adding a new class to a jar file
By Raul Menendez in forum New To JavaReplies: 2Last Post: 08-21-2008, 04:52 PM -
Adding file names(Help!!)
By Gambit17 in forum New To JavaReplies: 4Last Post: 11-09-2007, 07:26 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks