Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Neil Waldhauer

Pages: [1] 2 3 ... 30
1
Programming / Re: NetRexx on OS/2
« on: Today at 05:03:53 am »
It seems to set classpath correctly, but then abandons it's work because it can't find hello.class.

Dir /N /B might work in CMD, but it's not useful with 4os2. Rexx has a lot of other ways to find filenames that don't depend on the exact syntax of CMD.

The script does work on CMD.

2
Programming / Re: NetRexx on OS/2
« on: September 16, 2019, 03:47:15 pm »
The problem is that the NetRexxC.cmd does not set classpath correctly. I'm not going to patch an increasingly bad REXX program, but rather I'll try to construct a useful one for the present day, that does not necessarily run original Java 1.1-based NetRexx from the 1990's.

3
Programming / Re: NetRexx on OS/2
« on: September 16, 2019, 04:29:29 am »
That doesn't seem to help enough.

Quote
[k:\programs\netrexx3\lib] ..\bin\netrexxc2 -run hello
openjdk version "1.6.0_27"
OpenJDK Runtime Environment (build 1.6.0_27-b01-GA5)
OpenJDK Client VM (build 20.0-b12, mixed mode)
NetRexx portable processor 3.08-GA build 1,582-20190906-1850
Copyright (c) RexxLA, 2011,2019.   All rights reserved.
Parts Copyright (c) IBM Corporation, 1995,2008.
Program hello.nrx
Compilation of 'hello.nrx' successful
hello.class
Cannot find file: hello.class

4
Programming / Re: NetRexx on OS/2
« on: September 15, 2019, 04:27:22 pm »
The modified NetRexxC.cmd nearly works. It gets through the Java version problem, and only fails for running hello. I only quoted the end of the output to show what is happening. hello.class is on the libpath, path and classpath.

By the way, every time I run NetRexxC, the path gets longer. Paths longer than 1024 bytes overwrite kernel memory, so this should be avoided.

Quote
Program hello.nrx
Compilation of 'hello.nrx' successful
hello.class
Cannot find file: hello.class

So if I need updated NetRexxC.cmd, do I also need some updated NetRexxR.cmd?

5
Programming / NetRexx on OS/2
« on: September 14, 2019, 10:41:23 pm »
We keep on having announcements. The screen shot is from 3.04, the current release is 3.08.

Running 3.08 is unchanged from 3.06. Is there some way to run NetRexx on OS/2 that I overlooked?

Quote
java -jar NetRexxF.jar -exec hello
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/eclipse/j
dt/internal/compiler/tool/EclipseCompiler : Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
        at org.netrexx.process.NetRexxC.process(NetRexxC.java:417)
        at org.netrexx.process.NetRexxC.main2(NetRexxC.java:338)
        at org.netrexx.process.NetRexxC.main2(NetRexxC.java:318)
        at org.netrexx.process.NetRexxC.main2(NetRexxC.java:314)
        at org.netrexx.process.NetRexxC.main(NetRexxC.java:168)

6
Web applications / Re: Migrating Apache Web Server
« on: September 10, 2019, 03:45:27 pm »
It's in extra\httpd-mpm.conf

I just had to modify httpd.conf to include extra\httpd-mpm.conf

And also change the name from MaxConnectionsPerChild to MaxRequestsPerChild

The default is 0, but I changed that to 1000.

7
Web applications / Re: Migrating Apache Web Server
« on: September 08, 2019, 03:39:09 pm »
I can see the parameter set in conf\extra\httpd-mpm.conf

But this is not loaded by default. Nor is any LoadModule found for mpm_mpmt_os2_module. Looking at the module directory, I don't see it there.

I'm not sure what to activate to use the MaxRequestsPerChild directive. Should I just put it in httpd.conf by itself?

8
Web applications / Re: Migrating Apache Web Server
« on: September 07, 2019, 05:34:45 pm »
I selected Paul Smedley's latest Apache 2.2 HTTPD

https://os2ports.smedley.id.au/index.php?page=apache2

I adjusted the conf/httpd.conf, and the website is running.

But not all is well. The server stops serving after a few days. Is anyone running this software? The logs seem to show nothing unusual, and there isn't really very much traffic. What could cause the server to stop?

9
Thanks for the link. David provided viop.sys to me in 2017, but I guess it never made it into the ArcaOS DVD. I do not know if this is related to the PMVIOP provided by IBM.

