Menu

Clarification on instructions

Help
2003-01-08
2003-01-08
  • Ryan Barker

    Ryan Barker - 2003-01-08

    I think it would help a lot of people out if the instructions on running the profiler were updated.  Here is what I had to do to get the program running under WINNT:

    Installation:
    1) Download JDK 1.4X and install it
    2) Set environment variable JAVA_HOME to the installation directory. This is done under win2K by Start Menu->Settings->Control Panel->System->Advanced->Environment Variables->New
    3) Download JTreeProfiler and unzip it to a directory (C:\jprofiler-1.1.1 below)
    4) Download ANT from http://ant.jarkarta.com and install it
    5) Open a command prompt (Start->Run->CMD) and change the directory to the JTreeProfiler directory (cd \jprofiler-1.1.1 for example)
    6) run command: ant

    How to Profile:
    A) Regular program
    1) Open a command prompt (Start->Run->CMD) and change the directory to your program location
    2) run command: %JAVA_HOME%\bin\java -Xrunjprofiler -cp "C:\jprofiler-1.1.1" your.class.here arg0 arg1 arg2...

    B) Local Applet:
    %JAVA_HOME%\bin\java -Xrunjprofiler -cp "C:\jprofiler-1.1.1" sun.applet.AppletViewer file:///"C:\your\directory\here\your.applet.file.here.html"

    C) Remote Applet:
    %JAVA_HOME%\bin\java -Xrunjprofiler -cp "C:\jprofiler-1.1.1" sun.applet.AppletViewer http://your.url.here

    How to view the profile:
    1) Open a command prompt (Start->Run->CMD) and change the directory to the JTreeProfiler directory (cd \jprofiler-1.1.1 for example)
    2) ant show

    Hope this helps anyone who was struggling like I was.

     
    • Ryan Barker

      Ryan Barker - 2003-01-08
       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.