2.1 XLOGO Configuration

2.1.1 Linux Environment

Under Ubuntu 8.04:

  1. To install JAVA:
  2. To open the file xlogo.jar double-clicking:
  3. To associate extensions lgo to XLOGO:

Note: XLOGO is included in distribution OpenSuse.

2.1.2 Windows Environment

In theory, if you double-click on the XLOGO icon, the program should launch. If this is the case, go on to the next section. If not, and another application is launched instead (something like winzip, perhaps), this is because .jar files are in fact .zip files, and these are themselves executable (ie a program can be launched by clicking on them). If your computer opens a program like winzip, it is because from its point of view files with a .jar extension can only be opened with that program. You therefore have to deactivate the association of that program with .jar files. To do that, follow these steps for Windows XP (some paths may differ depending on the flavour of Windows you are running, and you will have to adjust them):

  1. Start -> Control Panel -> Switch to Classic View -> Folder options
  2. Click on the tab File Types (the third tab)
  3. Find in the list of registered file types those connected with jar files (jar files, executable jar files, jar archive, etc)
  4. Click the file type, and then click Advanced...
  5. A new window will appear: click on Open, and then Edit...
  6. Click on Browse... and navigate to javaw.exe; this is usually

    c:\Program Files\java\j2re1.4.1\bin\javaw.exe

  7. The path “c:\Program Files\java\j2re1.4.1\bin\javaw.exe” will then appear in the field Application used to perform action:. You need to make an addition to the end of this, so that it reads:

    "c:\Program Files\java\j2re1.4.1\bin\javaw.exe" -jar "%1" %*

    (note that there is a space on either side of -jar).

  8. Finally, close all the dialogue windows. Now all you should have to do is to double-click on the file icon to launch XLOGO!

If that still doesn’t work, there is a second possibility. Open an MSDOS box (on XP: Start -> All Programs -> Accessories -> Command Prompt), and then type in the following command:

java -jar \path\to\XLogo  
 
For example : java -jar c:\windows\office\xlogo.jar  

(if xlogo.jar is located in this folder).

If you find it annoying to have to keep typing this command, type it into a text file and save it as (say) xlogo.bat. You can then just double-click on xlogo.bat to launch XLOGO.

Associating files with the extension .lgo with XLogo

Files with the extension .lgo will not usually be recognised by your computer, and when you double-click on them, a dialogue box will appear asking you which application should be used to open files with the .lgo extension. Select other and then give the path to javaw.exe

Usually, this will be: C:\Program Files\java\j2re1.4.1\bin\javaw.exe

You will have to input a name to designate files with an .lgo extension.
For example: Logo Files
To set this up as a default on Windows XP, follow the steps below:

  1. Start -> Control Panel -> Switch to Classic View -> Folder options
  2. Click on the tab File Types (the third tab)
  3. Find in the list of registered file types those connected with jar files (jar files, executable jar files, jar archive, etc)
  4. Click the file type, and then click New
  5. Type the extension .lgo into the File Extension box, and click OK
  6. Click on the newly-added LGO entry in the list of Registered file types, and then click Advanced...
  7. A new window will appear: click on New...
  8. Under Action, enter "open", and then click on Browse... to navigate to javaw.exe; this is usually

    c:\Program Files\java\j2re1.4.1\bin\javaw.exe

  9. Click on Open to add the path to the Actions box of the Edit File Type dialogue.
  10. Click on open, and then Edit...
  11. The path “c:\Program Files\java\j2re1.4.1\bin\javaw.exe” will be in the field Application used to perform action:. You need to make an addition to the end of this, so that it reads:

    "c:\Program Files\java\j2re1.4.1\bin\javaw.exe" -jar xlogo.jar "%1" %*

  12. Finally, close all the dialogue windows. Now all you should have to do is to double-click on the file icon to launch XLOGO!