simonjwright / coldframe

ColdFrame generates Ada framework code and documentation from UML models.
https://simonjwright.github.io/coldframe
GNU General Public License v2.0
8 stars 1 forks source link

Setup fails on Cygwin #15

Closed AlexProudfoot closed 3 years ago

AlexProudfoot commented 3 years ago
make[1]: Entering directory '/home/Alex/coldframe/lib'
java -cp D:\Alex\Programs\Cygwin\Root\home\Alex\saxon\saxon.jar com.icl.saxon.StyleSheet  \
  ../models/ColdFrameProfile.uml                                        \
  ../scripts/normalize-profile.xsl      \
  >ColdFrameProfile.xmi
Error: Could not find or load main class com.icl.saxon.StyleSheet
Caused by: java.lang.ClassNotFoundException: com.icl.saxon.StyleSheet
AlexProudfoot commented 3 years ago
$ java --version
openjdk 11 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
AlexProudfoot commented 3 years ago

Saxon version is 6.5.5.

AlexProudfoot commented 3 years ago

Aha!

> java -cp saxon.jar com.icl.saxon.StyleSheet
No source file name
SAXON 6.5.5 from Michael Kay
Usage:  java com.icl.saxon.StyleSheet [options] source-doc style-doc {param=value}...
simonjwright commented 3 years ago

What has changed?

java -cp saxon.jar com.icl.saxon.StyleSheet

gives an error, but if you look at the report at the top of this issue you’ll note there are backslashes at the line ends, so the source-doc should’ve been ../models/ColdFrameProfile.uml and the style-doc ../scripts/normalize-profile.xsl.

The -cp argument has Windows backslashes, some confusion maybe?

simonjwright commented 3 years ago

What has changed?

I see, you’re trying out Windows instead of Linux.

AlexProudfoot commented 3 years ago

Yes. I take it that java needs windows paths since it's a windows application. There's a similar issue with ADA_PROJECT_PATH when using the windows version of GNAT I think.

AlexProudfoot commented 3 years ago

This works.

$ java -cp D:\\Alex\\Programs\\Cygwin\\Root\\home\\Alex\\saxon\\saxon.jar com.icl.saxon.StyleSheet \
..\\models\\ColdFrameProfile.uml ..\\scripts\\normalize-profile.xsl > ColdFrameProfile.xmi
simonjwright commented 3 years ago

It looks to me as though back in November 2003 Saxon was available as a self-contained executable on Cygwin/Windows. The latest instant_saxon at Sourceforge is 6.5.3 (August 2003).

AlexProudfoot commented 3 years ago

Unfortunately, that route is no longer open. Instant Saxon depends on the, now defunct, Microsoft JVM.

AlexProudfoot commented 3 years ago

Forked ColdFrame so I can work on the makefiles.

simonjwright commented 3 years ago

On 12 Apr 2021, at 11:37, Alex Proudfoot @.***> wrote:

Forked ColdFrame so I can work on the makefiles.

OK.

I wondered about xsltproc (which AFAICT is available in Cygwin), but it has trouble with some of my scripts.

AlexProudfoot commented 3 years ago

Fixed. See pull request #16.