I've used the viop.sys in my systems for some time. The version you are using is two bytes larger than mine. I tried the new one on the T450s and it works the same.

If you keep going with the X250, check if you get an occasional failure to boot "OS/2 is unable to operate your hard drive" It is hard for me to make a bug report for a not quite reproducible error.

10
Programming / Re: fully programmatic menu creation?
« on: September 04, 2019, 03:47:40 pm »
There is some example code in the Toolkit help under Menus.

Probably you can create the equivalent of the Win32 API out of the Presentation Manager messages, which, by the way, are identical to the messages in Win32.

11
On the T450s, sound is possible with Uniaud.sys using /A:1
All 8 GB is recognized but only 3.3 GB is available for programs and the rest must be a RAM disk.
LAN to WAN is really pretty nice. I'm using VIX mini, which runs DDWRT.
DOS full screen works, and Alt-Home changes it to a DOS window.

Lack of USB 3 support is delaying my use of a newer laptop.
Uniaud can play through headphone jack, but not on internal speakers.

I think the lack of BIOS in new PC is going to be a problem starting early 2020.



12
Storage / Re: How to Format a Hard Drive
« on: September 01, 2019, 04:56:24 pm »
The OS/2 help files were neglected as features like JFS were added. I thought it would be good to try formatting both with and without /L, and compare elapsed times. I found there was a substantial difference, so it is doing something. I used 10 GB volumes on a 2 TB hard drive.

Format /L results in a lot of errors:
Code: [Select]
Internal error: devices.c(532): Verify error 87 (INVALID PARAMETER)But the volume is available at the end in spite of the errors.

It turns out that you can browse the source of the OpenJFS project at Netlabs. The source no longer matches exactly the Arca Noae source, because line 532 of devices.c is a comment. But a few lines earlier in the source code, a routine named ujfs_rw_diskblocks is returning ERROR_INVALID_PARAMETER.

So it's clearly trying to do something different with FORMAT /L.

13
Storage / Re: How to Format a Hard Drive
« on: September 01, 2019, 04:14:51 am »
I think Lars sort of has the answer, but I'd hoped that someone would actually know. Shouldn't we have this documented somewhere besides reading the source code? The OS/2 command reference hints that /L only applies to MO (magneto-optical) drives.

Quote
FORMAT Command: /L Parameter

Specifies the long format procedure used to format hard disks or format and install the file system on an IBM read/write optical disc. Formatting an optical disc the first time requires about 20 minutes. Reformatting a previously formatted optical disc requires only a few minutes when you do not use the /L parameter.

For hard disks, specifying the /L parameter causes media testing to be performed.

To format and install the file system on a read/write optical disc, enter the following:

FORMAT D: /L


where drive D is designated as the optical disc drive.

14
Storage / How to Format a Hard Drive
« on: August 31, 2019, 09:36:14 pm »
I have a computer that is running eComStation, and it became unreliable, with a trap screen after a minute of use.

I replaced the computer, and it's fine, but I was curious what was happening with the unreliable one. I booted from a USB stick and ran chkdsk /f on the drive, and one file was unrepairable. That was enough for me. I don't know why it happened, but I decided to format the drive and restore from backup.

I used FORMAT /L C: /FS:JFS to format the drive. That appears to work, but now I wonder what that does.

Quote
According to Jim Wilkerson, years ago, the /L parameter didn't just remove the header records but
formatted the drive removing all data. My understanding it was sector by sector putting ones and zeros
back on the drive as it was originally when it was new. I don't know what happens if there are bad areas on the
drive but I recall it may map around the bad area.

I don't think it works the same in every file system. I think the working code is implemented in the mini-FS driver. The behavior is documented for HPFS, but not for other file systems. What does FORMAT /L do in JFS?

15
Applications / Re: A comprehensive guide to Odin available?
« on: August 25, 2019, 04:33:38 pm »
I don't run Odin intentionally, but I think it's involved with some of our ports. If I really need a Windows program, I run it under Windows. I can run the current Microsoft Office in OS/2 under Firefox. Actually, I run it that way under Windows, too. Looking at Microsoft's current direction, I expect to use their cloud products more in the future.

That makes me wonder if any new Windows programs are being written? Is Windows now in maintenance mode?

Pages: [1] 2 3 ... 30