This content has been marked as final. Show 3 replies
Well, i've found the answer for that problem. Actually there are pre-packaged jar files which are in $JAVA_TOP/oracle/apps/wip/jar. These contain the
individual class files which govern the rendering of the GUI. When the GUI of discrete workstation is rendered, content from these jar files is read.
So now my task is to generate a jar file same as the standard jar file, but with customized classes in it. $JAVA_TOP/oracle/apps/wip has a Makefile which can
help me generate those JAR files. I've already tried with a Jar file generated with Jdeveloper. It's throwing an InvalidJarIndex Exception.
These jar files can be generated in $WIP_TOP/java and then placed in $JAVA_TOP/oracle/apps/wip/jar.
Kindly share any pointers for jar file generation.
Perform the following steps- They should resolve your issue:
1. In $JAVA_TOP/oracle/apps/wip/jar, wippcb.jar should contain the code for Discrete Workstation.
Extract the file using jar xf wippcb.jar.
2. Two directories would be created META-INF/ and oracle/
Delete the META-INF directory: rm -rf META-INF/
3. Go to directory oracle/apps/wip/shopfloor/client and place your java file here and compile it
4. Generate the wippcb.jar from oracle/ directory and keep it in $JAVA_TOP/oracle/apps/wip/jar
jar cf wippcb.jar oracle/
5. You would need to close the browser and restart the application for code changes to be effective.
In Java console log, you'll see downloading wippcb.jar when you open discrete workstation for the first time after making above changes.
This will confirm that your changes will be reflected.
I am searching for similar requirement of customizing discrete workstation. I have followed steps steps specified in the current thread. But have few questions: can any one please answer?
1) where to write our custom logic?
1.1) If in custom java file then how by extending that seeded class file or any other approach?
1.2) If in seeded class file..then is it worth to decompile the file and add our custom logic into the file and(after compiling) putting on the server in the form of jar file?
2) is there any way to find out from the launched applet which class file is actually called from the number of jars(and from collection of classes).?