Under Ubuntu 8.04:
- To install JAVA:
- System -> Administration -> Synaptic Package Manager
- Install the package sun-java6-jre
- To open the file xlogo.jar double-clicking:
- Right click on xlogo.jar, Properties
- Tab “Open With”: Choose Sun Java 6 Runtime
- To associate extensions lgo to XLOGO:
- Right click on xlogo.jar, Properties
- Tab “Open With”
- Button “Add”
- Field “Use a custom command”, write:
java -jar path_to_xlogo.jar
Note: XLOGO is included in distribution OpenSuse.
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):
- Start -> Control Panel -> Switch to Classic View -> Folder options
- Click on the tab File Types (the third tab)
- Find in the list of registered file types those connected with jar files (jar files, executable jar files, jar
archive, etc)
- Click the file type, and then click Advanced...
- A new window will appear: click on Open, and then Edit...
- Click on Browse... and navigate to javaw.exe; this is usually
c:\Program Files\java\j2re1.4.1\bin\javaw.exe
- 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).
- 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.
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:
- Start -> Control Panel -> Switch to Classic View -> Folder options
- Click on the tab File Types (the third tab)
- Find in the list of registered file types those connected with jar files (jar files, executable jar files, jar
archive, etc)
- Click the file type, and then click New
- Type the extension .lgo into the File Extension box, and click OK
- Click on the newly-added LGO entry in the list of Registered file types, and then click Advanced...
- A new window will appear: click on New...
- 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
- Click on Open to add the path to the Actions box of the Edit File Type dialogue.
- Click on open, and then Edit...
- 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" %*
- Finally, close all the dialogue windows. Now all you should have to do is to double-click on the file icon to
launch XLOGO!