First, I can use Java, but for what I want to achieve (building a database where othe only application supporting the format is in Java), I need 100Gb of RAM during 20 hours.

I have access to a server with the required RAM, but not as root and no JRE is available. The same is true for the Xorg libraries.

Here’s the uname :

8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #0: Sun Feb 24 10:50:49 UTC 2019  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

The Linux layer is installed, but nothing else is installed : not even Glibc, so the only applications which can be run are the ones which are statically compiled.

So not only Java isn’t Installed, but some of the require shared libraries are missing…
However, I have full write access to my $HOME directory, and I can run my own executables from there.

Is a way to convert a Jar file into a NetBsd Executable or Linux statically linked executable ? I have also the source code of the Jar file if compiling is an acceptable solution.

I only found about ɢᴄᴊ, but I’m unsure if Java 7 is supported…

  • I already know about superuser.com/q/745112 but it’s for Windows… – user2284570 Aug 20 '19 at 13:47
  • You could maybe download Java from Oracle and simply extract the tar file in your home directory, and then set up the JAVA_HOME and other env. variables. Not sure about getting X11 forwarding over ssh working though, not sure how much X11 is needed on the remote side... – ivanivan Aug 20 '19 at 14:14
  • @ivanivan as far I’m aware, the Oracle version doesn’t exists for Netʙꜱᴅ and the Linux version isn’t statically linked. Also, why the close vote ?. – user2284570 Aug 20 '19 at 14:56
  • 1
    Not sure on the close vote, I didn't cast it. At this point though I'd say "check out linode.com they offer VMs with enough RAM for your purposes for less than $1/hr and you can get a $10 free credit when you sign up". – ivanivan Aug 20 '19 at 15:34
  • @ivanivan though, I also need 20Gb of disk space and network and the 20 hours ᴄᴘᴜ time is for a i7‑4700 which means faster ᴄᴘᴜ would takes less times while faster ones would take more. – user2284570 Aug 20 '19 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.