Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

117
Views
module-info.java for SWT cross-platform maven project

On Windows package org.eclipse.swt.win32.win32.x86_64 is used, while for Linux build it's org.eclipse.swt.gtk.linux.x86_64.

  1. If nothing is specified in module-info.java, error message is java: package org.eclipse.swt does not exist

  2. If in module-info.java both are specified:

    requires org.eclipse.swt.gtk.linux.x86_64;
    requires org.eclipse.swt.win32.win32.x86_64;
    

    error message: module ... reads package org.eclipse.swt from both org.eclipse.swt.gtk.linux.x86_64 and org.eclipse.swt.win32.win32.x86_64

  3. If only one requires is specified, then project works only on one platform.

What would be correct setup for module-info.java, so that project would run on both platforms?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It's a bug 559162 in SWT. Their Automatic-Module-Name in the SWT jar files manifest is impractical.

I suggest to stick to module-less builds (without module-info.java) until this gets fixed.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!