SPONSORS:






User Tag List

Results 1 to 10 of 10
  1. #1
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SilkTest_Java2.jar with InvokeJava problem

    Hello..

    I have been trying to work with the InvokeJava method since, for my application I have a JTable which has been modified to be a treetable, and i cannot get values from the tree column. anyway, I was running the InvokeJava example for JTreeGetText on test app JFC11 which comes with silk. I could only get it to work on the test application if the SilkTest_Java2.jar file was not in the JRE\lib\ext directory. Anyone have a problem with InvokeJava and SilkTest_Java2.jar in the JRE\lib\ext directory.
    Thanks
    Tim

    ------------------

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    The only thing putting files in the ext dir is to add them to the classpath--- so try adding the file to your classpath on the machine and at runtime.

    anthony

    ------------------

  3. #3
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    I have in my classpath: .;C:\Program Files\Segue\SilkTest\JavaEx;C:\Program Files\Segue\SilkTest\JavaEx\SilkTest_Java2.jar

    When i take the SilkTest_Java2.jar file out of the JRE\lib\ext and do record declarations nothing is recognized but the JavaJFCMainWindow so i guess i need the file in the JRE\lib\ext.

    ------------------

  4. #4
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    You will run into many issues with having the segue jar in the EXT dir.
    You must get your application to work without putting the
    jar in the ext direction. Silk is not meant to work
    that way and you will see the exact issue your seeing
    now...unexplainable events (I use invokejava and it
    DOES NOT WORK when I place the jars in the ext dir)

    Anyhow, I suggest you search around the board for
    how to setup your application. It varies if you
    are running via a batch file or via some sort
    of .exe loader type.

    Bottom line is when your application is ran,
    you must have "java.exe cp SegueJarHere;TheApplicationsCPHere"
    and it will work.

    Anthony


    ------------------

  5. #5
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    Thanks..
    I am loading our application using Java Web Start, (which am not to familar with) but I have gotten the basic ideas. I know it is using my system classpath. I think I will have to look into loading using a batch file but to load our application is tricky due. But I think since I am not putting the application directory in my classpath I am running into this problem.. Any Ideas

    ------------------

  6. #6
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    You must use the MS-DOS style window naming, such as:
    .;c:\PROGRA~1\Segue\SilkTest\JavaEx\SilkTest_Java2 .jar;

    ------------------

  7. #7
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    Hey, Sorry about that.. I have it with the PROGRA~1.. I just wrote it wrong

    ------------------

  8. #8
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    Well, I have found out that since I use Java Web Start to load our application I need the SilkTest_Java2.jar file in the JRE\lib\ext directory. Has anyone had problems with InvokeJava using Java Web Start? I Guess I will have to play around more and see what I come up with.

    ------------------

  9. #9
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    InvokeJava does not work when you put your classfiles in the EXT directory.
    You should not be putting files in there with Silk.

    You will have to find out how to start your application
    with a batch file--OR dont user invokeJava

    Anthony

    ------------------

  10. #10
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest_Java2.jar with InvokeJava problem

    Thanks.. I will look into it.. How about InvokeMethods (Will I have the Same Problem)

    ------------------

 

 

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 07:21 PM.

Copyright BetaSoft Inc.