Dear Cisco Community,
I have uploaded the .jar file and restarted the CCX Engine, Tomcat and Administration, but the file name doesn't appears on the CCX Editor. I have already checked everything's and not found any troubles on the logs, Java code was write using the compatibily Java x UCCX version.
What may I check in order to have issue resolved as soon as possible?
Solved! Go to Solution.
You won't see any file names for custom classes in the Editor (there may be fragments of it in places..but it's hard to describe in this format). Ultimately, you need to know how to Interface your Java Class; Instantiate a Reference of it's type (unless you use static methods..which I like to do a lot with custom common utilities I use)...
CustObject custObj = new CustObject(Constructor);
String sCustDataFromObject = custObj.getCustData(params);
Let me know if this was helpful in anyway..
If you don't know how to use your Java Class..ask whomever packaged the code and/or use a Java Decompiler (I use JD-GUI on the Macintosh) to see how to use the Class..
That's not a problem (provided the JAR was loaded correctly). Just paste the name of the class into the "Type" field. Make sure you use the full name (e.g. com.rocketdyne.apollo.CustomClass). Again, if the JAR was loaded correctly, it should accept the new type.
Ok, but on UCCX v8 whn I upload the file this appears normally on CCX Editot variables part. Now on UCCX 9 it needs to load it on thr code?
Do you have a example for that?
can you give me an example, too?
For instance, the type "org.apache.log4j.Logger" is not visible, however, is accepted by UCCX and is usable (this is UCCX 7):
EDIT: uploaded the image (misterously disappeared).
Ok Gergely, thank you for your information.
How may I type the type, what's the file structure? My file name is Avista_Ura_Final.
Jefferson, if it doesn't break security, please attached your JAR file. I can't speak for Greg, but the file name isn't necessarily the Class you will be Instantiating (if you have to do that in this case). But to take a wild wild guess considering I don't know the name of your Class or how to call a Constructor for that Class..you might be able to type:
Type: Avista_Ura_Final Name: auf Value: new Avista_Ura_Final() (by default it would be null)
I am sure it's something like com.somecompany.someproject.SomethingNice.
Did you use the same reference "Avista_Ura_Final" with the previous UCCX version that worked?
This is somewhat of a perplexing thread in that we want to help you identify the Java Class you need to Identify in order to get to whatever it you are trying to get to with this code...but whoever gave you this package didn't seem to see the need to help you actually use the code that is stored inside.
Even if we tell you how to find the Class...then how do you expect to actually use that Class to actually get any work done? I mean..I tried to tell you what to do..Open the JAR in Eclipse..or some sort of Java Decompiler and you will find the Class(es) that are used in the package..
ok Drkchiloll, I know the classes, but the question is how to reference it on code once this is not available on CCX Editor variable part?
After restarting all the services you restarted..did you restart CCX Editor (to load the new stuff into it)? Please do that..and instantiate the new Object in the format that Greg mentioned previously..
Yes, and restarted all services.
On CCX Editor it cannot appears, I tried to insert it manually on CCX Editor, but it cannot be recognized by the system.
Alright. Can you please do the following: unzip tihs Avista_Ura_Fina.jar into a temporary directory. Enter this temporary directory using command line. Issue the tree command. Redirect its output to a text file. Post that text file to here.
Er... which part?
1. Create a new directory on your file system.
2. Copy that Avista_Ura_Final.jar into that new directory.
3. Unzip the file. Anything capable of extracting a ZIP file would do. Winzip, WinRAR, pkunzip, GNU unzip etc.
4. Open a command line or a terminal window.
5. Navigate to the new directory (use the cd
6. Issue the tree command, but redirect the output to a text file. For instance: tree >> jarstruct.txt
7. Post the output (jarstruct.txt) to here.
Listagem de caminhos de pasta
O n£mero de s‚rie do volume ‚ 76FF-4D24
| | Avista_Ura.class
| | RetornoUra.class
| | Ura.class