Click here to Skip to main content
15,920,053 members
Home / Discussions / Java
   

Java

 
AnswerRe: GPS Pin
TorstenH.8-Jan-12 22:20
TorstenH.8-Jan-12 22:20 
QuestionHijriCalendar Pin
Rebin Abdullah31-Dec-11 2:15
Rebin Abdullah31-Dec-11 2:15 
AnswerRe: HijriCalendar Pin
Richard MacCutchan31-Dec-11 2:48
mveRichard MacCutchan31-Dec-11 2:48 
AnswerRe: HijriCalendar Pin
RaviRanjanKr31-Dec-11 3:06
professionalRaviRanjanKr31-Dec-11 3:06 
QuestionMedia folder problem in Jar file Pin
loctrice29-Dec-11 16:56
professionalloctrice29-Dec-11 16:56 
AnswerRe: Media folder problem in Jar file Pin
loctrice30-Dec-11 7:06
professionalloctrice30-Dec-11 7:06 
AnswerRe: Media folder problem in Jar file Pin
jschell30-Dec-11 8:51
jschell30-Dec-11 8:51 
GeneralRe: Media folder problem in Jar file Pin
loctrice30-Dec-11 9:06
professionalloctrice30-Dec-11 9:06 
Thank you for taking the time to answer.

I know that uri's and files are not the same thing. I also know the code I posted was file based, that's what I was looking for help with. I needed a way to do the same type of thing using the jar resource. The thing is, I know where the animations are stored because the sprite object will have his folder (i.e. the dino will have Media/dino/{n}nodes/image.extension)

The thing I have found out is that package resources are not the way to go for this method. Getting the resource itself is not the problem, finding it in a generic fashion is. Finding one resource from a jar is trivial, however having multiples with only the root resource identified is not so easy.

The way to do it simply is to include a jar in the project, and use the jar access classes to do the discovery. I did not want to go this route. I wanted something simple so I could access them the same way through every object, and not have to include a jar in my project.


jschell wrote:
Resource (research it)


I do not usually participate in posting on forums. I do not post without sufficient research first, and usually I find enough to understand what I'm doing without ever needing to post a question. I can get single resources from a jar, however this was not the issue I was having. These resources also need opened as streams, which means I still can't get the effect the posted code was doing. Again, the intent was to find all the sub resources based on this uri, not to load the uri as a resource.

For now I will use a meta file with the resource information in it, sot hat I can load it as a reasource from inside the class generically after parsing the meta file. Later, I will be switching to an external folder structure holding my application data.
GeneralRe: Media folder problem in Jar file Pin
jschell31-Dec-11 13:29
jschell31-Dec-11 13:29 
GeneralRe: Media folder problem in Jar file Pin
loctrice1-Jan-12 4:29
professionalloctrice1-Jan-12 4:29 
GeneralRe: Media folder problem in Jar file Pin
jschell2-Jan-12 10:39
jschell2-Jan-12 10:39 
GeneralRe: Media folder problem in Jar file Pin
loctrice3-Jan-12 7:36
professionalloctrice3-Jan-12 7:36 
GeneralRe: Media folder problem in Jar file Pin
jschell3-Jan-12 8:33
jschell3-Jan-12 8:33 
GeneralRe: Media folder problem in Jar file Pin
loctrice3-Jan-12 9:30
professionalloctrice3-Jan-12 9:30 
GeneralRe: Media folder problem in Jar file Pin
jschell3-Jan-12 10:36
jschell3-Jan-12 10:36 
GeneralRe: Media folder problem in Jar file Pin
loctrice3-Jan-12 11:00
professionalloctrice3-Jan-12 11:00 
QuestionUnOrdered SET Pin
saadullah Bhutto21-Dec-11 4:39
saadullah Bhutto21-Dec-11 4:39 
AnswerRe: UnOrdered SET Pin
Luc Pattyn21-Dec-11 5:21
sitebuilderLuc Pattyn21-Dec-11 5:21 
AnswerRe: UnOrdered SET Pin
TorstenH.21-Dec-11 20:50
TorstenH.21-Dec-11 20:50 
AnswerRe: UnOrdered SET Pin
jschell26-Dec-11 8:54
jschell26-Dec-11 8:54 
AnswerRe: UnOrdered SET Pin
bennis9827-Dec-11 15:21
bennis9827-Dec-11 15:21 
Questionjava.lang.ClassNotFoundException Pin
arthur89kim18-Dec-11 16:44
arthur89kim18-Dec-11 16:44 
AnswerRe: java.lang.ClassNotFoundException Pin
Nagy Vilmos18-Dec-11 22:52
professionalNagy Vilmos18-Dec-11 22:52 
GeneralRe: java.lang.ClassNotFoundException Pin
arthur89kim19-Dec-11 11:38
arthur89kim19-Dec-11 11:38 
GeneralRe: java.lang.ClassNotFoundException Pin
Nagy Vilmos19-Dec-11 22:54
professionalNagy Vilmos19-Dec-11 22:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.