OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Applications => Topic started by: Greggory Shaw on April 26, 2015, 06:32:56 pm

Title: eCs_Java6 Apps Pack
Post by: Greggory Shaw on April 26, 2015, 06:32:56 pm
I started to update my Java6 page and got sided tracked.

I put together a pack of my favorite Java apps, it contains the latest or last versions that work with Java6.
(see pics below for which programs are included, first pic is os2 icons & second is png icons).

*** MAKE SURE TO EDIT THE JAVAHOME directory ***

JavaHome = ProgramsDir || '\OPENJDK6'


user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Usage:  run install only once, separate scripts are included if u need to recreate the icons. Just delete the ones that you don't want and move the programs directory to your choice of location. After that you can delete the whole thing (keep the separate scripts though & the icons).



Also it would be nice get some help adding your favorite Java apps - here's a template & include the links too.


Code: [Select]
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;'||,
        'PARAMETERS=-Xmx400M -jar JAlbum.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return


Cheers,

Greggory
Title: Re: eCs_Java6 Apps Pack
Post by: Martin Iturbide on April 27, 2015, 01:14:48 am
This is a great initiative Gregg.

I will be checking this file tonight !! thanks for sharing.

Regards
Title: Re: eCs_Java6 Apps Pack
Post by: Dave Yeo on April 27, 2015, 06:04:15 pm
I tried downloading it earlier but the server was not found :(
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on April 27, 2015, 09:07:28 pm
Oops the first eJava.zip had the unzipped files left in 120mb (so just select replace all (A) at the zip dialog).

I uploaded a new version eJava-002, (only 52mb) without the extra files, sorry ! And added jBlue, Jarnal, (removed Netbeans)

Dave the server should have been up (busy ???), anyways it's up now with a better version :)


*** MAKE SURE TO EDIT THE JAVAHOME directory in the Install_eJava.cmd script *** - the other scripts are optional, and are for recreation of icons if needed.


user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Usage: After the install you can move the program directories out of \RES\JAVA  to your choice of location, then you can delete the whole thing \eJava-002 directory or keep it.


Greggory

Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on April 27, 2015, 10:27:19 pm
Could a REXX guru upated Run_Java for Java 6 & Java 5.07 ?

Description:
creates java13/131 and/or java14 program objects

Long Description:
drag-n-drop creation of java program objects Just drop a .jar file on the object to create a program object to start the .jar file or double-click a .jar file to start it... New version has more flexible options.

(not working with eCS 2.2)

http://hobbes.nmsu.edu/download/pub/os2/util/wps/run_java__20030526.zip
Title: Re: eCs_Java6 Apps Pack
Post by: Gregg Young on April 28, 2015, 02:18:04 am
Greggory

As a result of this post I addressed a ticket for FM/2 to make objects for JAVA programs. Since I only use JAVA for SmartSVN/CVS/GIT I haven't actually made any objects for JAVA programs. I have the FM/2 code (C) working based on your REXX scripts. What I would like is some advice on my design choices. Currently I first look for JAVAW.EXE in the path since that is how eCS 2.2 installs JAVA6. If I don't find it I look for JAVA_HOME and if I don't find it the jar file object will be made into a data object. The object is made by selecting the jar file and selecting real object from the object menu.I still have an issue with the icon disappearing when I open the object in properties view. Hopefully I can resolve this.

Currently, the object parameters are simply -jar PATH/FILE.JAR.. Right now the icon file must have the same name as the jar file and be in the same directory. Do you have any suggestion regarding ways to improve this setup. This needs to be generic since every time I address  another possibility the code becomes more convoluted. Thanks

Gregg   
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on April 28, 2015, 07:43:11 am
Greggory

...

Do you have any suggestion regarding ways to improve this setup. This needs to be generic since every time I address  another possibility the code becomes more convoluted. Thanks

Gregg

Sound great - One thing though.

You talk about the way eCS 2.2 is setup, does eCS 2.1 have the same setup with Java1.42 ?  eCS 2.2 may never come out, so you may check it with eCS 2.1.

Thanks for all the hard work with OS/2 !

Greggory
Title: Re: eCs_Java6 Apps Pack
Post by: Jan-Erik Lärka on April 28, 2015, 10:35:17 am
This script (extension has to be renamed to .cmd) should install itself and let you add .jar files you click on to the desktop with standard parameters. It use text files you can write yourself to add your language.

Place a .ico-file with the same base name as the .jar-file to get a nice icon on the desktop program object.
jDownloader.jar + jDownloader.ico

I don't know how to add a .png image to the program object, so the script lack that feature.
Anyone?
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on April 28, 2015, 04:18:23 pm

...

I don't know how to add a .png image to the program object, so the script lack that feature.
Anyone?

The png icons are featured only in eCS 2.2 and have to manually added.

Thx for the script !  Wondering if you could add http://hobbes.nmsu.edu/download/pub/os2/util/wps/run_java__20030526.zip to your script, since this isn't maintained any more ?


Greggory
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on April 28, 2015, 05:21:48 pm

...

I don't know how to add a .png image to the program object, so the script lack that feature.
Anyone?

The png icons are a feature in eCS 2.2 and have to be added manually to the bigicon.txt config file.

Title: Re: eCs_Java6 Apps Pack
Post by: Jan-Erik Lärka on April 29, 2015, 07:59:59 am
The png icons are a feature in eCS 2.2 and have to be added manually to the bigicon.txt config file.

You can get png icons on your desktop separately on earlier versions of OS/2-eCS as well, but it was included with eCS v2.2.

Yes, but how do I add these png icons to each wps object with a script and not by hand?
I'd prefer a ...;OBJECTID=<...>;ICONFILE=...;BIGICONFILE=...; to the function that create objects on the desktop.

Please do adjust javarun.cmd and add a "(" (left paranthesis) in 2-3 places right after a VALUE.
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on April 29, 2015, 08:47:46 am
The png icons are a feature in eCS 2.2 and have to be added manually to the bigicon.txt config file.

...

Yes, but how do I add these png icons to each wps object with a script and not by hand?
I'd prefer a ...;OBJECTID=<...>;ICONFILE=...;BIGICONFILE=...; to the function that create objects on the desktop.


Since your script creates the OBJECTID as <WP_JARFILE> when creating the jar program icon on the desktop.

Have the script:

- copy the jar_icon.png from the desktop to the the \ecs\icons\bigicons directory
- have the script find the section [OBJECTID] in the bigicon.txt config file, then add the OBJECTID as <WP_JARFILE> under that section.
- restart WPS

Code: [Select]
[OBJECTID]
"<WP_JARFILE>"      "jar_icon.png"


I don't think there's a ;BIGICONFILE=...;  option only the above.

And it would be grest if you could add an option for making a Java 1.4 Object !
Title: Re: eCs_Java6 Apps Pack
Post by: Jan-Erik Lärka on May 01, 2015, 09:19:54 pm
I've modified my script and it can now add .png-images to the bigicons folder and rewrite the configuration file before it add a program object and launch the java app. I've tested BlueJ and JSoko and both start and run, white BlueJ seem to need something more.

Place your .ico and .png next to the .jar-file with the same base name to get a nice program object on the desktop.

What's the output from java.exe -version in GoldenCode java 1.4.1.07 and Innotek java 1.4.2?
Additional rows to the one below should be added to support those versions.
java_2_dir = rxFind( 'JAVA.EXE', ' -version', 'OPENJDK VERSION "1.' )

//Jan-Erik
Title: Re: eCs_Java6 Apps Pack
Post by: Gregg Young on May 02, 2015, 08:55:58 pm
Sound great - One thing though.

You talk about the way eCS 2.2 is setup, does eCS 2.1 have the same setup with Java1.42 ?  eCS 2.2 may never come out, so you may check it with eCS 2.1.


While I don't know the answer to this, it prompted me to take a different approach. I now open a file dialog and let the user find the javaw.exe they want to use. They only need to do it once because I save it to fm2.ini. They can change it using a menu item anytime they wish. I also just let them find the icon file they want to use which would allow someone to use a png as well.

Gregg
Title: Re: eCs_Java6 Apps Pack
Post by: Joop on June 12, 2015, 04:50:49 pm
Why going this difficult way? I use cmd files. In this way I can use every Java version which is available to OS/2. Its no problem to start programs with Java 1.4.2 or Java 6 version 5 if the program in question demands a specific version. Also program specific options are easily added.

Joop
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on June 12, 2015, 07:01:43 pm
Why going this difficult way?
...

Which way ?
Title: Re: eCs_Java6 Apps Pack
Post by: Joop on June 12, 2015, 07:12:47 pm
objectid's and wp files.
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on June 14, 2015, 08:30:52 pm
Why going this difficult way? I use cmd files. In this way I can use every Java version which is available to OS/2. Its no problem to start programs with Java 1.4.2 or Java 6 version 5 if the program in question demands a specific version. Also program specific options are easily added.

Joop

You seem to have missed everything about this thread (it is the easy way).  The objectid's and wp files are for auto adding icons (the easy way).

1) My java pack just running install, (CMD files included too). Just put together this pack was long & tedious, and CMD files need to be updated (Java 8 is coming).
2) My modified RUN_JAVA script, just double-click on jar files to run jar files and auto creating start scripts for 1.3,4.5.and 6 java - no modifying CMD files just an easy drag&drop !
3) Jep's great script - run directly from jar files & auto add a nice icons too - no CMD files
4) Gregg's great work on FM/2 now double clicking jar files in FM/2 work ! - no CMD files

