Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How to create customs java classes in CRA ? and java version ?

Hi,

I am a newbie in CRA Editor.

I read that It's possible to create his own java classes.

I created my classes because the cra editor is very mm simple to use and you cannot do complex thing ...

But I didn't find the way to integrate my classes in the editor... I try to midified 2 configs files without any success...

And do you know what version of java is supported by the cra editor 3.0 ? I think it's under 1.2 because I wanted to uses method of java.util.Date but theses method are not present in the editor and they are available since java 1.2

GRRR

and what about the CRA 3.1 ?

Thanks you in advance

Thierry

5 REPLIES
Silver

Re: How to create customs java classes in CRA ? and java version

Thierry,

For CRA 3.0 and above, the documentation for creating custom java steps, comes along with the CRA software package. Check the same in CRA Server under

Start->Programs->Cisco CRA Administrator->Component Developers Guide.

Regards

Yogi

New Member

Re: How to create customs java classes in CRA ? and java version

Thanks you Yogi,

I found the documentation and i will read it !

For me it's strange that the version of java used by the CRA Editor is the 1.1 ?!

Thierry

Silver

Re: How to create customs java classes in CRA ? and java version

Java version for CRA 3.0(3) is 1.3. Hope its the same for 3.1.

New Member

Re: How to create customs java classes in CRA ? and java version

no no no the version is under 1.2 because

I try to use the method compareTo from the java.util.Date class and it's not available in the editor

-> java panel -> Execute java method

-> choose a Date variable and the "compareTo" is not available

in the javadoc, they say that compareTo is available since 1.2

also the methods "getDay, getHours..." are Deprecated

and we have to use a Calendar

but all the new methods of the Calendar class are not available.

Thierry

New Member

Re: How to create customs java classes in CRA ? and java version

I just compiled few java objects using jdk 1.3.1. That is the one that is supported. Cannot use 1.4. I know for a fact that 1.3.1 works. So, try using that.

This is for CRS 3.0.3a. And I think that is the same for CRS 3.1 too.

122
Views
0
Helpful
5
Replies
CreatePlease login to create content