OK, I am now back into the Frege saddle with three weeks to go to the
JAX London workshop. However… I have the following Gradle script:

    plugins {
      id "org.frege-lang" version "0.8"
    }

    apply plugin: 'application'

    repositories {
      jcenter()
      mavenCentral()
    }

    dependencies {
      compile 'org.frege-lang:frege:3.24.+'
    }

    task wrapper(type: Wrapper) {
      gradleVersion = '3.1'
    }

    mainClassName = 'uk.org.russel.jaxlondon2016.HelloWorld'

    defaultTasks 'run'

and the filestore:

.
├── build.gradle
├── gradle
│   └── wrapper
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradlew
├── gradlew.bat
├── settings.gradle
└── src
    └── main
        └── frege
            └── uk
                └── org
                    └── russel
                        └── jaxlondon2016
                            └── HelloWorld.fr


with the Frege file being:

    {-|
    Module : uk.org.russel.jaxlondon2016.HelloWorld
    Description : The (in)famous 'Hello World' program in Haskell.
    Copyright : © 2016  Russel Winder
    License : GPLv3
    Maintainer :     rus...@winder.org.uk
Stability :  stable
Portability :  portable

This module contains an implementation of the 'Hello World' program first 
introduced to the world in
"The C Programming Language" by Brian Kernighan and Dennis Ritchie.

This is definitely Frege code and not Haskell code since we are using the Frege 
specific `println` function
(which is just `System.out.println` from the Java Platform) in preference to 
Haskell's `putStrLn`. `putStrLn`
would work equally well on Frege.
-}
module uk.org.russel.jaxlondon2016.HelloWorld where

-- | The Hello World program in Frege (Haskell)
main args = println "Hello World."


If I run this with Java 9 or with Java 8, I get:

    |> (usejdk8 && ./gradlew classes)
    :compileJava UP-TO-DATE
    :compileFrege
    Error: Could not find or load main class frege.compiler.Main
    :compileFrege FAILED

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':compileFrege'.
    > Process 'command '/usr/lib/jvm/java-8-openjdk-amd64/bin/java'' finished 
with non-zero exit value 1

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output.

    BUILD FAILED

    Total time: 1.139 secs

which is akin to a brick wall. Anyone any ideas?

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

-- 
You received this message because you are subscribed to the Google Groups 
"Frege Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to frege-programming-language+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to