Title: Re: eCs_Java6 Apps Pack
Post by: Joop on June 14, 2015, 11:24:49 pm
I think you present it too simple. Lots of Java programs need extra Java parameters or program parameters or need a specific Java version. I can click on the command file in FC/2 and it will be started, so no difference there. There are only a few programs which can be started with java -jar program.jar. The only thing I have to do is to change the drive and directory to the new program. Alter the line where the program is started with the right java parameters and program parameters. Also I can include options for a report for finding out what was going wrong.
But I don't want to make a war about it, as OS/2 users we have almost endless options for running a program, we tend to forget that.

Joop
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on June 14, 2015, 11:45:35 pm
I think you present it too simple. Lots of Java programs need extra Java parameters or program parameters or need a specific Java version.

...

Joop

Every java program listed here works with a double click ? And with drag&drop (RUN_JAVA) the ability to create a version for each different java version is simple ! Just saying if you tell us we're doing it the hard way, then improve the auto java scripts here.

Meaning - listing the programs that don't work /w -jar and list the needed extra command for everyone here, please !

going back to my first post in the thread and my request for help ???


which no one replied, but Jep & Gregg with their awesome programming skills !

CreateObjects:
Code: [Select]
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;'||,
        'PARAMETERS=-Xmx400M -jar JAlbum.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return




