modify a java file

Dec 4, 2008 at 7:40pm

modify a java file

hi,

i tried to modify the “MorseGen.java” file to add excalamation mark .

i added this (just after the QUESTION_MARK one) :
private static final char[] EXCLAMATION_MARK = new char[]{DASH,DOT,DASH,DOT,DASH,DASH};

and this (just after the QUESTION_MARK one too):
else if(c == ‘!’)
morse = EXCLAMATION_MARK;

it doesn’t work. did i miss something ? do i have to change the .class files too ? how ?

thx.
fp./

#41193
Dec 4, 2008 at 8:28pm

what did you edit the java file with?
t
fp wrote:
> hi,
>
> i tried to modify the “MorseGen.java” file to add excalamation mark .
>
> i added this (just after the QUESTION_MARK one) :
> private static final char[] EXCLAMATION_MARK = new char[]{DASH,DOT,DASH,DOT,DASH,DASH};
>
> and this (just after the QUESTION_MARK one too):
> else if(c == ‘!’)
> morse = EXCLAMATION_MARK;
>
> it doesn’t work. did i miss something ? do i have to change the .class files too ? how ?
>
> thx.
> fp./
> –
> ————————
> – http://www.pan-etc.net -
> ————————
>
>

#146470
Dec 4, 2008 at 8:45pm

And did you recompile it after you edited it?

Dan

On 12/4/08 3:28 PM, “topher lafata” wrote:

> what did you edit the java file with?
> t
> fp wrote:
>> hi,
>>
>> i tried to modify the “MorseGen.java” file to add excalamation mark .
>>
>> i added this (just after the QUESTION_MARK one) :
>> private static final char[] EXCLAMATION_MARK = new
>> char[]{DASH,DOT,DASH,DOT,DASH,DASH};
>>
>> and this (just after the QUESTION_MARK one too):
>> else if(c == ‘!’)
>> morse = EXCLAMATION_MARK;
>>
>> it doesn’t work. did i miss something ? do i have to change the .class files
>> too ? how ?
>>
>> thx.
>> fp./
>> –
>> ————————
>> – http://www.pan-etc.net -
>> ————————
>>
>>
>


Dan Nigrin – Defective Records
202 Hack / PC-1600 User / VSTi Host / Jack OS X / Major Malfunction
http://defectiverecords.com

http://jackosx.com

#146471
Dec 5, 2008 at 6:42pm

hi,

thx to answer.

i used just text wrangler.
i didn’t recompile.

how to ?

thx.
f./

#146472
Dec 5, 2008 at 10:26pm

You should go through the Java/mxj tutorial – look in your Max application
folder, at java-doc/tutorial/html/index.html .

That should get you going.

Dan

On 12/5/08 1:42 PM, “fp” wrote:

>
> hi,
>
> thx to answer.
>
> i used just text wrangler.
> i didn’t recompile.
>
> how to ?
>
>
> thx.
> f./
> –
> ————————
> – http://www.pan-etc.net -
> ————————


Dan Nigrin – Defective Records
202 Hack / PC-1600 User / VSTi Host / Jack OS X / Major Malfunction
http://defectiverecords.com

http://jackosx.com

#146473
Dec 6, 2008 at 5:15pm

yes thx. sorry for the noise. i had to begin by that…

i got with quicky finally.
but i couldn’t get it with the terminal’s method…

#146474

You must be logged in to reply to this topic.