[ubuntu-za] Help with running GREENFOOT> error message - bb + cc

Johan Mynhardt johanmynhardt at gmail.com
Thu Nov 28 16:41:32 UTC 2013

>>  hi Werner and Johan, I got this reply in terminal java -jar
> Greenfoot-generic-221.jar
> ""HP-635-Notebook-PC:~$ java -jar Greenfoot-generic-221.jar
> Error: Unable to access jarfile Greenfoot-generic-221.jar
I suspect your jar file is not named Greenfoot-generic-221.jar, or you are
not in the directory where it is located

> re the java version
> java -version
> ""java version "1.7.0_25"
> OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.12.04.2)
> OpenJDK Client VM (build 23.7-b01, mixed mode, sharing)

OK, also try the following:

[johan at johan-laptop ~] ➔ *echo "$JDK_HOME"*

and send back the output.

It does not seem like you have the JDK installed, according to the message
below ("A suitable JDK couldn't be located")

> re typing in GREENFOOT
> ""greenfoot
> A suitable JDK couldn't be located. You may need to edit the
> /usr/bin/greenfoot launch script.
> what does this mean?

That means that it is looking for the JDK specifically, which it can not
find. the command 'java' is present in the JRE and the JDK (Java Runtime
Environment, and Java Development Kit). The JDK contains a JRE. But if only
the JRE is installed, you can't do development stuff like analysing class
files using javap and compile .java source code to class files.

> Rusty
As another attempt to get the generic jar running, try the following:

[johan at johan-laptop ~] ➔ *cd *<enter>
[johan at johan-laptop ~] ➔ *find . -type f -iname "greenfoot*.jar"*

*cd* without any arguments change directory to your home directory.

the *find* command is then run in the current (*.*) directory, searching
for files (*-type f*) matching on the name of the file, case-insensitively
and the matching name "greenfoot<anythinghere>.jar"

If you have any output after that
(./Downloads/greenfoot/Greenfoot-generic-230.jar) in my example, try
running java -jar again like so:

*java -jar ./Downloads/greenfoot/Greenfoot-generic-230.jar*

We can take it from there.

> --
> ubuntu-za mailing list
> ubuntu-za at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-za

Johan Mynhardt

Netiquette Guidelines: http://tools.ietf.org/html/rfc1855
+2772 432 8108 |johanmynhardt[at]gmail.com
http://nuvolari.co.za | http://johanmynhardt.co.za/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-za/attachments/20131128/551378c2/attachment.html>

More information about the ubuntu-za mailing list