|
From: Andrew C <cou...@gm...> - 2021-12-20 09:53:07
|
Hi all, I'm running into some critical errors with openJDK/JRE versions 16/18 and trying to run JSampler. It appears there are some older classes that are no longer supported in these versions or perhaps need a bit more wriggling to accommodate the JSampler code? Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: class org.jsampler.view.fantasia.basic.PixmapPane (in unnamed module @0x248d4f4a) cannot access class sun.swing.plaf.synth.Paint9Painter (in module java.des ktop) because module java.desktop does not export sun.swing.plaf.synth to u nnamed module @0x248d4f4a I know this is/was(?) Grishata's project and I lack the knowledge to even begin trying to fix this up, but was wondering if anyone else has encountered this and if there are workarounds for it? The alternative, if I cannot get it working would have to be diving into sending LSCP commands to Linuxsampler via Netcat. That should be fun! ;) A question for Christian, but is it possible through LSCP to tell Linuxsampler to open gigedit "Live" on an instrument, so as to edit in real-time, or was that a special function of JSampler? Cheers, Andrew. |
|
From: Christian S. <sch...@li...> - 2021-12-21 16:22:44
|
On Montag, 20. Dezember 2021 10:52:50 CET Andrew C wrote: > Hi all, Hi, > I'm running into some critical errors with openJDK/JRE versions 16/18 and > trying to run JSampler. It appears there are some older classes that are no > longer supported in these versions or perhaps need a bit more wriggling to > accommodate the JSampler code? > > Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: class > org.jsampler.view.fantasia.basic.PixmapPane (in unnamed module @0x248d4f4a) > cannot access class sun.swing.plaf.synth.Paint9Painter (in module java.des > ktop) because module java.desktop does not export sun.swing.plaf.synth to u > nnamed module @0x248d4f4a > > I know this is/was(?) Grishata's project and I lack the knowledge to even > begin trying to fix this up, but was wondering if anyone else has > encountered this and if there are workarounds for it? Yes, one of the following, but probably not an answer that you like: - Use QSampler instead of JSampler. or - Use an older Java SDK. or - Try fixing the issue in JSampler's source code. When you look at the Subversion repository [1] you will see that the last change on JSampler was almost 10 years ago. It is almost a miracle that it still worked for such a long time without any maintenance changes. [1] http://svn.linuxsampler.org/cgi-bin/viewvc.cgi/jsampler/trunk/?view=log > The alternative, if I cannot get it working would have to be diving into > sending LSCP commands to Linuxsampler via Netcat. That should be fun! ;) Or you just use QSampler, setup your session with mouse as usual, and if you still want to use LSCP from the command line you can just save your session with QSampler which saves it as LSCP file. So you would have an easy starting point from there. > A question for Christian, but is it possible through LSCP to tell > Linuxsampler to open gigedit "Live" on an instrument, so as to edit in > real-time, or was that a special function of JSampler? Sure! Both JSampler and QSampler control the sampler via LSCP. So everything they do, you can do as well. In this case it is EDIT CHANNEL INSTRUMENT <sampler-channel> http://www.linuxsampler.org/api/draft-linuxsampler-protocol.html#rfc.section.6.9.1 > > Cheers, > > Andrew. |
|
From: Andrew C <cou...@gm...> - 2021-12-21 16:36:42
|
My bad, I had forgotten about QSampler. I'll try that out instead and perhaps hunt down an older Java SDK version if possible. Cheers, Andrew. On Tue, Dec 21, 2021 at 4:23 PM Christian Schoenebeck < sch...@li...> wrote: > On Montag, 20. Dezember 2021 10:52:50 CET Andrew C wrote: > > Hi all, > > Hi, > > > I'm running into some critical errors with openJDK/JRE versions 16/18 and > > trying to run JSampler. It appears there are some older classes that are > no > > longer supported in these versions or perhaps need a bit more wriggling > to > > accommodate the JSampler code? > > > > Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: > class > > org.jsampler.view.fantasia.basic.PixmapPane (in unnamed module > @0x248d4f4a) > > cannot access class sun.swing.plaf.synth.Paint9Painter (in module > java.des > > ktop) because module java.desktop does not export sun.swing.plaf.synth > to u > > nnamed module @0x248d4f4a > > > > I know this is/was(?) Grishata's project and I lack the knowledge to even > > begin trying to fix this up, but was wondering if anyone else has > > encountered this and if there are workarounds for it? > > Yes, one of the following, but probably not an answer that you like: > > - Use QSampler instead of JSampler. > > or > > - Use an older Java SDK. > > or > > - Try fixing the issue in JSampler's source code. > > When you look at the Subversion repository [1] you will see that the last > change on JSampler was almost 10 years ago. It is almost a miracle that it > still worked for such a long time without any maintenance changes. > > [1] > http://svn.linuxsampler.org/cgi-bin/viewvc.cgi/jsampler/trunk/?view=log > > > The alternative, if I cannot get it working would have to be diving into > > sending LSCP commands to Linuxsampler via Netcat. That should be fun! ;) > > Or you just use QSampler, setup your session with mouse as usual, and if > you > still want to use LSCP from the command line you can just save your session > with QSampler which saves it as LSCP file. So you would have an easy > starting > point from there. > > > A question for Christian, but is it possible through LSCP to tell > > Linuxsampler to open gigedit "Live" on an instrument, so as to edit in > > real-time, or was that a special function of JSampler? > > Sure! Both JSampler and QSampler control the sampler via LSCP. So > everything > they do, you can do as well. In this case it is > > EDIT CHANNEL INSTRUMENT <sampler-channel> > > > http://www.linuxsampler.org/api/draft-linuxsampler-protocol.html#rfc.section.6.9.1 > > > > > Cheers, > > > > Andrew. > > > > > _______________________________________________ > Linuxsampler-devel mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel > |
|
From: Christian S. <sch...@li...> - 2021-12-21 16:51:04
|
On Dienstag, 21. Dezember 2021 17:36:24 CET Andrew C wrote: > My bad, I had forgotten about QSampler. I'll try that out instead and > perhaps hunt down an older Java SDK version if possible. > > Cheers, > Andrew. Maybe it is time to mark JSampler as orphaned (e.g. on the website) to make it more clear that nobody has been working on it for 10 years. If it no longer runs with a recent Java SDK version, then it is probably time to reflect the facts. CU Christian |
|
From: Grigor I. <gr....@gm...> - 2021-12-21 17:04:16
|
Hi Andrew, You should be able to launch JSampler with latest JRE using the following command: java --add-exports java.desktop/sun.swing.plaf.synth=ALL-UNNAMED -jar /path/to/Fantasia-0.9.jar There might also be other module permission/access issues, which should be easy to fix by using additional --add-exports and --add-opens options, if needed. Unfortunately, I don't have spare time for free projects anymore and I don't think that I'll be able to find time to work on JSampler in near future. Regards, Grigor. On Mon, Dec 20, 2021 at 11:53 AM Andrew C <cou...@gm...> wrote: > > Hi all, > > I'm running into some critical errors with openJDK/JRE versions 16/18 and trying to run JSampler. It appears there are some older classes that are no longer supported in these versions or perhaps need a bit more wriggling to accommodate the JSampler code? > > Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: class > org.jsampler.view.fantasia.basic.PixmapPane (in unnamed module @0x248d4f4a) > cannot access class sun.swing.plaf.synth.Paint9Painter (in module java.des > ktop) because module java.desktop does not export sun.swing.plaf.synth to u > nnamed module @0x248d4f4a > > I know this is/was(?) Grishata's project and I lack the knowledge to even begin trying to fix this up, but was wondering if anyone else has encountered this and if there are workarounds for it? > > The alternative, if I cannot get it working would have to be diving into sending LSCP commands to Linuxsampler via Netcat. That should be fun! ;) > > A question for Christian, but is it possible through LSCP to tell Linuxsampler to open gigedit "Live" on an instrument, so as to edit in real-time, or was that a special function of JSampler? > > Cheers, > > Andrew. > _______________________________________________ > Linuxsampler-devel mailing list > Lin...@li... > https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel |
|
From: Andrew C <cou...@gm...> - 2021-12-21 18:00:30
|
Hi Grigor, Thanks a bunch for that add-exports switch. JSampler is working fine now, save for some creaky warning messages on JRE 18. Andrew. On Tue, Dec 21, 2021 at 5:04 PM Grigor Iliev <gr....@gm...> wrote: > Hi Andrew, > You should be able to launch JSampler with latest JRE using the > following command: > > java --add-exports java.desktop/sun.swing.plaf.synth=ALL-UNNAMED -jar > /path/to/Fantasia-0.9.jar > > There might also be other module permission/access issues, which > should be easy to fix by using additional --add-exports and > --add-opens options, if needed. > > Unfortunately, I don't have spare time for free projects anymore and I > don't think that I'll be able to find time to work on JSampler in near > future. > > Regards, > Grigor. > > On Mon, Dec 20, 2021 at 11:53 AM Andrew C <cou...@gm...> wrote: > > > > Hi all, > > > > I'm running into some critical errors with openJDK/JRE versions 16/18 > and trying to run JSampler. It appears there are some older classes that > are no longer supported in these versions or perhaps need a bit more > wriggling to accommodate the JSampler code? > > > > Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: > class > > org.jsampler.view.fantasia.basic.PixmapPane (in unnamed module > @0x248d4f4a) > > cannot access class sun.swing.plaf.synth.Paint9Painter (in module > java.des > > ktop) because module java.desktop does not export sun.swing.plaf.synth > to u > > nnamed module @0x248d4f4a > > > > I know this is/was(?) Grishata's project and I lack the knowledge to > even begin trying to fix this up, but was wondering if anyone else has > encountered this and if there are workarounds for it? > > > > The alternative, if I cannot get it working would have to be diving into > sending LSCP commands to Linuxsampler via Netcat. That should be fun! ;) > > > > A question for Christian, but is it possible through LSCP to tell > Linuxsampler to open gigedit "Live" on an instrument, so as to edit in > real-time, or was that a special function of JSampler? > > > > Cheers, > > > > Andrew. > > _______________________________________________ > > Linuxsampler-devel mailing list > > Lin...@li... > > https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel > |
|
From: Grigor I. <gr....@gm...> - 2023-03-03 11:00:21
|
I migrated JSampler to github and added jigsaw support. Latest release can be downloaded from here: https://github.com/grigoriliev/jsampler-fantasia/releases Note that you DON'T need to have Java installed to install Fantasia using the provided installers, because Fantasia is packaged as a self-contained Java application. On Tue, Dec 21, 2021 at 8:00 PM Andrew C <cou...@gm...> wrote: > > Hi Grigor, > > Thanks a bunch for that add-exports switch. JSampler is working fine now, save for some creaky warning messages on JRE 18. > > Andrew. > > On Tue, Dec 21, 2021 at 5:04 PM Grigor Iliev <gr....@gm...> wrote: >> >> Hi Andrew, >> You should be able to launch JSampler with latest JRE using the >> following command: >> >> java --add-exports java.desktop/sun.swing.plaf.synth=ALL-UNNAMED -jar >> /path/to/Fantasia-0.9.jar >> >> There might also be other module permission/access issues, which >> should be easy to fix by using additional --add-exports and >> --add-opens options, if needed. >> >> Unfortunately, I don't have spare time for free projects anymore and I >> don't think that I'll be able to find time to work on JSampler in near >> future. >> >> Regards, >> Grigor. >> >> On Mon, Dec 20, 2021 at 11:53 AM Andrew C <cou...@gm...> wrote: >> > >> > Hi all, >> > >> > I'm running into some critical errors with openJDK/JRE versions 16/18 and trying to run JSampler. It appears there are some older classes that are no longer supported in these versions or perhaps need a bit more wriggling to accommodate the JSampler code? >> > >> > Exception in thread "AWT-EventQueue-0" java.lang.IllegalAccessError: class >> > org.jsampler.view.fantasia.basic.PixmapPane (in unnamed module @0x248d4f4a) >> > cannot access class sun.swing.plaf.synth.Paint9Painter (in module java.des >> > ktop) because module java.desktop does not export sun.swing.plaf.synth to u >> > nnamed module @0x248d4f4a >> > >> > I know this is/was(?) Grishata's project and I lack the knowledge to even begin trying to fix this up, but was wondering if anyone else has encountered this and if there are workarounds for it? >> > >> > The alternative, if I cannot get it working would have to be diving into sending LSCP commands to Linuxsampler via Netcat. That should be fun! ;) >> > >> > A question for Christian, but is it possible through LSCP to tell Linuxsampler to open gigedit "Live" on an instrument, so as to edit in real-time, or was that a special function of JSampler? >> > >> > Cheers, >> > >> > Andrew. >> > _______________________________________________ >> > Linuxsampler-devel mailing list >> > Lin...@li... >> > https://lists.sourceforge.net/lists/listinfo/linuxsampler-devel |
|
From: Christian S. <sch...@li...> - 2021-12-22 13:07:10
|
On Dienstag, 21. Dezember 2021 19:00:00 CET Andrew C wrote: > Hi Grigor, > > Thanks a bunch for that add-exports switch. JSampler is working fine now, > save for some creaky warning messages on JRE 18. > > Andrew. > > On Tue, Dec 21, 2021 at 5:04 PM Grigor Iliev <gr....@gm...> wrote: > > Hi Andrew, > > You should be able to launch JSampler with latest JRE using the > > following command: > > > > java --add-exports java.desktop/sun.swing.plaf.synth=ALL-UNNAMED -jar > > /path/to/Fantasia-0.9.jar Good to know that this is working, thanks Grigor! Any clue which JRE version starts to make this necessary? CU Christian |
|
From: Grigor I. <gr....@gm...> - 2021-12-22 13:26:20
|
On Wed, Dec 22, 2021 at 3:07 PM Christian Schoenebeck <sch...@li...> wrote: > Any clue which JRE version starts to make this necessary? I think it is Java 9 - when the module system was introduced (Jigsaw). |