Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

appletviewer JIT?

Posted on 1998-02-23
4
Medium Priority
?
394 Views
Last Modified: 2006-11-17
Does appletviewer support the Just In Time Compiler? If yes, do you still invoke a full immediate compile in the same manner as  a JIT capable browser?
0
Comment
Question by:kevinhol
  • 2
4 Comments
 

Expert Comment

by:kaleemaziz
ID: 1233209
Instead of answering your question here (since you seem to have heard things about JIT), I'd like you to refer Java Unleashed book in the ending chapters. You'll find it faster by searching in the index for 'just-in-time' compilers. If you cannot afford buying or refering Java Unleashed book, you can go through it on-line at http://www.developer.com. A link 'REFERENCE' will take you to 'more than 100 books on-line ...' link. Click here and you'll see several topics, including Java. Click on Java and lo, there you have Java Unleashed text book ready on-line! You can find several books here that will be helpful to you in your career.
Regards.
                                                 Kaleem Aziz.
0
 

Author Comment

by:kevinhol
ID: 1233210
I don't know what the exact definition of an answer here is at Experts Exchange, but I'm pretty sure this doesn't qualify. However, if I was in need of a generic reference to an answer for all my Java inquireries, this copy/paste one would take the cake.
0
 
LVL 1

Accepted Solution

by:
ashishagarwal earned 210 total points
ID: 1233211
Yes, Applet viewer uses the JIT compiler whci comes with Java performance pack. The ways to invoke it are :

you must set the JAVA_COMPILER
environment variable to the value "symcjit". Use the following command
from the DOS prompt:

      set JAVA_COMPILER=symcjit

When the JAVA_COMPILER environment variable is set, the JIT compiler
will be the default compiler invoked by the command-line tools.

An alternative way of invoking the JIT compiler is to set the value of
the java.compiler property to "symcjit". With the javac and
appletviewer tools, you can do this as follows:

      appletviewer -J-Djava.compiler=symcjit MyApplet.html
      javac -J-Djava.compiler=symcjit MyApp.java


0
 

Author Comment

by:kevinhol
ID: 1233212
Thanks I think this answered my question.  However I was under the impression that I could invoke an immediate Just In Time compile from within the source code. If you can quickly answer that one, could you please e-mail at kevinh@natech.com since this Q/A will be close.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question