Solved

appletviewer JIT?

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 91
allswap challenge 6 99
numbers ascending pyramid 101 195
Java Options in Zimbra Server 2 54
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

777 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