Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #37520
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Knute Johnson <nospam@rabbitbrush.frazmtn.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Problem compiling with 9 for 8 |
| Date | Mon, 2 Oct 2017 14:49:08 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 33 |
| Message-ID | <oqu57k$qn1$1@dont-email.me> (permalink) |
| References | <oqtn9r$9q2$1@dont-email.me> <oqu0b8$lri$1@gioia.aioe.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Mon, 2 Oct 2017 19:49:10 -0000 (UTC) |
| Injection-Info | reader02.eternal-september.org; posting-host="27a353018c0f9b6f054f3d39a4b9216f"; logging-data="27361"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/fU06gCTQUO2vbMDxKHLqF" |
| User-Agent | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
| In-Reply-To | <oqu0b8$lri$1@gioia.aioe.org> |
| Content-Language | en-US |
| Cancel-Lock | sha1:J06WgwSgkM2Edf8BKyMpRYkfrsk= |
| Xref | csiph.com comp.lang.java.programmer:37520 |
Show key headers only | View raw
On 10/2/2017 13:25, Arne Vajhøj wrote: > On 10/2/2017 11:51 AM, Knute Johnson wrote: >> I want to compile this program with the Java 9 compiler but with but >> with the --release 8 option so that it will run on a Java 8 runtime. >> The --add-modules option is not available if the --release options is >> specified. Anybody know what the solution is? Am I going at this the >> wrong way? >> >> C:\Users\Knute Johnson>javac --release 8 -Xlint:unchecked -cp >> .;com/knutejohnson >> /rosen/javax.mail.jar com/knutejohnson/rosen/PHD2Alarms.java >> .\com\knutejohnson\rosen\AlarmDialog2.java:9: error: package >> javafx.scene.media >> does not exist >> import javafx.scene.media.*; >> ^ >> .\com\knutejohnson\rosen\AlarmDialog2.java:60: error: cannot find symbol >> AudioClip clip = null; >> ^ >> symbol: class AudioClip >> location: class AlarmDialog2 > > Have you tried putting Java 8 jfxrt.jar explicit in classpath? > > Arne > No but that file is not included in Java 9. It compiles fine if I don't have the --release 8 option and it compiled fine under Java 8. -- Knute Johnson
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problem compiling with 9 for 8 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-10-02 10:51 -0500
Re: Problem compiling with 9 for 8 Arne Vajhøj <arne@vajhoej.dk> - 2017-10-02 14:25 -0400
Re: Problem compiling with 9 for 8 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-10-02 14:49 -0500
Re: Problem compiling with 9 for 8 Arne Vajhøj <arne@vajhoej.dk> - 2017-10-02 16:10 -0400
Re: Problem compiling with 9 for 8 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-10-02 16:08 -0500
Re: Problem compiling with 9 for 8 Arne Vajhøj <arne@vajhoej.dk> - 2017-10-02 19:46 -0400
Re: Problem compiling with 9 for 8 Arne Vajhøj <arne@vajhoej.dk> - 2017-10-02 20:03 -0400
Re: Problem compiling with 9 for 8 Arne Vajhøj <arne@vajhoej.dk> - 2017-10-02 20:12 -0400
Re: Problem compiling with 9 for 8 Arne Vajhøj <arne@vajhoej.dk> - 2017-10-02 20:24 -0400
Re: Problem compiling with 9 for 8 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-10-03 10:32 -0500
Re: Problem compiling with 9 for 8 Arne Vajhøj <arne@vajhoej.dk> - 2017-10-03 20:48 -0400
Re: Problem compiling with 9 for 8 Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2017-10-04 17:27 -0500
csiph-web