|
OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Java/Jdk not working
Hi,
I am using openbsd6.7, I have installed jdk 1.8 version but when i run java --version it gives error openbsd-vm01# pwd /usr/local/jdk-1.8.0/bin openbsd-vm01# ./java -version Error occurred during initialization of VM Could not reserve enough space for code cache openbsd-vm01# openbsd-vm01# ulimit -a time(cpu-seconds) unlimited file(blocks) unlimited coredump(blocks) unlimited data(kbytes) 786432 stack(kbytes) 4096 lockedmem(kbytes) 2701868 memory(kbytes) 8102744 nofiles(descriptors) 512 processes 128 openbsd-vm01# openbsd-vm01# uname -a OpenBSD openbsd-vm01 6.7 GENERIC.MP#182 amd64 openbsd-vm01# openbsd-vm01# free total used free Mem: 8175M 907M 7268M Swap: 0B 0B 0B openbsd-vm01# I also deployed instance(openstack) with higher memory and cpu but still same issue. |
|
|||
I think I've seen this. Trying to remember what it was.
Do you have the wxallowed flag on the filesystem the jdk is running on? What's the output of `mount`? |
|
|||
Thanks @TronDD,
here is the o/p of mount command.. openbsd-vm01# mount /dev/sd0a on / type ffs (local, noatime, softdep) openbsd-vm01# |
|
|||
Thanks for hint,
I tried "wxallowed " and it worked well openbsd-vm01# cat /etc/fstab 8bff342e8d813c9a.a / ffs rw,softdep,noatime,wxallowed 1 1 openbsd-vm01# openbsd-vm01# java -version openjdk version "1.8.0_265" OpenJDK Runtime Environment (build 1.8.0_265-b01) OpenJDK 64-Bit Server VM (build 25.265-b01, mixed mode) openbsd-vm01# |
|
|||
Thought you might have a non-default partition layout. That's why /usr/local is a seperate mount point by default. It gets the wxallowed flag without enabling it for the whole system. The partition layout and their flags are part of the security settings.
Lecture aside, glad that fix it. |
Tags |
installation, java, openbsd 6.7 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mouse:X (not-working) and tty-Console (working), in 8.0 | ykt | FreeBSD General | 1 | 22nd December 2009 12:26 PM |
Java 1.6 plugin not working with Firefox 3 | whetphish | FreeBSD Ports and Packages | 5 | 23rd February 2009 07:16 AM |
java compiler | bsdnewbie999 | OpenBSD Packages and Ports | 8 | 9th August 2008 12:18 PM |
Java + FF3 = crash | graudeejs | FreeBSD Ports and Packages | 12 | 3rd August 2008 08:26 AM |
Java JDK | Oko | OpenBSD Packages and Ports | 10 | 13th July 2008 07:39 PM |