Author Topic: Java applications  (Read 258675 times)

Jan-Erik Lärka

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 275
  • Karma: +5/-0
    • View Profile
Re: Java applications
« Reply #15 on: January 03, 2013, 12:15:31 pm »
I've run a couple of applications you may want to try out as well

GenealogyJ -  to keep track of your ancestors.
You can import information from standardised format or add your own info.
It work quite well and can print to native OS/2-eCS printers, both text/table and the graphical representation of the family tree. It also write svg, png and PDF files that one can use further.
There are several variants of Report and Charts to choose from.

JDownloader - to download files from various file sharing sites.
You can use it both as member of a file sharing site(s) and as free user.
The built in/shipped unrar library doesn't work, you need to rely on native tools.
Use zip 3.0 to merge split zip archives or Zippy to handle all those formats (zip, rar, tar, wpi...).

I use rexx scripts to launch java applications and another one for zip 3.0 on machines that doesn't have Zippy. I'll post the scripts again once the rexx area come up here in the forums.

//Jan-Erik

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #16 on: January 03, 2013, 05:12:41 pm »
About SmartGit, it seems that version 3.0.11 uses SWT (eclipse SWT component) that we don't have migrated to eCS-OS2. That's why I'm using version 2.1.8. (that was a quick analysis I did before, anybody is welcome to deny this).
    ​
SmartGit 2.1.8 runs fine on eComStation, the issue is that to connect to GitHub is seems to have some certificates (or some security stuff) that are not working on our OpenJDK.

If anybody around is using Linux with OpenJDK and can try SmartGit 2.1.8 to connect to Github it will be appreciated.

Regards
Martin
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Neil Waldhauer

  • Hero Member
  • *****
  • Posts: 1024
  • Karma: +24/-0
    • View Profile
    • Blonde Guy
Re: Java applications
« Reply #17 on: September 20, 2013, 05:18:57 pm »
Hi Martin (or anyone who knows),

I'm looking at all the code you uploaded to github, so I now wonder if you resolved the problem of using SmartGit with github.
Expert consulting for ArcaOS, OS/2 and eComStation
http://www.blondeguy.com

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #18 on: September 20, 2013, 09:53:19 pm »
Hi Neil

Sorry, I don't have a way to work SmartGit with eComStation. I had been using git.exe on eCS to upload some source code. (I use smartgit on the Windows partition).

I wrote this quick article of using git and github on eComStation: http://www.edm2.com/index.php/Using_Git_under_eComStation
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #19 on: September 20, 2013, 09:56:30 pm »
About some other Java apps.

I noticed GreenFoot (http://www.greenfoot.org/door) and Alice (http://www.alice.org/index.php) but I was no able to make them run. Not because of any error, I just didn't found the right way to call the .jar.  (both seems to be platform independent, but I don't know).

Regards.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Java applications
« Reply #20 on: September 20, 2013, 10:43:40 pm »
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

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Java applications
« Reply #21 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 "$@"
 

Andy Willis

  • Sr. Member
  • ****
  • Posts: 292
  • Karma: +7/-0
    • View Profile
Re: Java applications
« Reply #22 on: September 22, 2013, 01:45:25 am »
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 "$@"
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

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Java applications
« Reply #23 on: September 22, 2013, 05:43:20 pm »
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

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #24 on: September 23, 2013, 11:34:29 pm »
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.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Java applications
« Reply #25 on: September 24, 2013, 12:02:17 am »
A couple of things to note Martin.

First run <path to openjdk-sdk\bin> java -jar greenfoot-generic-230.jar  that is the installer.

Second, the installer wants to put tools.jar in the sdk \lib directory.  If it can't do this it will stop working and greenfoot is not installed.

Other than having the openjdk6-sdk-ga5 dir in the root of a drive (in my case f:\ as it where I have space to try things out on this box) and Andy saving me the trouble of working out the script I did nothing that isn't normal when running a java app.

One other thing.  I have now made a program object as follows;

Path and file name
F:\OPENJDK6-SDK-GA5\BIN\JAVA.EXE

Parameters
-Duser.home=f:\java-apps\greenfoot -cp f:\java-apps\greenfoot\lib\bluej.jar;f:\openjdk6-sdk-ga5\lib\tools.jar bluej.Boot -greenfoot=true -bluej.compiler.showunchecked=false "$@"

Working directory
left blank

**The parameters are all on one line**

I also made an icon for it.
 

Dave Yeo

  • Hero Member
  • *****
  • Posts: 4786
  • Karma: +99/-1
    • View Profile
Re: Java applications
« Reply #26 on: September 24, 2013, 04:17:54 am »
The $@ is a *nix shell thing which the WPS won't expand (not sure about Java but I doubt it will expand it as well).  Being a program object you can just drop any files on the program object or associate it with the appropriately.

ivan

  • Hero Member
  • *****
  • Posts: 1557
  • Karma: +17/-0
    • View Profile
Re: Java applications
« Reply #27 on: September 24, 2013, 12:43:00 pm »
Thanks Dave.  I thought it had to be something like that but I don't know enough about *nix to be sure - hence my asking for help decoding the script.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #28 on: September 27, 2013, 05:24:10 am »
JClic seems to be working too:

"JClic is a platform for the creation, playing and evaluation of multimedia educational activities, developed in the Java platform."
http://clic.xtec.cat/en/jclic/

Martin Iturbide
OS2World NewsMaster
... just share the dream.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4710
  • Karma: +41/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Java applications
« Reply #29 on: September 27, 2013, 05:34:24 am »
FreeRapid Downloader seems to be working too. I downloaded a YouTube video with it.

"FreeRapid is an easy to use Java downloader that supports downloading from Rapidshare, Youtube, Facebook, Picasa and other file-sharing services, include the new ones like mega.co.nz. "

http://wordrider.net/freerapid/download.html

Martin Iturbide
OS2World NewsMaster
... just share the dream.