EDOBE XDOM PMML Instrukcja Użytkownika Strona 31

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 98
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 30
31
Compilation
Now that we have our Java code, we need to compile it and place it in
a jar file. The specific steps for compiling the code and creating the
jar will vary based on the Java development tools used.
For example, suppose you have Spotfire Miner installed in
D:\Program Files, and you have Sun’s JDK1.4 installed in
D:\java\jdk1.4.0. To compile the example files in the Spotfire Miner
distribution using the Miner.jar in the distribution, first change into
the directory containing the Java source code and then use the
javac
command:
cd "D:\Program Files\TIBCO\miner82\examples"
D:\java\jdk1.4.0\bin\javac -classpath "D:\Program
Files\TIBCO\miner82\tools\splus\java\jre\lib\ext\Miner.jar"
*.java
The directory with the *.java files will now also contain *.class files.
These need to be put into an extension.jar file, which we will then
copy into the extension directory. The
jar command creates a jar
file:
D:\java\jdk1.4.0\bin\jar cvf extension.jar *.class
XML Description Next we need to create the XML description of this node. Let’s label
it as the First Copy Columns node, use the default icons, and specify
two inputs and outputs. The XML to create a new page with a folder
containing this description is:
<?xml version="1.0" encoding="UTF-8"?>
<ExplorerTree>
<ExplorerPage labelText="Programming Examples">
<ExplorerNodeList>
<ExplorerFolder expanded="true"
labelText="Copy Columns">
<ExplorerNodeList>
<ActivityNode
engineClass="FirstCopyEngineNode"
guiClass=
"com.insightful.miner.ActivityNodeModel"
numInputs="2"
numOutputs="2" >
Przeglądanie stron 30
1 2 ... 26 27 28 29 30 31 32 33 34 35 36 ... 97 98

Komentarze do niniejszej Instrukcji

Brak uwag