We are trying to modify the code in the Group Studio Activity Channel to show the file names, photo names instead of just saying Photos(2), Files(2) etc. Its a simple SQL query to get that info but we are not sure as to how to recompile the .java file after making the change.
As of now we extracted the gtactivity.car file and placed the contents in /opt/luminis/webapps/luminis/WEB-INF/classes/com/sct/pipeline/uportal/channels/gtactivity
Then we decompiled the class files using a Java decompiler. Our aim was to modify the relevant Java code that runs the SQL query, recompile it so that the relevant .class file is created and then pack the contents into a modified car file with the same name and deploy it. However, just to be sure if its the right process, we ran the compile command javac on the unmodified ActivityInfo.java after sourcing the cpclasspath binary. It threw a bunch of compile errors (see attachment).
Can anyone help us with this?
Check your classpath and/or consider using ANT
I'm no java expert, but I don't see anything in your error log that couldn't be explained by a classpath problem. I haven't had success compiling Luminis channel code except with the ANT utility set up in the luminis cdk folder. When I do that the javac seems to be able to find everything it needs. Your idea of decompiling and modifying seems logical enough, though I would probably not risk it. Good luck.
I think you have a couple things wrong
First of all the ambiguity, looks to be a signature problem with the variable or method you are trying to call,
a Date needs to be instantiated from the correct class.
java.util.Date date_UsingDateClass = new java.util.Date();
rather than just using the method signature.
Also check your currently loaded classpaths under the Admin tab and make sure they correspond to the file system and classpaths.
$CP_ROOT/luminis/config
$CP_ROOT/luminis/webapps/luminis/WEB-INF/config
$CP_ROOT/luminis/webapps/luminis/WEB-INF/uPortal
$CP_ROOT/luminis/webapps/luminis/WEB-INF/help
$CP_ROOT/luminis/products/tomcat/tomcat-cp/bin/bootstrap.jar
$CP_ROOT/luminis/products/tomcat/tomcat-cp/bin/commons-logging-api.jar
Try that let me know, I am still trying to get production ready for our go-live in January, wish I had more time to experiment.
-Tom Galanis