Tostis / areca

Fork of https://sourceforge.net/projects/areca/
GNU General Public License v2.0
5 stars 0 forks source link

using a different AWT #3

Open ag88 opened 1 month ago

ag88 commented 1 month ago

This is more an 'app/build note': I had an old linux installation which needs a different AWT jar library

it turns out there is a separate SWT repository for eclipse under the group org.eclipse.platform https://search.maven.org/search?q=g:org.eclipse.platform e.g. I modified the profile-\<OS>.gradle file accordingly (this is an example for linux 64)

dependencies {
//    implementation('org.eclipse.swt:org.eclipse.swt.gtk.linux.x86_64:4.3')
    implementation('org.eclipse.platform:org.eclipse.swt.gtk.linux.x86_64:3.126.0') {
        exclude group: 'org.eclipse.platform', module: 'org.eclipse.swt'
    }
}

note that the version 3.126.0 may not be necessarily suitable for one's OS environment, one need to find a version that works if one diagnose the errors to be strictly an SWT issue.

I managed a build that way by substituting the swt implementation. it may not necessary solve one's problem, but leaving a note here just in case it helps.