DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 30th October 2020
niks007 niks007 is offline
Port Guard
 
Join Date: Oct 2020
Location: Germany and India
Posts: 24
Exclamation 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.
Reply With Quote
  #2   (View Single Post)  
Old 30th October 2020
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

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`?
Reply With Quote
  #3   (View Single Post)  
Old 2nd November 2020
niks007 niks007 is offline
Port Guard
 
Join Date: Oct 2020
Location: Germany and India
Posts: 24
Default

Thanks @TronDD,

here is the o/p of mount command..

openbsd-vm01# mount
/dev/sd0a on / type ffs (local, noatime, softdep)
openbsd-vm01#
Reply With Quote
  #4   (View Single Post)  
Old 2nd November 2020
niks007 niks007 is offline
Port Guard
 
Join Date: Oct 2020
Location: Germany and India
Posts: 24
Default

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#
Reply With Quote
  #5   (View Single Post)  
Old 2nd November 2020
TronDD TronDD is offline
Spam Deminer
 
Join Date: Sep 2014
Posts: 305
Default

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.
Reply With Quote
Reply

Tags
installation, java, openbsd 6.7


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 10:21 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick