Hi, I am not sure but as far as I remember define option i C behaves like a text replace function so at the compilation time it replaces all defined items with it's value. I think in java there is not such a feature. But why don't you just play with the variable visibility. What if you made a public class with a public constant so other members from any package would be able to see this value?
Tomas J. tedpottel wrote: > Hi > > I may have already posted this, but cannot find it. > > I’n using Ajax code, I have 3 different servers the php file is in, > depending on what I’m debugging. I have the Jiffy server when > debugging within eclipse, then I have my local Apache server, when I’m > trying to debug the php code, and a different server name for > production run. > > C and PHP has a define statement, whare I could have something like > #define server /local/ > And include it in all my files. > > Is there a way to do this in java, so I can easly switch the server > name, without having to change it superbly in all my classes? > > Ted Define > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en -~----------~----~----~----~------~----~------~--~---