OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Greggory Shaw on February 27, 2016, 11:34:35 am

Title: eCS_Java Apps Pack Final
Post by: Greggory Shaw on February 27, 2016, 11:34:35 am
eJava-006.zip, Final and added wget option for programs to the Apps Pack !

http://os2notes.net/os2java6.html


*** All further updates will use small CMD files to add and download new java programs !

(http://os2notes.duckdns.org/images/os2java6/eJava_icons.png)


*** MAKE SURE TO EDIT THE JAVAHOME directory in the Install_eJava.cmd file if using Warp or <= eCS 2.1 ***

JavaHome = ProgramsDir || '\OPENJDK6'

===

Please Test - eJava-006.zip

user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Install: Unzip to your Programs directory or location of choice (eJava is self contain leave alone) and run Install_eJava.cmd (only once).

Usage:  run install only once, separate scripts are included if u need to recreate the icons.
Just unzip over previous version to upgrade.


Any help with links to download the programs and settings please !

Just use this template below (only change the red) for new java programs and post them here !

*****************************
CreateObjects:

rc = CreateObject( 'WPProgram',,
    'jAlbum',,
    '<WP_EJAVA>',,
    'NOTDEFAULTICON=YES;'||,
        'NOPRINT=YES;'||,
        'DEFAULTVIEW=RUNNING;'||,
        ';'||,
        'ICONPOS=2,12;'||,
        'ICONFILE='||CurrentDir||'\icons\os2\jalbum.ICO;'||,
        'EXENAME='||JavaHome||'\BIN\JAVAW.EXE;'||,
        'STARTUPDIR='||JavaProg||'\JALBUM-11.6.14\JALBUM;'||,
        'PARAMETERS=-Xmx192M -jar jEdit.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return

********************

(eCS 2.2 png icons shown )
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on February 27, 2016, 11:43:31 am
UPDATED - Jmol version 14.4.3 has been released (2/18/2016). This is a Java molecular viewer for three dimensional chemical structures; it requires Java 1.4 or higher.

Just download Jmol-14.4.3.CMD to eJava directory and run (eJava-006_Final.zip required).
Title: Re: eCS_Java Apps Pack Final
Post by: David McKenna on February 27, 2016, 05:30:38 pm
Hi Greggory,

 This is a great idea, I gave it a try and I have a couple of comments...

 iintl6i.dll is apparently required for something (got an error because I didn't have it and downloaded it from Hobbes) - that should be mentioned in the README. Also, it wasn't clear that you need to put the archive where it will stay, the files are not copied during install - only objects are created.

 My Java is in \Programs\Java6 and I want to store my java programs in \Programs\JavaApps. It would be nice if the install program asked for these locations (with defaults offered) and then used them for all of the install objects. Maybe create some kind of *.ini file at install that is used by all objects?

  Maybe it would be good if all programs on your server have a generic name (like JMol.zip) that contains the latest version known to work so a user doesn't have to download a new install file just to update - they simply run the same one again.

  Inside the 'eJava Apps' folder created at install is a folder called 'Get eJava Apps' that contains shadows of install files for various apps. It would be nice if there was a directory called '\Get eJava Apps' that had only these files in it and then put a shadow of that directory in the 'eJava Apps' folder. That way, if I copy a new install file to that directory, it automatically shows up in the 'Get eJava Apps' folder.

  I use ImageJ a lot, so here is ImageJ in your template:

CreateObjects:

rc = CreateObject( 'WPProgram',,
    'ImageJ',,
    '<WP_EJAVA>',,
    'NOTDEFAULTICON=YES;'||,
        'NOPRINT=YES;'||,
        'DEFAULTVIEW=RUNNING;'||,
        ';'||,
        'ICONPOS=2,12;'||,
        'ICONFILE='||CurrentDir||'\icons\os2\ImageJ.ICO;'||,
        'EXENAME='||JavaHome||'\BIN\JAVAW.EXE;'||,
        'STARTUPDIR='||JavaProg||'\ImageJ;'||,
        'PARAMETERS=-Xmx256m -jar ij.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<IMAGEJ>',,
    CreateCollision )

return

 Here is the link to it: http://rsb.info.nih.gov/ij/download/zips/ij149.zip and I attached an icon for it. Once installed, you can update ImageJ to the latest version from within ImageJ.

Thanks!

 
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on February 27, 2016, 06:23:48 pm
Hi Greggory,

 This is a great idea, I gave it a try and I have a couple of comments...

 iintl6i.dll is apparently required for something (got an error because I didn't have it and downloaded it from Hobbes) - that should be mentioned in the README. Also, it wasn't clear that you need to put the archive where it will stay, the files are not copied during install - only objects are created.

...

Thanks!

Thanks I added  iintl6i.dll to the download location. However, that seems weird since it's a REXX script, but thanks I didn't notice because of using Yum/RPM.

Yes, the whole thing is self contained for now (lack of programming skills).

I'll follow up with answers to your questions when I get to sit down, and thanks for the program add !


Cheers,

Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on February 27, 2016, 07:01:20 pm
UPDATED - ImageJ is a public domain Java image processing program inspired by NIH Image for the Macintosh. It runs, either as an online applet or as a downloadable application, on any computer with a Java 1.4 or later virtual machine.

Just download eJava_add-ImageJ.zip and unzip it to the eJava directory and run ImageJ.CMD (eJava-006_Final.zip required see first post above).

Thanks to David McKenna !
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on February 29, 2016, 11:51:24 am
Hi Greggory,

 This is a great idea, I gave it a try and I have a couple of comments...

 iintl6i.dll is apparently required for something (got an error because I didn't have it and downloaded it from Hobbes) - that should be mentioned in the README. Also, it wasn't clear that you need to put the archive where it will stay, the files are not copied during install - only objects are created.

Added  iintl6i.dll and updated the README file !

Quote
My Java is in \Programs\Java6 and I want to store my java programs in \Programs\JavaApps. It would be nice if the install program asked for these locations (with defaults offered) and then used them for all of the install objects. Maybe create some kind of *.ini file at install that is used by all objects?

Lack of programming skills again. Can anyone point me in the right direction on this issue. I don't mind figuring thing out, but I need some examples. I would like to ask the user for those two locations and have Rexx create the config file.

Quote
Maybe it would be good if all programs on your server have a generic name (like JMol.zip) that contains the latest version known to work so a user doesn't have to download a new install file just to update - they simply run the same one again.

Very Good idea - I used the new file names as a simple backup. But, your way is much better. I only have to change the file name and add a backup routine (being lazy).

Quote
Inside the 'eJava Apps' folder created at install is a folder called 'Get eJava Apps' that contains shadows of install files for various apps. It would be nice if there was a directory called '\Get eJava Apps' that had only these files in it and then put a shadow of that directory in the 'eJava Apps' folder. That way, if I copy a new install file to that directory, it automatically shows up in the 'Get eJava Apps' folder.

Good idea and thought about it - I have a simple issue with the unzip command on this one (This would help me out /w RsyncBackup too anyone - help).

When the CMD file are in the main directory a simple unzip command is easy (using current dir).  If there is a folder in the the main directory called 'GetApps' - what would the zip command be for that ???  I need to drop down to the main directory, then unzip - using the get current directory variable. 

The 'res' folder (where I want to unzip and 'GetApps' are side by side in the main folder.)  I need to get rid of the last part of the path - CurrentDirectory = e:\programs\eJava\GetApps, then unzip ( e:\programs\eJava\res).  I guess that goes back to lack of a config file (ini) problem, that would solve the location problems for everything !


Thanks David

Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 02, 2016, 07:47:36 am
Re-writing install scripts (almost done) ! Now programs will be installed to users preferred location.

And using David's ideas above. Here are the current programs supported.

Post a request here for your favorite java program to be added to the next version (upload an icon please). Posting a template would be really appreciated :) too.

Changing how programs are updated (now just re-run the script(s) ).

(http://os2notes.duckdns.org/images/os2java6/eJava-008.png)


Cheers,

Greggory


Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 04, 2016, 01:20:44 am
Re-writing install scripts (almost done) ! Now programs will be installed to users preferred location.

And using David's ideas above. Here are the current programs supported.

Post a request here for your favorite java program to be added to the next version (upload an icon please). Posting a template would be really appreciated :) too.

...
Cheers,

Greggory

Almost done, any other ideas or programs to add ?

Rexx help, does some one know how to take user iinput (directories) and write a config file ?
Title: Re: eCS_Java Apps Pack Final
Post by: David McKenna on March 05, 2016, 06:56:11 pm
 Another good one: Cademia, a 2D CAD drawing program found here: http://svn.cademia-consult.com/0815zxa/binary/CADEMIA_E72D-9276-00D9-4B86-9B3D-9E49-C933-A8D4/4.0RC6/CADEMIA_4.0RC6.zip

Here's the template:

rc = CreateObject( 'WPProgram',,
    'CADemia',,
    '<WP_EJAVA>',,
    'NOTDEFAULTICON=YES;'||,
        'NOPRINT=YES;'||,
        'DEFAULTVIEW=RUNNING;'||,
        ';'||,
        'ICONPOS=2,12;'||,
        'ICONFILE='||CurrentDir||'\icons\os2\Cademia.ICO;'||,
        'EXENAME='||JavaHome||'\BIN\JAVAW.EXE;'||,
        'STARTUPDIR='||JavaProg||'\Cademia;'||,
        'PARAMETERS=-jar cademia.jar 2>cademia_bugs.txt;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<CADEMIA>',,
    CreateCollision )

return

 I'll attach an icon.
Title: Re: eCS_Java Apps Pack Final
Post by: onlineuser2 on March 07, 2016, 09:06:39 pm
Hi,
thanks for your work.
Has Freeplane been ported or tested under os/2?
If yes, consider adding it.

onlineuser2
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 08, 2016, 03:35:50 am
Hi,
thanks for your work.
Has Freeplane been ported or tested under os/2?
If yes, consider adding it.

onlineuser2

@David - thx I'll add it for next version and onlineuser2 it's seem to work (latest stable). I'll add too

Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: onlineuser2 on March 08, 2016, 09:15:46 am
Well done!

eCS_Java apps pack is becoming more and more interesting!
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 10, 2016, 04:10:17 am
eJava-008_test.zip released, added new install option !

(http://os2notes.duckdns.org/images/os2java6/eJava_icons.png)

Now install paths are saved and allows you to specify install locations !


http://os2notes.net/os2java6.html


*** All further updates will use small CMD files to add and download new java programs !

- Cademia and Freeplane added (zero testing), see post above for complete list of programs.

*** MAKE SURE THAT THE JAVAPROG  directory exist (where you want java apps installed) ***


===

Please Test - eJava-008_test.zip

user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Install: Unzip to your Programs directory or location of choice  and run Install_eJava.cmd.

Usage:  run install only once, separate scripts are included if u need to recreate the icons. Just unzip over previous version to upgrade (backup first).


Any help with links to download the programs and settings please !

Issues:


- JAVAPROG  directory you specify must exist (working on that help)
- Does the 'Get Java Apps' show up
- Some icons may not be assigned correctly
- Paths maybe wrong if not starting (check and report please).


Thank you Jan-Erik, Johnny, David, Onlineuser and everyone that tested !

Cheers,

Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: David McKenna on March 10, 2016, 10:08:44 pm
Greggory,

  I can't seem to get any app to install... at first because it couldn't find wget. I moved wget to a directory on the path and now I always get a message like:

[C:\PROGRAMS\JavaInstall\Get eJava Apps]wget -O EJAVA\res\ij149.zip --ftp-user=o
s2user --ftp-password=os2 ftp://os2notes.duckdns.org/eJava/ij149.zip
EJAVA\res\ij149.zip: No such file or directory

[C:\PROGRAMS\JavaInstall\Get eJava Apps]unzip EJAVA\res\ij149*.zip -d JAVAPROG\j
ImageJ
unzip:  cannot find any matches for wildcard specification "EJAVA/res/ij149*.zip
".

No zipfiles found.
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 11, 2016, 05:09:30 am
Greggory,

  I can't seem to get any app to install... at first because it couldn't find wget. I moved wget to a directory on the path and now I always get a message like:

[C:\PROGRAMS\JavaInstall\Get eJava Apps]wget -O EJAVA\res\ij149.zip --ftp-user=o
s2user --ftp-password=os2 ftp://os2notes.duckdns.org/eJava/ij149.zip
EJAVA\res\ij149.zip: No such file or directory

[C:\PROGRAMS\JavaInstall\Get eJava Apps]unzip EJAVA\res\ij149*.zip -d JAVAPROG\j
ImageJ
unzip:  cannot find any matches for wildcard specification "EJAVA/res/ij149*.zip
".

No zipfiles found.

What does the MY_CFG_FILE look like ? The 'EJAVA' variable should have been replaced by the path you entered.

It should look something like this.


eJava = "E:\Programs\Java\eJava"
JavaHome = "E:\Programs\eCS\OPENJDK6"
JavaProg = "E:\Programs\Java\JavaApps"
combined_var = "COMBINED_VAR"

The 'JavaProg' - the directory must exist too

And if you're having problems with wget too, then the MY_CFG_FILE isn't set correctly.

Did you run install again ?


Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: David McKenna on March 11, 2016, 10:20:03 pm
 Here's MY_CFG_FILE:

eJava = "C:\PROGRAMS\JavaInstall"
JavaHome = "C:\Programs\Java6"
JavaProg = "C:\Programs\JavaApps"
combined_var = "COMBINED_VAR"

 I installed by deleting the old install, then copying the archive to the new install directory and running Install_eJava.cmd. The default apps were all installed properly (no 'Get eJava Apps' folder shadow created though - I had to do that manually). When I tried to run any file in the 'Get eJava Apps' folder, I got a 'wget not exist' type error until I copied wget.exe into \ecs\bin. After that I got the errors just shown.

  I could try ro run the install again....
Title: Re: eCS_Java Apps Pack Final
Post by: David McKenna on March 11, 2016, 10:36:15 pm
 After thinking about the situation, I copied the MY_CFG_FILE and wget.exe into the 'Get eJava Apps' folder, and now the scripts work. So it seems the scripts are looking in the wrong place for those 2 files...
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 11, 2016, 11:05:25 pm
After thinking about the situation, I copied the MY_CFG_FILE and wget.exe into the 'Get eJava Apps' folder, and now the scripts work. So it seems the scripts are looking in the wrong place for those 2 files...

That's just another lack of my cut and paste programming skills.  The  MY_CFG_FILE should be copied to the 'Get eJava Apps' folder when the install script is run (there should be two copies, one in each directory).

This is probably easy, but I still don't know how the point the scripts to the MY_CFG_FILE in the main directory ???

So, I just had the install script copy it to the  'Get eJava Apps' folder -  HELP SOMEONE WITH THIS ?

And another easy one - how to create the shadow folder ??? this one is really pissing me off ( it should work).

Your idea with just changing the zip file names saves so much work and time (it changed my mind from quit working on this too).

And going to start using PPWizard for all the CMD, so almost zero work on them after I get that set up ( I use PPWizard on my site).

Another idea from this is to have a SQL database online for all OS/2 program objects and desktop store/re-store !
 Kind of like the old mirgate util /dbase from Warp 4, but the master online with a static file to download.

Easy way to get back lost objects (which really irritates me. since most programs don't have that option) and/or after new OS installs !


Thanks,

Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 14, 2016, 12:16:01 am
UPDATED - Regim version 3.3.1 has been released (12.11.2015 ).

Regim is my software tool for processing astronomical images. Regim is not meant to replace complex image processing systems like Adobe Photoshop or others. It is meant as an addition to them. It makes some processing steps that are unique to astronomical images a bit easier.

These steps are calibration (dark and flat), deblooming, registration, combination, color calibration, gradient removal and some more.

Just download Add_jRegim.zip and unzip it to the eJava directory and run jRegim.CMD (eJava-008_test.zip required).
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 14, 2016, 10:26:48 pm
UPDATED - Cademia  | New version 4.rc has been released.

CADEMIA products are a new generation of certified CAD software for true-to-scale technical drawings and documents. Smart, simple and extremely flexible, CADEMIA offers any CAD user a new way to work.

Just download Add_jCademia.zip and unzip it to the eJava directory and run jCademia.CMD (eJava-xxx.zip required).
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 14, 2016, 10:46:08 pm
UPDATED - Freeplane  | New version 1.3.15 has been released.

Freeplane is a free and open source software application that supports thinking, sharing information and getting things done at work, in school and at home. The software can be used for mind mapping and analyzing the information contained in mind maps.

Just download Add_jCademia.zip and unzip it to the eJava directory and run jCademia.CMD (eJava-xxx.zip required).


Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 15, 2016, 02:33:43 am
UPDATED - GoGui  | New version 1.4.9  has been released.

GoGui is a graphical user interface to programs that play the board game Go and support the Go Text Protocol such as GNU Go.

GoGui has many special features for Go program developers. It supports direct communication with the Go engine over a command shell. The Go engine can be replaced while keeping the current board position. Commands can be configured to display their response graphically on the board. GoGui is avaliable under the terms of the GNU General Public License.

Just download Add_jGoGui.zip and unzip it to the eJava directory and run jGoGui.CMD (eJava-xxx.zip required).


Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 15, 2016, 04:40:31 am
Update for eJava-008 - The  MY_CFG_FILE should be copied to the 'Get eJava Apps' folder when the install script is run (there should be two copies, one in each directory).

- However, the file isn't copied - copy the file and the rest of the scripts will work now.
- the wget.exe should also be in both directories or copy into a PATH directory


HELP, how do you point the scripts to the main directory (the MY_CFG_FILE).


Greggory

Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on March 16, 2016, 01:22:47 am
eJava-008_Final.zip,  added 21 programs to the Apps Pack !

http://os2notes.net/os2java6.html


*** All further updates will use small CMD files to add and download new java programs !

(http://os2notes.duckdns.org/images/os2java6/eJava_icons.png)


Known issues:

- The 'Get Java Apps' shadow folder isn't being created (do manually). Or change this to the correct value --  'SHADOWID=C:\Programs\eJava\Get eJava Apps;'||,

- wget.exe should be in both directories, or copy it to a directory in the PATH.

- scripts can now find the conf file, but the conf file is still copied to both locations (just to be sure).

===

Please Test - eJava-008_Final.zip

user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Install: Unzip to your Programs directory or location of choice (eJava is self contain leave alone) and run Install_eJava.cmd .



Any help with links to download the programs and settings please !

Just use this template below (only change the red) for new java programs and post them here !

*****************************
CreateObjects:

rc = CreateObject( 'WPProgram',,
    'jAlbum',,
    '<WP_EJAVA>',,
    'NOTDEFAULTICON=YES;'||,
        'NOPRINT=YES;'||,
        'DEFAULTVIEW=RUNNING;'||,
        ';'||,
        'ICONPOS=2,12;'||,
        'ICONFILE='||CurrentDir||'\icons\os2\jalbum.ICO;'||,
        'EXENAME='||JavaHome||'\BIN\JAVAW.EXE;'||,
        'STARTUPDIR='||JavaProg||'\JALBUM-11.6.14\JALBUM;'||,
        'PARAMETERS=-Xmx192M -jar jEdit.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return

********************

(eJava Pack install, eCS 2.2 png icons shown, 21 apps below )
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on June 10, 2016, 04:25:56 am
UPDATED - jFtp  | New version 1.60  has been released.

JFtp is a graphical Java network and file transfer client.

It supports FTP using its own FTP API and various other protocols like SMB, SFTP, NFS, HTTP, and file I/O using third party APIs, includes many advanced features such as recursive directory up/download, browsing FTP servers while transferring files, FTP resuming and queueing, browsing the LAN for Windows shares, and more.

You can also have more than one connection open at a time in a mozilla-style tabbed browsing environment.
The FTP API is separated from the GUI and can also be used in third-party applications.

Just download jFtp.CMD to the "Get eJava Apps" directory located in the eJava directory and run jFtp.CMD (eJava-008.zip required, see above).


Greggory


Any help with links to download the programs and settings please !

Just use this template below (only change the red) for new java programs and post them here !

*****************************
CreateObjects:

rc = CreateObject( 'WPProgram',,
    'jAlbum',,
    '<WP_EJAVA>',,
    'NOTDEFAULTICON=YES;'||,
        'NOPRINT=YES;'||,
        'DEFAULTVIEW=RUNNING;'||,
        ';'||,
        'ICONPOS=2,12;'||,
        'ICONFILE='||CurrentDir||'\icons\os2\jalbum.ICO;'||,
        'EXENAME='||JavaHome||'\BIN\JAVAW.EXE;'||,
        'STARTUPDIR='||JavaProg||'\JALBUM-11.6.14\JALBUM;'||,
        'PARAMETERS=-Xmx192M -jar jEdit.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return

********************

(eJava Pack install, eCS 2.2 png icons shown, 21 apps below )
Title: Re: eCS_Java Apps Pack Final
Post by: Joop on June 10, 2016, 05:26:52 pm
[CreateObjects:

rc = CreateObject( 'WPProgram',,
    'jAlbum',,
    '<WP_EJAVA>',,
    'NOTDEFAULTICON=YES;'||,
        'NOPRINT=YES;'||,
        'DEFAULTVIEW=RUNNING;'||,
        ';'||,
        'ICONPOS=2,12;'||,
        'ICONFILE='||CurrentDir||'\icons\os2\jalbum.ICO;'||,
        'EXENAME='||JavaHome||'\BIN\JAVAW.EXE;'||,
        'STARTUPDIR='||JavaProg||'\JALBUM-11.6.14\JALBUM;'||,
        'PARAMETERS=-Xmx192M -jar jEdit.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return

********************
Thank you for the update, but I don't have a "jEdit.jar"  in the JAlbum  directory. Seems something did go wrong.
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on June 10, 2016, 07:15:02 pm

Thank you for the update, but I don't have a "jEdit.jar"  in the JAlbum  directory. Seems something did go wrong.


That's a template for anyone that wants to help out with the eJava pack.  To help out with a new program just replace to red with new entries and post the download link /w a icon too. Then, I'll make a  CMD file out of it. Once added everything is automatically setup including auto downloading for new versions and png icon support.

The update is for jFtp 1.60, see attched CMD file.
Title: Re: eCS_Java Apps Pack Final
Post by: David McKenna on June 10, 2016, 10:35:44 pm
 I'm getting this error when I try to run the CMD file:

[C:\programs\javainstall\Get eJava Apps]jFtp
    30 +++     Call iPath;
REX0043: Error 43 running C:\programs\javainstall\Get eJava Apps\jFtp.CMD,
line 30: Routine not found

 Am I missing some library?
Title: Re: eCS_Java Apps Pack Final
Post by: David McKenna on June 10, 2016, 10:59:17 pm
 I looked at some of the other CMD files, and it looks like this is missing from the end of the jFtp.cmd file:

iPath:

  String = CurrentDir
  path = substr(string,1,lastpos('\',translate(string,'\','/'))-1)

Return

 Once I added that, it worked!
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on June 11, 2016, 06:19:34 am
I looked at some of the other CMD files, and it looks like this is missing from the end of the jFtp.cmd file:

iPath:

  String = CurrentDir
  path = substr(string,1,lastpos('\',translate(string,'\','/'))-1)

Return

 Once I added that, it worked!

Oops, not using my own template and old memory ;(

See attached for updated CMD file (note: eJava-008.zip required, see above).

Thanks Dave !
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on June 14, 2016, 06:59:11 am
UPDATED - Jmol version 14.6 has been released (2016/05/2). This is a Java molecular viewer for three dimensional chemical structures; it requires Java 1.4 or higher.

Just download Jmol.CMD to the "Get eJava Apps" directory located in the eJava directory and run,  (eJava-008_Final.zip required).

NOTE: to get furture updates just re-run Jmol.CMD !
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on June 14, 2016, 07:12:12 am
UPDATED - TV-Browser 3.4.4 fixes bugs of the previous versions. New channels are now searched automatically on a regular base and changes will be shown directly, broken filters are easily recognizable, separators can be added to the channel list and the search contains a new type "Whole term" which allows to search for whole words and term without finding programs with parts of the term. The first day of the week is now configurable.

TV-Browser 3.4.4 will probably be the last version that supports Java 6, the next version will depend on Java 8.

Just download TV-Browser.CMD to the "Get eJava Apps" directory located in the eJava directory and run,  (eJava-008_Final.zip required).

NOTE: to get furture updates just re-run TV-Browser.CMD !
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on June 18, 2016, 12:06:30 pm
New Version !
eJava-009_test.zip,  added 20 programs to the Apps Pack !

http://os2notes.net/os2java6.html


*** All further updates will use small CMD files to add and download new java programs !

(http://os2notes.duckdns.org/images/os2java6/eJava_icons.png)

UPGRADING.

1)  Backup the eJava directory first.

2) Unzip eJava-009_test.zip over the 'eJava' directory.

3) Changes - moved & updated the CMD to the 'Get eJava Apps' directory.

4) The CMD files in the 'eJava' dirctory can be removed, keep the 'Install_eJava.CMD' file.

Updated Java programs:

- jFtp              | New version 1.60
- TV-Browser   | New version 3.4.4
- Jmol version  | New version 14.6

1) To update just re-run the CMD file for each program in the 'Get eJava Apps' directory..


Known issues:

-  FIXED - The 'Get Java Apps' shadow folder isn't being created (do manually). Or change this to the correct value --  'SHADOWID=C:\Programs\eJava\Get eJava Apps;'||,

- FIXED - scripts can now find the conf file, but the conf file is still copied to both locations (just to be sure).

===

Please Test - eJava-009_test.zip

user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Install: Unzip to your Programs directory or location of choice (eJava is self contain leave alone) and run Install_eJava.cmd .


(eJava Pack install, eCS 2.2 png icons shown, 20 apps below )
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on August 01, 2016, 11:55:25 am
UPDATED - FreePlane version 1.5.12 has been released (7/20/2016). This Java app "supports thinking, sharing information and getting things done at work, in school and at home."

Just run jFreeplane.CMD in the "Get eJava Apps" folder to UPDATE !   

eJava Pack required - (eJava-009_test.zip install required)


Cheers
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on August 01, 2016, 11:57:43 am
UPDATED - Jmol version 14.6.1 has been released (7/11/2016). This is a Java molecular viewer for three dimensional chemical structures; it requires Java 1.4 or higher.


Just run Jmol.CMD in the "Get eJava Apps" folder to UPDATE !   

eJava Pack required - (eJava-009_test.zip install required)


Cheers
Title: Re: eCS_Java Apps Pack Final
Post by: Joop on August 03, 2016, 01:26:34 am
UPDATED - FreePlane version 1.5.12 has been released (7/20/2016). This Java app "supports thinking, sharing information and getting things done at work, in school and at home."

Just run jFreeplane.CMD in the "Get eJava Apps" folder to UPDATE !   

eJava Pack required - (eJava-009_test.zip install required)


Cheers
Can you tell me how you manged to get this program run under our Java implementation?
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on August 03, 2016, 02:07:42 am
UPDATED - FreePlane version 1.5.12 has been released (7/20/2016). This Java app "supports thinking, sharing information and getting things done at work, in school and at home."

Just run jFreeplane.CMD in the "Get eJava Apps" folder to UPDATE !   

eJava Pack required - (eJava-009_test.zip install required)


Cheers
Can you tell me how you manged to get this program run under our Java implementation?


Oh, you're right I'm using freeplane-1.3.15 and not the latest version.

Thanks
Title: Re: eCS_Java Apps Pack Final
Post by: Doug Bissett on August 03, 2016, 10:42:06 pm
Quote
Please Test - eJava-009_test.zip

Well that was a mistake. I ran the install command, which asked where to put various parts. When it asked for "JAVAAPPS", I mistakenly assumed that it would be created if it didn't exist. WRONG!. It then installed some programs in the root of the drive, and can't find them. Creating JAVAAPPS and moving the folders there didn't fix the problem. The instructions say don't run the installer again, and there seems to be no Uninstall. Now what?
Title: Re: eCS_Java Apps Pack Final
Post by: Doug Bissett on August 03, 2016, 10:48:58 pm
Quote
Please Test - eJava-009_test.zip

Hmmm. I have WGET version 1.16. You are supplying version 1.10. You should never supply down level software, and any requirements that may change out of your control should be a requirement, not included.
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on August 04, 2016, 02:08:34 am
Well that was a mistake. I ran the install command, which asked where to put various parts. When it asked for "JAVAAPPS", I mistakenly assumed that it would be created if it didn't exist. WRONG!.

I been working with the same directory (created long ago JavaApps), thx for pointing that out.

Can anyone post a quick code of check dir exist & if not create one (and removing a backslash from 'E:\') ?

 
Quote
It then installed some programs in the root of the drive, and can't find them. Creating JAVAAPPS and moving the folders there didn't fix the problem. The instructions say don't run the installer again, and there seems to be no Uninstall. Now what?

The installer doesn't create anything outside of 'JavaApps' directory.  It may have looked that way, but nothing was transferred if the 'JavaApps' was not created. All the zip commands fail as you pointed out, so you are good with that.

You can run the installer again, but after you change the values in the MY_CFG_FILE or delete that file.

Below is an updated installer CMD file (just make sure the 'JavaApps' directory exists now, and I will update the wget file.

Also, can anyone post some good OS/2 icons for these Java programs (I have png covered) !


Thanks Doug I hardly ever get any feedback.

Greggory
Title: Re: eCS_Java Apps Pack Final
Post by: Doug Bissett on August 04, 2016, 04:56:00 am
Quote
I been working with the same directory (created long ago JavaApps), thx for pointing that out.

It is convenient, for testing purposes, to have a clean install, in a virtual machine, so you can test such things. I use VBox. You can do a snapshot of the clean install, and easily get back to it.

Quote
The installer doesn't create anything outside of 'JavaApps' directory.  It may have looked that way, but nothing was transferred if the 'JavaApps' was not created. All the zip commands fail as you pointed out, so you are good with that.

Well, it may be a quirk in the UNZIP program (as installed by ANPM) where it will unzip to the root, if the target directory doesn't exist, but that is what happened.

Quote
You can run the installer again, but after you change the values in the MY_CFG_FILE or delete that file.

I deleted it all, and installed again. Still no go. MY_CFG_FILE contains:
Code: [Select]
eJava = "W:\PROGRAMS\eJava"
JavaHome = "W:\PROGRAMS\JAVA160"
JavaProg = "W:\PROGRAMS\JavaApps"
combined_var = "COMBINED_VAR"
The last line doesn't look right.

Quote
Below is an updated installer CMD file

I will get that later (tomorrow) and see if it does any better.

Quote
and I will update the wget file.

Since you don't create that program, you should not be distributing it with your software. Somebody else distributes that, and you need to declare that it is a prereq for your software (with a place to download it). If you distribute it, you can cause problems for the user, depending on which one they happen to get started. WGET is probably not too serious, but it is not a good thing to do, as a rule.

Quote
Thanks Doug I hardly ever get any feedback.

Nobody ever does. I suppose that "no news is good news".
Title: Re: eCS_Java Apps Pack Final
Post by: Doug Bissett on August 06, 2016, 04:34:25 am
Quote
    I will get that later (tomorrow) and see if it does any better.


Well, it installed better, and I can run the supplied (mostly useless) programs. I cannot download any of the others though. This is what I see, when i try to install jFileBot (whatever that is):


Code: [Select]
[W:\PROGRAMS\eJava\Get eJava Apps]wget -O W:\PROGRAMS\eJava\res\jFileBot-4.0.zip
 --ftp-user=os2user --ftp-password=os2 ftp://os2notes.duckdns.org/eJava/jFileBot
-4.0.zip
converted 'ftp://os2notes.duckdns.org/eJava/jFileBot-4.0.zip' (IBM-850) -> 'ftp:
//os2notes.duckdns.org/eJava/jFileBot-4.0.zip' (UTF-8)
pathconf: No such file or directory
--2016-08-05 20:24:57--  ftp://os2notes.duckdns.org/eJava/jFileBot-4.0.zip
           => 'W:\\PROGRAMS\\eJava\\res\\jFileBot-4.0.zip'
libidn: warning: libiconv not installed, cannot convert data to UTF-8
Resolving os2notes.duckdns.org (os2notes.duckdns.org)... 97.92.48.200
libidn: warning: libiconv not installed, cannot convert data to UTF-8
Connecting to os2notes.duckdns.org (os2notes.duckdns.org)|97.92.48.200|:21... co
nnected.
Logging in as USERNAME ...
Login incorrect.

[W:\PROGRAMS\eJava\Get eJava Apps]unzip W:\PROGRAMS\eJava\res\jFileBot*.zip -d W
:\PROGRAMS\JavaApps\jFileBot
Archive:  W:/PROGRAMS/eJava/res/jFileBot-4.0.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in W:/PROGRAMS/eJava/res/jFileBot-4.0.zip,

        and cannot find W:/PROGRAMS/eJava/res/jFileBot-4.0.zip.zip, period.
When object exists object creation should:
  (U=Update, R=Replace, F=Fail) :

It seems to want libiconv which is not called as a prereque, and   it is not available using ANPM (or I don't know what to install). I seem to remember something about that, but the details escape me.

It also appears that the login is not correct.
Title: Re: eCS_Java Apps Pack Final
Post by: Dave Yeo on August 06, 2016, 06:21:41 am
There's been a few ports of libiconv, both for EMX and kLIBC and OS/2 support was even committed upstream in the EMX days, but generally current programs use the iconv functionality in kLIBC.
Title: Re: eCS_Java Apps Pack Final
Post by: Greggory Shaw on August 06, 2016, 09:43:09 am

It seems to want libiconv which is not called as a prereque, and   it is not available using ANPM (or I don't know what to install). I seem to remember something about that, but the details escape me.

It also appears that the login is not correct.

As you correctly pointed out the supplied wget is old, so update to the latest version.  I'll remove it for the next release and list the requirement in the Readme file.

Just checked the server and it's up (it's always up), so must be wget.


Thanks for the comments,

Greggory