Forum Discussion

fugmag's avatar
13 years ago

Installing loadui without intenet connection?

Hi,
When installing LoadUI I get the message: "The installer will now install JavaFX, when the JavaFX installation has been completed" I click 'Next' but then get the Application error: "Unable to import the application" and clicking on the details I get the exception:

CouldNotLoadArgumentException (could not load file/URL specified: http://dl.javafx.com/1.3/javafx-rt-jnlp)
at...
...
It seems like there is some online updating during the installation, but I am behind a strick firewall and I wonder if it is possible to download the files that the loadui installer tries to get from the intenrnet, manually and tell loadui to use these instead of trying to download from the intenet?

Cheers
Magnus

5 Replies

  • mmoser18's avatar
    mmoser18
    Frequent Contributor
    Same here! Our servers are shielded from the internet (both ways) and when I tried to install loadUI on one of our spare servers to run a load-test against a bunch of other servers, the installation failed with the same error.

    I then downloaded and installed the latest JavaFX manually beforehand, hoping the installer would be clever enough to recognize that fact and then NOT try to reach out and abort the installation, but not so! It still tries to access the internet, fails and the install aborts. >:(

    Result: no load-tests using loadUI! Now seeking another tool that fits the job. What a pity!
    Or ist there *any* way to trick it to avoid this access and instead continue with the installation?

    M.
  • mmoser18 wrote:
    I then downloaded and installed the latest JavaFX manually beforehand, hoping the installer would be clever enough to recognize that fact and then NOT try to reach out and abort the installation, but not so! It still tries to access the internet, fails and the install aborts. >:(

    You need to install JavaFX 1.3.1 SDK for this to work, not JavaFX 2...

    In the upcoming release of loadUI, an Internet connection will not be needed.
  • mmoser18's avatar
    mmoser18
    Frequent Contributor
    Oh my goodness! What have to done to tie loadUI to this outdated JavaFX version? I actually had to search and dig to still find this EOL-ed SW on Oracle's website somewhere.

    But anyway, I gave it a try: I first uninstalled JavaFX 2.x and the old loadUI fragments (i.e. I also deleted the corresponding subdirectories). Then I installed first JavaFX v1.3.1 (which installed fine on top of the already present Java 1.6.0 update 37. I also defined a JAVAFX_HOME environment variable manually, since I had seen that being used in the loaduitest.bat-file before) and then I installed loadUI v2.1.1.

    After the dialog that the installer will now be downloading and installing JavaFX 1.3.1 I see a Java *7* splashscreen (where does that come from? That must be coming from the loadUI installation itself, because there was no Java 7 on that server beforehand! And indeed, there is an entire jre subdirectory underneath the loadUI install directory!). And then shortly after the installer fails with the very same darn error message, namely that it is unable to access the URL http://dl.javafx.com/1.3/javafx-rt-jnlp!

    So, what brings?

    M.

    PS.: My guess, it, that the use of Java 7 is cause of the issue here, because that already comes with the newest JavaFX included.
  • mmoser18's avatar
    mmoser18
    Frequent Contributor
    OK - a few attempts later, after again copying the entire installation directory over from a system on which loadUI was workingm, and starting loadUI now using loadUItest.bat it indeed finally comes up and works!

    Beats me, why these steps hadn't worked in the first run (because I HAD read and followed these instructions before!) but now it finally works!

    Hope, that new version is out soon!
    M.

    PS.: Henrik - please delete my other thread "Don't waste..."! Regards and thanks for your patience!
  • Hi. I had the same problem like this, and spent some hours yesterday to find a solution.. And I have the solution to fix this problem, and how to install LoadUI without an internet connection.

    Here is the instructions to install LoadUI + javafx-rc (javafx seems to be the problem without an internet connection). You must have one computer with an internet connection to be able to install (the instructions from smartbear would not work for me, because of closed strict intranet connection @ work), this is what you have to do:
    Prep:
    1. Download and install LoadUI on a computer with internet connection, start it ant let it download/install javaFx.
    2. Copy the whole folder (loadUI) to the computer with no connection.
    Step 1:
    1. Download the repo file: http://dl.javafx.com/1.3/javafx-rt.jnlp
    2. Open the downloaded file with "notepad++" and look at the code.
    3. In the file you will se <resources> and "href=progressbar__V1.3.1_b101.jar"
    4. The 6 first "href=" is the files you will need to download (these are for windows).
    5. You can download these by combining http://dl.javafx.com/1.3/ with the href="some text" (example: http://dl.javafx.com/1.3/progressbar__V1.3.1_b101.jar)
    6. When these 6 files have been downloaded (be sure that you change the file from .gz to .jar) add all the files in a folder @ (example: C:\LoadUIFx) + the javafx-rt.jnlp file.
    Step 2:
    1. Edit the javafx-rt.jnlp file with notepad++, you have to set @ <jnlp> codebase="sometexthere" to codebase="", and href="javafx-rt.jnlp" to (example: href="file:///C:\LoadUIFx\javafx-rt.jnlp"). You will by doing that refer to a local file not a file on the internet.
    2. Still edit the href="some text" position for all the files you downloaded to refer to the local files (example: href="file:///C:\LoadUIFx\progressbar__V1.3.1_b101.jar") Its important that you just edit the href="sometext" to correspondent OS (os="Windows" if windows). When this is done, remove the <resources><resources/> for os you don´t use. ´DO not remove the last part of the text in the file <component-desc ...../><jnlp/>
    3. Good now its ready to go to the all-ready installed loadUI-2.1.1 folder
    Step 3:
    1. You will now have to choices og edit: if number 2 fails try number 3 (number 2 must be changed)
    2. Edit the file loadUI.jnlp file in notepad++: locate the area: <extension name="javaFX Runtime" href="some text"/> edit the href="some text" to refer to the downloaded javafx-rt.jnlp file stored on hdd (example href="file:///C:\LoadUIFx\javafx-rt.jnlp"). Save the changes. When you know start loadUI, the program will look for the repo file (javafx-rt.jnlp on HDD not thru internet) and the repo file refers to the files needed (thise files are also on HDD). Great, its working.!
    3. If this fails, edit the updateJavaFx.bat file with notepad++, change the last part after -import to be referring to the local javafx-rt.jnlp file (example: jre\bin\javaws -import C:\LoadUIFX\javafx-rt.jnlp).Save the changes. Run the .bat file. After this start the loadUI-2.1.1.exe.

    If you do these steps (takes about 5 to 10 min), it will work 100% guaranteed (if its a javafx download problem).
    Great, thanks.