Solved

appletviewer JIT?

Posted on 1998-02-23
4
359 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 70 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Error in @AspectJ Based AOP with Spring 2 23
eclipse buid path vs tomcat lib path 10 37
Selenium docs api java index 3 63
import as existing maven project 3 33
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
The viewer will learn how to implement Singleton Design Pattern in Java.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

679 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