SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Feb 2001
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Java application using InstallAnywhere

    Hi, all
    I am using SilkTest 5032 to test two Java application deployed using InstallAnywhere. I copied the SilkTest_Java2.jar to the /lib directory( all *.jar file are in this directory) and add the classpath to point to this file.

    SilkTest can recognize all components in one application but none of components in other application.

    Is anyone can help me to solve this problem?

    did anyone follow the instruction in the help of silktest and successfully recognize the java components? I think the instruction in the help file is not very clear. I am not sure if my way to add silktest_java2.jar in to .lax file is correct or not?


    Thank in advance.

    tong

  2. #2
    rg
    rg is offline
    Member
    Join Date
    Feb 2000
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Java application using InstallAnywhere

    You *DO* need to modify the LAX file. You may also need to register your application to use the Java extension (if your application is launched by something other than java.exe). You need to do this in the Extensions Enabler and under Options/Extensions. Hit the New button and type in the name of the executable and hit ok. Then check the Java checkbox against it in the list.

    Note: if the name of your application contains spaces, it may cause trouble so just rename the executable so it doesn't have spaces. I ran into this issue myself!

  3. #3
    Junior Member
    Join Date
    Feb 2001
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Java application using InstallAnywhere

    Hi rg,

    Thanks for your instruction.

    As I am not familiar with InstallAnyWhere, I am not sure if the modification I did in LAX file is correct.

    What I did is just copy SilkTest_Java2.jar in the lib directory and then modify the classpath in LAX file to add an entry point to this file.

    Is this correct or not?

    If not, would you please give me more instruction about how to modify the LAX file? How can I add a full classpath in the LAX classpath?


    attached is the LAX file in my application. I had already added SilkTest_Java2.jar in the classpath.


    Thanks in advance.


    Tong

    # LaunchAnywhere (tm) Executable Properties File - Zero G Software, Inc.

    # LAX.APPLICATION.NAME
    # --------------------
    # name given the launcher in console windows

    lax.application.name=ServicePATH Client 1.5.exe


    # LAX.CLASS.PATH
    # --------------
    # the Java classpath necessary to run this application
    # Can be separated by colons or semicolons

    lax.class.path=SilkTest_Java2.jar;lib/ClientR1_5.jar;lib/presentation.jar;lib/jcbwt362J-classes.zip;lib/jctable362J-classes.zip;lib/symtools.jar;lib/symbeans.jar;lib/jcfield362J-cl asses.zip;lib/jcchart362J-classes.zip;lib/OBNaming.jar;lib/OB.jar;lib/sfc.jar;lax.jar


    # LAX.COMMAND.LINE.ARGS
    # ---------------------
    # what will be passed to the main method -- be sure to quote arguments with spaces in them

    lax.command.line.args=$CMD_LINE_ARGUMENTS$


    # LAX.DIR
    # -------
    # path to directory holding LaunchAnywhere's native launcher

    lax.dir=C:\\Program Files\\SQMR15\\


    # LAX.MAIN.CLASS
    # --------------
    # the class that contains the main method for the application

    lax.main.class=csmclient.PWindow


    # LAX.MAIN.METHOD
    # ---------------
    # the method in the main class that will be invoked

    lax.main.method=main


    # LAX.NL.CURRENT.VM
    # -----------------
    # the VM to use for the next launch

    lax.nl.current.vm=C:\\Program Files\\SQMR15\\jre\\bin\\java.exe


    # LAX.NL.JAVA.LAUNCHER.MAIN.CLASS
    # -------------------------------
    # main class of LaunchAnywhere's java launcher -- do not adjust

    lax.nl.java.launcher.main.class=com.zerog.lax.LAX


    # LAX.NL.JAVA.LAUNCHER.MAIN.METHOD
    # --------------------------------
    # main method of LaunchAnywhere's java launcher -- do not adjust

    lax.nl.java.launcher.main.method=main


    # LAX.NL.MESSAGE.VM.NOT.LOADED
    # ----------------------------
    # text to show the user in a dialog if NO VM can be found.

    lax.nl.message.vm.not.loaded=The application either could not find a Java VM, or the Java VM on this system is too old. The application requires Java 1.1.5, Microsoft Java version 2750, or Mac OS Runtime for Java 2.0. These can be downloaded from http://java.sun.com/products/jdk/1.1/jre/ or http://www.microsoft.com/java or http://www.apple.com/java


    # LAX.NL.VALID.VM.LIST
    # --------------------
    # a string containing one or more of JDK JRE MSJ MRJ delimited by spaces or commas.
    # if the native launcher cannot find the current vm,
    # it will search for ones in this list

    lax.nl.valid.vm.list=JDK JRE MSJ MRJ


    # LAX.NL.WIN32.MICROSOFTVM.MIN.VERSION
    # ------------------------------------
    # The minimum version of Microsoft's VM this launcher will run with

    lax.nl.win32.microsoftvm.min.version=2750


    # LAX.ROOT.INSTALL.DIR
    # --------------------
    # path to the installdir magic folder

    lax.root.install.dir=C:\\Program Files\\SQMR15


    # LAX.STDERR.REDIRECT
    # -------------------
    # leave blank for no output, "console" to send to a console window,
    # and any path to a file to save to a file

    lax.stderr.redirect=


    # LAX.STDOUT.REDIRECT
    # -------------------
    # leave blank for no output, "console" to send to a console window,
    # and any any path to a file to save to a file

    lax.stdout.redirect=


    # LAX.USER.DIR
    # ------------
    # left blank, this property will cause the native launcher to not
    # alter the platform default behavior for setting the user dir.
    # To override this you may set this property to a relative or absolute path.
    # Relative paths are relative to the launcher.

    lax.user.dir=.


    # LAX.VERSION
    # -----------
    # version of LaunchAnywhere that created this properties file

    lax.version=2.5

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:55 AM.

Copyright BetaSoft Inc.