Compiling 4.0.9.96 beta 2 for Mac

For talk and Help about everything concerning TV-Browser.
Antworten
jdonato
Full Member
Beiträge: 81
Registriert: 14 Sep 2008, 21:45

Compiling 4.0.9.96 beta 2 for Mac

Beitrag von jdonato » 02 Feb 2019, 00:12

Is the command for compiling still "ant runtime public-mac"?

It is giving me the Build failed error "javac doesn't support the "modulepath" attribute"

Thanks.

ds10
Site Admin
Beiträge: 17155
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Compiling 4.0.9.96 beta 2 for Mac

Beitrag von ds10 » 02 Feb 2019, 00:54

Try updating Ant to a version that supports Java 11 and also you have to install OpenJDK 11 to compile the new Beta of TV-Browser.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser

jdonato
Full Member
Beiträge: 81
Registriert: 14 Sep 2008, 21:45

Re: Compiling 4.0.9.96 beta 2 for Mac

Beitrag von jdonato » 02 Feb 2019, 17:46

Thanks a lot.
I installed OpenJDK 11.0.2 and ant 1.10.5 and went a lot further, but my build failed on:

make-mac:
[echo] Compiling the source code ...
[javac] /Users/xxxx/Downloads/tvbrowser-4.0.9.96-beta2/build.xml:284: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 637 source files to /Users/xxxx/Downloads/tvbrowser-4.0.9.96-beta2/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 5
[javac] error: Source option 5 is no longer supported. Use 6 or later.
[javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

BUILD FAILED
/Users/xxxx/Downloads/tvbrowser-4.0.9.96-beta2/build.xml:284: Compile failed; see the compiler error output for details.


Any insights or help? Thanks a lot. Eager to build this version for Mac...

jdonato
Full Member
Beiträge: 81
Registriert: 14 Sep 2008, 21:45

Re: Compiling 4.0.9.96 beta 2 for Mac

Beitrag von jdonato » 02 Feb 2019, 23:37

OK, I solved the antruntime issue, still getting the source 5 one...

make-mac:
[echo] Compiling the source code ...
[javac] Compiling 637 source files to /Users/xxxx/Downloads/tvbrowser-4.0.9.96-beta2/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 5
[javac] error: Source option 5 is no longer supported. Use 6 or later.
[javac] error: Target option 1.5 is no longer supported. Use 1.6 or later.

BUILD FAILED
/Users/xxxx/Downloads/tvbrowser-4.0.9.96-beta2/build.xml:284: Compile failed; see the compiler error output for details.

ds10
Site Admin
Beiträge: 17155
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Compiling 4.0.9.96 beta 2 for Mac

Beitrag von ds10 » 03 Feb 2019, 10:13

The entries in the build.xml for macjava are not updated to work with Java 11. The entry for compling "make-macjava" should be:

Code: Alles auswählen

<javac destdir="${classes.dir}" includeantruntime="false" modulepath="${lib.dir}" debug="${debug}" deprecation="true" encoding="UTF-8" target="11" source="11">
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser

jdonato
Full Member
Beiträge: 81
Registriert: 14 Sep 2008, 21:45

Re: Compiling 4.0.9.96 beta 2 for Mac

Beitrag von jdonato » 04 Feb 2019, 16:51

Thanks a lot! I was missing the (modulepath="${lib.dir}").

Now the build completes successfully, but I have another problem.

When I tried to run (open) TV-Browser, the following message appears:

"To open "TV-Browser" you need to install the legacy Java SE 6 runtime"

What? (Haven't seen that message in years! ha ha)

Any ideas? Thanks for all your help.

ds10
Site Admin
Beiträge: 17155
Registriert: 23 Jun 2005, 12:36
Kontaktdaten:

Re: Compiling 4.0.9.96 beta 2 for Mac

Beitrag von ds10 » 04 Feb 2019, 17:58

I guess there are problems within the appbundler in the runtime-macjava section. But I don't know what exactly could be the problem.
"First they ignore you, then they ridicule you, then they fight you, then you win." - Mahatma Gandhi
Unterstütze die Weiterentwicklung von TV-Browser

Antworten