I am a newbie wrt scripting in Java 6. I have 2 questions on this
topic :
a) With the current version of Java 6 distribution, the version of
Rhino that comes bundled is 1.6 Release 2. If I want to use a
different version of the Rhino engine (e.g. 1.6 Release 5), how do I
do that ?
b) In cases when I return a Javascript array from my script code, what
I get back in Java is sun.org.mozilla.javascript.internal.NativeArray,
which is probably a wrapper for org.mozilla.javascript.NativeArray. Is
it the common practice to handle these sun.org datatypes within my
Java program ? Or is there a way I can get back the actual mozilla
NativeArray type ?
Re: which collection to use ...Patricia Shanahan wrote: ... In any situation where the system is multi-tasking (and Java is always multitasking to a first approximation because there are at least two threads running) its meaningless to measure elapsed time. ... the number of items and the key value distribution are both vital information which you didn't provide. ... If your item swap method is very fast and the key comparison is slow (e.g. a lexicographic string comparison over multiple keys rather than comparing single integer keys) then you'll find in practice that a Replacement sort is several times faster than Quicksort. ... (comp.lang.java.programmer)
Re: Maple ... | Even after receiving notice of the termination of our license... | binaries for the Java Runtime Environment and Java Development ... | Separate Licenses for Research and Distribution... Then the Netscape browser got less popular. ... (sci.math.symbolic)
Re: Java problem ... You may install the Sun...Fedora does only care about software, which is part of its distribution.... about Sun java integration and customers have to pay for it. ... (Fedora)
Re: Java problem ... You may install the Sun...Fedora does only care about software, which is part of its distribution.... about Sun java integration and customers have to pay for it. ... (Fedora)
Re: Java problem ... And why it ships something that executes with the name java that probably doesn't pass the compatibility tests. ... The problem wouldn't exist if the distribution included a java-*-sun-compat package of perfectly legal symlinks. ... The fedora-shipped not-java program that executes with the java name does just as much damage and shouldn't be named java until it passes the compatibility tests.... that you can do that without conflicts with the Fedora version. ... (Fedora)