pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: help with running a Java program on NetBSD



Thomas Klausner <wiz%NetBSD.org@localhost> wrote:
>On Thu, Sep 15, 2022 at 07:48:43PM +0100, Robert Swindells wrote:
>> 
>> Thomas Klausner <wiz%NetBSD.org@localhost> wrote:
>> > I'd like to run https://technology.a-sit.at/pdf-over-2/ on
>> >  NetBSD-current/amd64.
>> 
>> [snip]
>> 
>> > Can someone please help in getting this running on NetBSD?
>> 
>> Easiest - use qemu to run Linux in a VM.
>> 
>> Next easiest - port SWT to NetBSD. This would get us part way to a port
>> of Eclipse.
>
> I don't speak Java and know nothing about the build systems commonly used :(

Porting SWT may not be as hard as it used to be, it seems to be split
out from the rest of the Eclipse source tree now.

I looked at porting Eclipse several years ago, the main issue seemed to
be just the number of modules/bundles that needed their build files
modifying to know about NetBSD.

Maybe add this to the projects list in the wiki.

>> Hardest - fix futexes in NetBSD so that you can run Linux Java 17.
>
> I'm pretty sure there is futex support in NetBSD.

There is futex support, that is why I wrote that your task would be to
fix them to work correctly.

> (In my experience it is buggy - I had random hangs with the old
> version of PDF-Over, see
> http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56828 -- but
> it exists).

It was me that suggested using the Metalworks demo to reproduce the bug.

You could try running your app using Linux Java 17 to see if it works.


Home | Main Index | Thread Index | Old Index