OS/2, eCS & ArcaOS - Technical > Applications

Java applications

<< < (5/63) > >>

ivan:
Martin, you did note that both of those programs require the JDK or SDK in OS/2-eCS speak not the runtime.

I might see about downloading one of them over the weekend and see if I can do anything with it.

ivan:
OK, I downloaded greenfoot (because it was a small download). 

The generic jar file is an installer which works without any apparent problems.  It creates a shell script (it appears to assume that our system is linux because we are using openjdk6) which I now have to interpret for OS/2 to use.

The script is below if anyone would like to venture an interpretation it would be helpful.

#!/bin/sh
APPBASE="f:\java-apps\greenfoot"
JAVAPATH="F:\openjdk6-sdk-ga5"
CP="$APPBASE/lib/bluej.jar:$JAVAPATH/lib/tools.jar"
"$JAVAPATH/bin/java" -cp "$CP" bluej.Boot -greenfoot=true -bluej.compiler.showunchecked=false "$@"
 

Andy Willis:

--- Quote from: ivan on September 21, 2013, 04:59:49 pm ---OK, I downloaded greenfoot (because it was a small download). 

The generic jar file is an installer which works without any apparent problems.  It creates a shell script (it appears to assume that our system is linux because we are using openjdk6) which I now have to interpret for OS/2 to use.

The script is below if anyone would like to venture an interpretation it would be helpful.

#!/bin/sh
APPBASE="f:\java-apps\greenfoot"
JAVAPATH="F:\openjdk6-sdk-ga5"
CP="$APPBASE/lib/bluej.jar:$JAVAPATH/lib/tools.jar"
"$JAVAPATH/bin/java" -cp "$CP" bluej.Boot -greenfoot=true -bluej.compiler.showunchecked=false "$@"

--- End quote ---
f:\openjdk6-sdk-ga5\bin\java -cp f:\java-apps\greenfoot\lib\bluej.jar;f:\openjdk6-sdk-ga5\lib\tools.jar bluej.Boot -greenfoot=true -bluej.compiler.showunchecked=false "$@"
Not fully certain what the $@ is... it may be picking up a command line argument (which a quick search seems to confirm).

ivan:
Thanks Andy, that gets it up and running.

The only thing missing is starting firefox, which it appears to want to do.  It supposedly uses the JDK browser starting functions to, first see if there is a running instance of firefox and then, if not, start it.

The score of 0 is because I was watching what happened rather than doing anything with it.

Martin Iturbide:
Thanks Ivan, Andy.

I was not able to make GreenFoot to run. I had installed the SDK but the installer didn't allowed me to continue.

I will try it out.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version