objectid's and wp files.

This has nothing to do with java, but thanks to Jep we have an easy way to use java & add png icons now !  And a course sometimes add a bit to the auto generated script !


Greggory
Title: Re: eCs_Java6 Apps Pack
Post by: Joop on June 15, 2015, 12:47:53 am
If you set the memory wide enough then lots of programs work. This is done in the script with -Xmx512m, but not all Java programs do need so much. So with more Java programs next to each other you could run into problems. Best way is to set nothing for a start, ie the standard of 64m is used. If the program complaints you give it a little more and so on. Not all Java programs do start with a -jar, some needs to be started with -cp. In that case you have to add a few things more. Also there is no option for program parameters and there is no option for recording bug messages (I didn't see it in the REXX file, but may be I overlooked it). My standard batch is updated in a minute or so, don't see the advantage of dragging and dropping as it is an one time investment.
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on June 15, 2015, 01:03:22 am
If you set the memory wide enough then lots of programs work. This is done in the script with -Xmx512m, but not all Java programs do need so much. So with more Java programs next to each other you could run into problems. Best way is to set nothing for a start, ie the standard of 64m is used. If the program complaints you give it a little more and so on. Not all Java programs do start with a -jar, some needs to be started with -cp. In that case you have to add a few things more. Also there is no option for program parameters and there is no option for recording bug messages (I didn't see it in the REXX file, but may be I overlooked it). My standard batch is updated in a minute or so, don't see the advantage of dragging and dropping as it is an one time investment.


Like I said the first question on this thread is to post the working setting for Java programs.
How hard is that just post them.

So, post them using this templete:

Code: [Select]
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;'||,
        'PARAMETERS=-Xmx400M -jar JAlbum.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return






 
Title: Re: eCs_Java6 Apps Pack
Post by: Joop on June 15, 2015, 01:27:55 am
Like I said the first question on this thread is to post the working setting for Java programs.
How hard is that just post them.
Because in this way its far from simple, the options are too numerous, how hard is that? Use a batch or cmd file. You can find it on my homepage http://joopn.home.xs4all.nl/os2ecs/ecs6e.htm (http://joopn.home.xs4all.nl/os2ecs/ecs6e.htm) and that's a start to begin with.
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on June 15, 2015, 01:44:41 am
Like I said the first question on this thread is to post the working setting for Java programs.
How hard is that just post them.
Because in this way its far from simple, the options are too numerous, how hard is that? Use a batch or cmd file. You can find it on my homepage http://joopn.home.xs4all.nl/os2ecs/ecs6e.htm (http://joopn.home.xs4all.nl/os2ecs/ecs6e.htm) and that's a start to begin with.


About time how hard was that ? Either say something constructive of get off this thread. And D&D to create a CMD file & maybe adding a couple of commands afterward is pretty easy.

Why didn't u post that first ? Yes, I've seen your pages, but for the 3rd time post the startup parameters using the template or don't post.
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on June 29, 2015, 01:20:03 am
Added new programs to the Apps Pack !  Test - eJava-003test.zip, 140 Mb

28 June 2015
- Removed SecureFTP
- Removed NetBeans

- Added FileBot_4.0-portable.zip
- Added Tv-Browser, tvbrowser_3.4.1.0a_bin_transportable.zip
- Added FreeRapid Downloader 0.9u4 , released on 18th May 2014 - shows errors but still runs
- Added jDownloader
- Added GenealogyJ, genj_install-6755.jar

*** MAKE SURE TO EDIT THE JAVAHOME directory ***

JavaHome = ProgramsDir || '\OPENJDK6'


user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Usage:  run install only once, separate scripts are included if u need to recreate the icons. Just delete the ones that you don't want and move the programs directory to your choice of location. After that you can delete the whole thing (keep the separate scripts though & the icons).



See pic below for complete list ! 

Help with some OS/2 & PNG icons please and testing. Missing your fav post the script, use the others as Template.


Cheers,

Greggory
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on July 01, 2015, 07:29:20 am
Need some REXX help for downloading separate packages !

Can somebody give me an outline for useing 'wget' with REXX ?

1) I'm going to cut the Pak down to the most popular programs.
2) Add 'wget' to download the rest.


