Author Topic: Ancestris for Haiku?  (Read 33028 times)

0 Members and 1 Guest are viewing this topic.

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Ancestris for Haiku?
« on: October 11, 2020, 06:10:30 »
A question from me in the Haiku forum (https://discuss.haiku-os.org/t/java-openjdk/2583/35) and an answer to it:

    Question from Polli (me):
Despite the availability of OpenJDK + NetBeans for Haiku, the software has yet to be "rebuilt" in order to use it with Haiku. This is probably even required "within" the various Linux distributions
   
    Reply from un_spacyar:
No. If the Java app is distributed as a JAR package, all you need to do is open a terminal and type:
java -jar <filename>

This command can be included in a simple .sh script and then run the app by double-clicking it.

    My question here on the Ancestris forum:
So can I forget a 'simple' use of Ancestris on Haiku?

Thanks for an answer!
He who cries out for tolerance the loudest, exercises it the least himself!

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Ancestris for Haiku?
« Reply #1 on: October 11, 2020, 07:59:37 »
Addition to the previous post:

After a long wait, Haiku is now running great on my Zotac ZBOX IQ01.
When it comes to JAVA, decisive things have also happened (OpenJDK, netBeans).
Is that enough (see ScreenShots)?

Thanks for an answer!
He who cries out for tolerance the loudest, exercises it the least himself!

Online Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 474
    • View Profile
Re: Ancestris for Haiku?
« Reply #2 on: October 11, 2020, 09:06:57 »
Technically, on Linux flavor OS, the launching script is "ancestris".
This is a shell script that check variables and launch the "platform/lib/nbexec" script.
This shell script launch a command line with "org.netbeans.Main" as main class.
As far as I can see, everything is jar file in the netbeans distribution (Platform and Harness).

For my understanding, you can launch Ancestris from Haiku.
Besides this, I have no clues about the graphical library involved.

Did you try just to run ancestris script from Haiku after have downloaded it on your computer ?

Zurga

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Ancestris for Haiku?
« Reply #3 on: October 11, 2020, 11:29:56 »
Thank you for your answer, Zurga!

Unfortunately it doesn't help me, not even https://discuss.haiku-os.org/t/haiku-java/8929 and neither do the answers at Ancestris!
I am primarily a user. All answers received so far, no matter where and from whom, are unfortunately written in such a way that I could only use them if I am a freak or at least an 'insider'.

It is probably better if I continue to use my old (also an older version) software (sometimes with serious errors, including data loss, but simply brilliant) under Windows.
I would have preferred to use Ancestris via haiku, but there are more important things in life!
He who cries out for tolerance the loudest, exercises it the least himself!

Online Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 474
    • View Profile
Re: Ancestris for Haiku?
« Reply #4 on: October 11, 2020, 11:40:10 »
OK, I will try to be less technic.

First install Java for Haiku. Prefer OpenJdk 11 rather than 13. (Long term support involved, but technic part).
Then download the zip file with all Ancestris distribution. (generic linux file or v11 package).
Unzip the content of Ancestris zip file in a directory.
In a command line console, go to bin directory inside ancestris directory.
Type ./ancestris

What happens ?

The basic launch installation is there : https://docs.ancestris.org/books/user-guide/page/install-and-start-ancestris#bkmrk-start-ancestris

Zurga

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Ancestris for Haiku?
« Reply #5 on: October 11, 2020, 15:11:49 »
Thank you, Zurga!

Before I (probably) struggle in vain, I posted your answer on the Haiku forum (https://discuss.haiku-os.org/t/java-openjdk/2583/37).
I received the following answer (s):

MrEntropy
1
2h

I installed openjdk11 from HaikuDepot, which also installed openjdk11_jre. However, ‘java’ could not be found until I also installed openjdk11_default.

Running ./ancentris resulted in… “an illegal reflective access by org.netbeans”

So, probably not very helpful to you but it does try to do something.

Update:
Using JDK8, I got the Ancestris splash screen, and then it crashed.

MrEntropy
2h

This is from the java debug report that got saved, if it helps anybody.
Frame IP Function Name
-----------------------------------------------
00000000 0x15bbe5af072 _kern_snooze_etc + 0xa
Disassembly:
_kern_snooze_etc:
0x0000015bbe5af068: 4989ca mov %rcx, %r10
0x0000015bbe5af06b: 48c7c0bb000000 mov $0xbb, %rax
0x0000015bbe5af072: 0f05 syscall <–

   0x7ffdba6c8d20   0x15bbe630ce7   clock_nanosleep + 0x67
   0x7ffdba6c8d40   0x15bbe632493   nanosleep + 0x13
   0x7ffdba6c8d50   0x1af14933478   /boot/system/lib/openjdk11/lib/server/libjvm.so + 0xb47478
   0x7ffdba6c8f10   0x1af149e4c02   /boot/system/lib/openjdk11/lib/server/libjvm.so + 0xbf8c02
   0x7ffdba6c90c0   0x1af14b277f3   /boot/system/lib/openjdk11/lib/server/libjvm.so + 0xd3b7f3
   0x7ffdba6c9130   0x1af14b27af3   /boot/system/lib/openjdk11/lib/server/libjvm.so + 0xd3baf3
   0x7ffdba6c91b0   0x1af14ac12b4   /boot/system/lib/openjdk11/lib/server/libjvm.so + 0xcd52b4
   0x7ffdba6c91f0   0x1af1493512e   /boot/system/lib/openjdk11/lib/server/libjvm.so + 0xb4912e
   0x7ffdba6c9220   0x15bbe5bea05   pthread_thread_entry(void*, void*) + 0x15
   00000000   0x7ffffe5ec260   commpage_thread_exit + 0

I don't know if you can see anything from this that could help?
There was once a working port from Ancestris 0.9 for Haiku.
At some point there were internal changes in the OS and it no longer worked.
Since the creator, Prof. Michel Clasquin-Johnson, did not write or add a recipe, a new beginning would be necessary.
He who cries out for tolerance the loudest, exercises it the least himself!

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Ancestris for Haiku?
« Reply #6 on: October 11, 2020, 16:41:45 »

MrEntropy
2h
No problem. I can probably get better and more complete logs if you need them.

Reply

Polli (me)
2h
netbeans in the HaikuDepot = 8.2-1
Aktuell Apache NetBeans = 12.0 (4. Juni 2020)

Can it be related to that?
He who cries out for tolerance the loudest, exercises it the least himself!

Online Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 474
    • View Profile
Re: Ancestris for Haiku?
« Reply #7 on: October 11, 2020, 16:44:53 »
I answered directly on Haiku forum.

Zurga

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Ancestris for Haiku?
« Reply #8 on: October 11, 2020, 16:50:52 »
Thank you very much, Zurga!
Fantastic, this help!
He who cries out for tolerance the loudest, exercises it the least himself!

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Ancestris for Haiku?
« Reply #9 on: October 11, 2020, 21:10:12 »
Ancestris under Haiku shows my son-in-law Stefan's French ancestors.
He who cries out for tolerance the loudest, exercises it the least himself!

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Ancestris for Haiku?
« Reply #10 on: October 12, 2020, 07:37:08 »
I installed from the haiku depot, ignoring the necessity:

ca_root_certificates_java
openjdk8
openjdk8_default
openjdk8_jre
openjdk8_sources
netbeans_bin 8.2-1

Ancestris versions 10 for Linux, version 10 for MacOSX and version 11 (latest, nightly) for ALL can be started.

Each time after an error message appears, ignoring it and (without cleaning up) restarting it!
« Last Edit: October 12, 2020, 08:09:43 by Pollux »
He who cries out for tolerance the loudest, exercises it the least himself!

Online Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 474
    • View Profile
Re : Ancestris for Haiku?
« Reply #11 on: October 12, 2020, 08:47:25 »
Thank for your feedback.

I'm pretty sure that Netbeans is not required to launch Ancestris.
All the Netbeans files are taken from the Ancestris package.

Zurga

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re : Ancestris für Haiku?
« Reply #12 on: October 12, 2020, 09:01:37 »
There is still a lot to do, not on the part of the Ancestris programmers, but on the part of Haiku!
I'm curious to see if something happens!
Before Ancestris can start, there is always an error message that has not been cleaned up (then Ancestris will not start up) but must be ignored.
There are other error messages on certain occasions without blocking Ancestris.
Should I send such error messages (or screenshots of them) to an email address? Otherwise I might overload the forum.

Zurga, thank you again for your commitment!

Pollux
« Last Edit: October 12, 2020, 09:59:21 by Pollux »
He who cries out for tolerance the loudest, exercises it the least himself!

Online Zurga

  • VIP
  • Supernatural Member
  • *
  • Posts: 4 474
    • View Profile
Re: Ancestris for Haiku?
« Reply #13 on: October 12, 2020, 09:31:55 »
If you believe that the problem is related to something we could do, you can post the errors.
If you believe that the trouble is related to Haiku and Java port, there is nothing we can do.

Any information can help others users.

Zurga

Offline Pollux

  • VIP
  • Hero Member
  • *
  • Posts: 141
    • View Profile
Re: Re : Ancestris für Haiku?
« Reply #14 on: October 14, 2020, 04:06:55 »
Thank for your feedback.

I'm pretty sure that Netbeans is not required to launch Ancestris.
All the Netbeans files are taken from the Ancestris package.

Zurga

After starting Ancestris 11 and downloading the available updates, a colored NetBeans will start.
That can't be the NetBeans 8.2-1 from the HaikuDepot ...
So you seem to be correct with your guess !?

Pollux

Edit...

After I tried to implement your recommendation to use OpenJDK11 again, it could not be installed because:

    https://discuss.haiku-os.org/t/java-openjdk/2583/66

    Polli
    12h
    When trying to install OpenJDK11 comes:
    nothing provides lib:libjpeg>=9.3.0 needed by openjdk11_jre-11.0.4.11-1

    Is there a solution?
   
What are the advantages of OpenJDK11 over OpenJDK8 for use by Ancestris11 (latest)?

Thanks, Pollux
« Last Edit: October 14, 2020, 06:45:22 by Pollux »
He who cries out for tolerance the loudest, exercises it the least himself!