Re: Problem with classpath order
I assume he meant CLDC (Connected Limited Device Configuration) aka J2ME (Java 2 Mobile Edition). I strongly agree with the other responses suggesting that you refactor things rather proceeding with this approach! Wayne On 5/24/07, Thorsten Heit <[EMAIL PROTECTED]> wrote: Hi, > The reason is CDC.. CDC = ? (sorry, don't actually know what it is) > There are some classes does not exist, so I have to > implement them, however, to make sure I can run my applications on PC as > well, I need same naming...extra method is for legacy reasons. I'd think about refactoring/redesigning the corresponding classes in your application that cause these special treatment... Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with classpath order
I think Sun would not really like this :) You can cause very serious security violations in this manner. Can you not subclass File (com.my.File) and use that everywhere instead? It can extend File so you have the same sort of behaviour... Andy On 23 May 2007, at 14:53, redhatvswin wrote: Hm..Thanks The reason is CDC..There are some classes does not exist, so I have to implement them, however, to make sure I can run my applications on PC as well, I need same naming...extra method is for legacy reasons. Thorsten Heit-3 wrote: Hi, I have following problem and I am kind of stuck. I have project that depends on project where I override some java standard classes and sometimes I have extra methods in there. When i use eclipse, I can change order of classpath to have my Maven2 Dependencies over the JRE. However, when I try to install or compile, I can not because java complains that method not found in class java.io.File, for example. Is there a way to change this in maven to make sure compiler first looks classes in my dependencies and then in java libraries. AFAIK no. Just for curiosity: What's your use case that you override Java standard classes? You know that this can cause more or less serious problems trying to run your application on another machine because your classes perhaps will not be used/found...? Why don't you just create subclasses of them? Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Problem-with- classpath-order-tf3803436s177.html#a10764313 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with classpath order
Hi, > The reason is CDC.. CDC = ? (sorry, don't actually know what it is) > There are some classes does not exist, so I have to > implement them, however, to make sure I can run my applications on PC as > well, I need same naming...extra method is for legacy reasons. I'd think about refactoring/redesigning the corresponding classes in your application that cause these special treatment... Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with classpath order
Hm..Thanks The reason is CDC..There are some classes does not exist, so I have to implement them, however, to make sure I can run my applications on PC as well, I need same naming...extra method is for legacy reasons. Thorsten Heit-3 wrote: > > Hi, > >> I have following problem and I am kind of stuck. >> I have project that depends on project where I override some java >> standard >> classes and sometimes I have extra methods in there. >> When i use eclipse, I can change order of classpath to have my Maven2 >> Dependencies over the JRE. However, when I try to install or compile, I >> can >> not because java complains that method not found in class java.io.File, >> for >> example. Is there a way to change this in maven to make sure compiler >> first >> looks classes in my dependencies and then in java libraries. > > AFAIK no. > > Just for curiosity: > What's your use case that you override Java standard classes? You know > that this can cause more or less serious problems trying to run your > application on another machine because your classes perhaps will not be > used/found...? > > Why don't you just create subclasses of them? > > > Regards > > Thorsten > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Problem-with-classpath-order-tf3803436s177.html#a10764313 Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with classpath order
Hi, > I have following problem and I am kind of stuck. > I have project that depends on project where I override some java standard > classes and sometimes I have extra methods in there. > When i use eclipse, I can change order of classpath to have my Maven2 > Dependencies over the JRE. However, when I try to install or compile, I > can > not because java complains that method not found in class java.io.File, > for > example. Is there a way to change this in maven to make sure compiler > first > looks classes in my dependencies and then in java libraries. AFAIK no. Just for curiosity: What's your use case that you override Java standard classes? You know that this can cause more or less serious problems trying to run your application on another machine because your classes perhaps will not be used/found...? Why don't you just create subclasses of them? Regards Thorsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]