Any thoughts to get me started ?

Greggory
Title: Re: eCs_Java6 Apps Pack
Post by: Jan-Erik Lärka on July 01, 2015, 03:48:58 pm
just '@wget -O c:\temp\local_filename http://hobbes.nmsu.edu/.../file_on_server.ext'

or there us som rexxtension to cURL.
//Jan-Erik
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on July 02, 2015, 07:37:39 am
just '@wget -O c:\temp\local_filename http://hobbes.nmsu.edu/.../file_on_server.ext'

or there us som rexxtension to cURL.
//Jan-Erik

Thank you !
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on September 02, 2015, 08:10:55 am
just '@wget -O c:\temp\local_filename http://hobbes.nmsu.edu/.../file_on_server.ext'

or there us som rexxtension to cURL.
//Jan-Erik

Thanks Jan-Erik,

Reduce the size by alot and added wget option for programs to the Apps Pack !  Test - eJava-LITE004.zip, 48.6 Mb

In the 'Get eJava Apps' folder - wget options (double click to download & auto install:

-Added jAlbums 11.xxx last one without the timeout limitation I think ???
- Added Tv-Browser, tvbrowser_3.4.1.0a_bin_transportable.zip
- Added FreeRapid Downloader 0.9u4 , released on 18th May 2014 - shows errors but still runs
- Added jDownloader
- Added GenealogyJ, genj_install-6755.jar

*** MAKE SURE TO EDIT THE JAVAHOME directory ***

JavaHome = ProgramsDir || '\OPENJDK6'


Please Test - eJava-LITE004.zip, 48.6 Mb

user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Usage:  run install only once, separate scripts are included if u need to recreate the icons. Just delete the ones that you don't want and move the programs directory to your choice of location. After that you can delete the whole thing (keep the separate scripts though & the icons).



See pic below for complete list !

Help with some OS/2 & PNG icons please and testing.

Missing your fav post the script, use the others as Template.


Cheers,

Greggory
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on September 15, 2015, 08:07:07 pm
Reduce the size by alot and added wget option for programs to the Apps Pack !  Test - eJava-LITE005.zip, 48.6 Mb

In the 'Get eJava Apps' folder - wget options (double click to download & auto install:

Minor adjustments for v5.

-Added jAlbums 11.xxx last one without the timeout limitation I think ???
- Added Tv-Browser, tvbrowser_3.4.1.0a_bin_transportable.zip
- Added FreeRapid Downloader 0.9u4 , released on 18th May 2014 - shows errors but still runs
- Added jDownloader
- Added GenealogyJ, genj_install-6755.jar
- Added ProjectLibre version 1.6.2

*** MAKE SURE TO EDIT THE JAVAHOME directory ***

JavaHome = ProgramsDir || '\OPENJDK6'


Please Test - eJava-LITE005.zip, 48.6 Mb

user: os2user
pass: os2

ftp://os2notes.duckdns.org/

Usage:  run install only once, separate scripts are included if u need to recreate the icons.

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

Code: [Select]
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=-Dbrowser.cmd="'||ProgramsDir||'\FIREFOX\FIREFOX!K.EXE" -Dbrowser.arg0="$url" -Xmx400M -jar JAlbum.jar;'||,
        'PROGTYPE=PM;'||,
        'OBJECTID=<JALBUM>',,
    CreateCollision )

return
Title: Re: eCs_Java6 Apps Pack
Post by: Greggory Shaw on January 14, 2016, 01:49:21 am
Test - eJava-006.zip, Final and added wget option for programs to the Apps Pack !

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

In the 'Get eJava Apps' folder - wget options (double click to download & auto install:

Added Games - Chess & Axis and Allies only the best games ever !

Minor adjustments for v006.

13 Jan 2016
- Removed jDownloader to many issues > use FreeRapid Downloader
- Updated TV-Browser version 3.4.2
- Added Jmol version 14.4.1 has been released (12/23/2015)

- Added games folder
- Added jin-2.14.1.zip FICS client
- Added triplea_1_8_0_9_all_platforms.zip (careful 350MB +)


*** 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/

Usage:  run install only once, separate scripts are included if u need to recreate the icons. You can move the new java programs directories to your choice of location.

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 )