Author Topic: eCs_Java6 Apps Pack  (Read 10932 times)

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #15 on: June 12, 2015, 07:01:43 pm »
Why going this difficult way?
...

Which way ?

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 408
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #16 on: June 12, 2015, 07:12:47 pm »
objectid's and wp files.

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #17 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

« Last Edit: June 14, 2015, 09:13:47 pm by Greggory Shaw »

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 408
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #18 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

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #19 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
« Last Edit: June 15, 2015, 12:46:28 am by Greggory Shaw »

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 408
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #20 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.

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #21 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






 
« Last Edit: June 15, 2015, 01:06:53 am by Greggory Shaw »

Joop

  • Sr. Member
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 30
  • Posts: 408
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #22 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 and that's a start to begin with.

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #23 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 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.
« Last Edit: June 15, 2015, 02:42:10 am by Greggory Shaw »

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #24 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
« Last Edit: June 29, 2015, 01:51:11 am by Greggory Shaw »

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #25 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
« Last Edit: July 01, 2015, 07:41:25 am by Greggory Shaw »

Jan-Erik Lärka

  • Global Moderator
  • Full Member
  • *****
  • Thank You
  • -Given: 5
  • -Receive: 11
  • Posts: 151
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #26 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

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #27 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 !

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #28 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
« Last Edit: September 02, 2015, 08:16:19 am by Greggory Shaw »

Greggory Shaw

  • Global Moderator
  • Sr. Member
  • *****
  • Thank You
  • -Given: 36
  • -Receive: 19
  • Posts: 416
    • View Profile
Re: eCs_Java6 Apps Pack
« Reply #29 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
« Last Edit: January 14, 2016, 02:10:30 am by Greggory Shaw »