This site requires JavaScript, please enable it in your browser!
Greenfoot back
AlbrechtMehl
AlbrechtMehl wrote ...

2012/1/31

Installation questions

AlbrechtMehl AlbrechtMehl

2012/1/31

#
I want to install GF under opensuse Linux 11.4, kde 4.6.0. In the page http://www.greenfoot.org/download I found the file greenfoot-212.deb As I am familiar with *.rpm files, but not with *.deb files I asked in the newsgroup alt.linux.suse abou what to do. I then was directed to the page http://www.greenfoot-center.de/download.html and there to the file java -jar Greenfoot-generic-212.jar which should be easily installed by java -jar Greenfoot-generic-212.jar Why is on the download page - and for the beginner this should be the starting point, should it not? - no hint to the *.jar file? 2. On the page http://www.greenfoot-center.de/download.html one finds at the bottom the following hint ------------------------------------------------------------- choose within the installation program the directory where GF should be stored and where the JDK directory is ------------------------------------------ As I do not understand this and do not want to make any mistakes when installing I have two questions: (1) Is there one directory to be named or are there two, i.e. should the GF stored in the same directory as is already JDK? (For two directories I would have expected 'choose the directory where GF should be stored and the directory where JDK is' (2) Searching for JDK I find /usr/lib64/jvm/java-1.6.0-opendjk-1.6/jre/bin Which directory in this long path is the one to be used, he bin or java-1.6...... or whatever? My questions may appear to some people to be quite silly. But they are also due to the not so exact formulation on the cited page. I am quite sure that once this obstacle has been tackled everything will be OK. A. Mehl
plcs plcs

2012/1/31

#
Hi A. Mehl, You are right about having to do java -jar *.jar, I will look to add something to guide future users. You do not need to put Greenfoot folder in the same directory or within your JDK folder, mine is in my home directory and the JDK location should just be the opening part: /usr/lib64/jvm/java-1.6.0-opendjk-1.6/
AlbrechtMehl AlbrechtMehl

2012/2/7

#
Thank you very much for your reply. I did exactly what you had recommended, i.e. I started the installation by java -jar Greenfoot-generic-212.jar I then inserted - for the installation directory: /usr/local/bin - for the Java directory: /usr/lib64/jvm/java-1.6.0-opendjk-1.6/ But ... this did _not_ work, I got an error message instead: ======================================================= The Java directory you have specified is not a valid JDK directory. The JDK directory is the directory that JDK (aka Java 2 JDK) was installed to. It must have a subdirectory "lib" with a file named "tools.jar" in it. ======================================================= Someone told me: ================================================== Ich habe nicht openjdk, sondern Sun JDK installiert. Dort gibt es im Unterverzeichnis "lib" (genauer: unter /usr/lib64/jvm/java-1.6.0-sun/lib) eine Datei tools.jar! I have installed not openjdk, but Sun JDK. There is within the directory /usr/lib64/jvm/java-1.6.0-sun/lib a file tools.jar ============================================= Does this mean that I should deinstall opendjk and replace it by SUN DJK? Maybe it would be a good idea to touch this subject in the planned overhaul of the documentation as well. Let me thank you again for your help. A. Mehl
nccb nccb

2012/2/8

#
Hi Albrecht, It should work with OpenJDK. A few things: 1. The path "/usr/lib64/jvm/java-1.6.0-opendjk-1.6/" contains a typo (that should be JDK, not DJK), I don't know if you made the typo copying the path to the forum post (in which case, never mind) or if that might be part of the problem. 2. Installing to /usr/local/bin will require superuser privileges. I'd start by installing it to somewhere in your home directory to see if that works (e.g. I installed to "/home/neil/greenfoot-generic"). 2. What is the output of running "locate lib/tools.jar"? On my Ubuntu system I get back: /usr/lib/jvm/java-1.5.0-gcj-4.4/lib/tools.jar /usr/lib/jvm/java-6-openjdk/lib/tools.jar /usr/lib/jvm/java-6-sun-1.6.0.20/lib/tools.jar This means that for the JDK path, I could give "/usr/lib/jvm/java-6-openjdk" or "/usr/lib/jvm/java-6-sun-1.6.0.20". That command should help you to work out exactly what your JDK path is.
ionel.maftei ionel.maftei

2014/5/2

#
I want to install JDk 1.6 for greenfoot. Help me!
You need to login to post a reply.