Discussion:
Java on OpenBSD
Nicky
2003-06-02 18:14:52 UTC
Permalink
Hello People,

I was hoping someone could help me with the following problem.

I've installed the '/devel/jdk/1.3-linux' port on my OpenBSD 3.3 System. Installation goes without problems. However when i try to start the '/usr/local/jdk1.3.1-linux/bin/java i get the following error:

OUCH: nested memory code, to 1 levels.
Abort trap (core dumped)

I have no idea what this means, so if you need more information. Just let me know.

I've updated my ports and tried again, but same problem. I even tried building my world from the latest stable sources. I use the GENERIC kernel so there shouldn't be anything funny there. The JDK that is installed is the 1.3.1_07 linux version.

I hope any of you have any idea on how to solve this.

Thanks for you helps.
Nicky
Rick Barter
2003-06-02 19:18:23 UTC
Permalink
My first question would be: Are you running Linux Emulation?

Then:

Do you have your java directory setup in your PATH?
Do you have all of your CLASSPATH variables set up correctly?
Does it work if you type /usr/local/jdk1.3.2-linux/bin/java <your
class>?
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 1:15 PM
Subject: Java on OpenBSD
Hello People,
I was hoping someone could help me with the following problem.
I've installed the '/devel/jdk/1.3-linux' port on my
OpenBSD 3.3 System. Installation goes without problems.
However when i try to start the
OUCH: nested memory code, to 1 levels.
Abort trap (core dumped)
I have no idea what this means, so if you need more
information. Just let me know.
I've updated my ports and tried again, but same problem.
I even tried building my world from the latest stable
sources. I use the GENERIC kernel so there shouldn't be
anything funny there. The JDK that is installed is the
1.3.1_07 linux version.
I hope any of you have any idea on how to solve this.
Thanks for you helps.
Nicky
Nicky
2003-06-02 20:05:04 UTC
Permalink
Oops..didn't include the ***@openbsd.org
..

Ok here, goes.

I'm assuming Linux Emulation runs because i have other programs that run in linux emulation. Which are running fine. Is there a command check for sure if linux emulation runs?

I've set the following variables which concern java..

added /usr/local/jdk1.3.1-linux/bin to my path.
added JAVA_HOME /usrlocal/jdk1.3.1-linux

Both variables work. Although i do not think that it has anything to with that. Since i am trying to start the JVM from it's own directory. A simple 'java -version' even crashes with the core-dump error.

I did try to compile a java source file. But javac gives me the same core dump error. Could it be in the Java Wrapper? Since if javac also crashes it has nothing to do with the JVM, i think. But more with either the java wrapper or my linux emulation.

Thanks in advance.
Post by Rick Barter
My first question would be: Are you running Linux Emulation?
Do you have your java directory setup in your PATH?
Do you have all of your CLASSPATH variables set up correctly?
Does it work if you type /usr/local/jdk1.3.2-linux/bin/java <your
class>?
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 1:15 PM
Subject: Java on OpenBSD
Hello People,
I was hoping someone could help me with the following problem.
I've installed the '/devel/jdk/1.3-linux' port on my
OpenBSD 3.3 System. Installation goes without problems.
However when i try to start the
OUCH: nested memory code, to 1 levels.
Abort trap (core dumped)
I have no idea what this means, so if you need more
information. Just let me know.
I've updated my ports and tried again, but same problem.
I even tried building my world from the latest stable
sources. I use the GENERIC kernel so there shouldn't be
anything funny there. The JDK that is installed is the
1.3.1_07 linux version.
I hope any of you have any idea on how to solve this.
Thanks for you helps.
Nicky
Otto Moerbeek
2003-06-02 20:13:04 UTC
Permalink
Post by Nicky
I did try to compile a java source file. But javac gives me the same
core dump error. Could it be in the Java Wrapper? Since if javac also
crashes it has nothing to do with the JVM, i think. But more with
either the java wrapper or my linux emulation.
javac is a java program. To run javac, a VM is created first.

-Otto
Rick Barter
2003-06-02 20:44:36 UTC
Permalink
Man, I haven't found anything about that. Can you post what your
typing in and the exact output you're getting? Maybe that would help
me duplicate it or something. Unfortunately, I'm running on 3.0 still
though. I just got my 3.3 CDs and haven't converted my production box
(and won't for awhile).

But, maybe together we can figure this thing out.

rvb
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 3:05 PM
Subject: Re: Java on OpenBSD
..
Ok here, goes.
I'm assuming Linux Emulation runs because i have other
programs that run in linux emulation. Which are running
fine. Is there a command check for sure if linux emulation runs?
I've set the following variables which concern java..
added /usr/local/jdk1.3.1-linux/bin to my path.
added JAVA_HOME /usrlocal/jdk1.3.1-linux
Both variables work. Although i do not think that it has
anything to with that. Since i am trying to start the
JVM from it's own directory. A simple 'java -version'
even crashes with the core-dump error.
I did try to compile a java source file. But javac gives
me the same core dump error. Could it be in the Java
Wrapper? Since if javac also crashes it has nothing to
do with the JVM, i think. But more with either the java
wrapper or my linux emulation.
Thanks in advance.
Post by Rick Barter
My first question would be: Are you running Linux Emulation?
Do you have your java directory setup in your PATH?
Do you have all of your CLASSPATH variables set up correctly?
Does it work if you type
/usr/local/jdk1.3.2-linux/bin/java <your
Post by Rick Barter
class>?
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 1:15 PM
Subject: Java on OpenBSD
Hello People,
I was hoping someone could help me with the
following problem.
Post by Rick Barter
I've installed the '/devel/jdk/1.3-linux' port on my
OpenBSD 3.3 System. Installation goes without problems.
However when i try to start the
'/usr/local/jdk1.3.1-linux/bin/java i get the
OUCH: nested memory code, to 1 levels.
Abort trap (core dumped)
I have no idea what this means, so if you need more
information. Just let me know.
I've updated my ports and tried again, but same problem.
I even tried building my world from the latest stable
sources. I use the GENERIC kernel so there shouldn't be
anything funny there. The JDK that is installed is the
1.3.1_07 linux version.
I hope any of you have any idea on how to solve this.
Thanks for you helps.
Nicky
Rick Barter
2003-06-02 20:17:53 UTC
Permalink
Unfortunately, I'm not sure. I've never seen that error. But, it
sounds like you have things set up right. I tried to grep through the
.java_wrapper file for the word OUCH, but didn't find anything. I'm
not sure where the error message is comes from.

Maybe search the archives or post to the OpenBSD-Java mailing list.

rvb
-----Original Message-----
Sent: Monday, June 02, 2003 2:58 PM
To: Rick Barter
Subject: Re: Java on OpenBSD
Linux emulation is enabled, at least i have other
programs running that require linux emulation. Therefor
i assume it is running. Is there a way to check for sure?
/usr/local/jdk1.3.1-linux/bin in my path.
JAVA_HOME is set to /usr/local/jdk1.3.1-linux
although setting these variables, shouldn't matter.
Since i call the java executable from its /bin
directory. However, with or without these variables i
get the same error.
i've tried to compile a java source file. But javac
gives me the same core-dump error. Could it be a problem
in the Java Wrapper? Just a while guess.
Thanks in advance.
Post by Rick Barter
My first question would be: Are you running Linux Emulation?
Do you have your java directory setup in your PATH?
Do you have all of your CLASSPATH variables set up correctly?
Does it work if you type
/usr/local/jdk1.3.2-linux/bin/java <your
Post by Rick Barter
class>?
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 1:15 PM
Subject: Java on OpenBSD
Hello People,
I was hoping someone could help me with the
following problem.
Post by Rick Barter
I've installed the '/devel/jdk/1.3-linux' port on my
OpenBSD 3.3 System. Installation goes without problems.
However when i try to start the
'/usr/local/jdk1.3.1-linux/bin/java i get the
OUCH: nested memory code, to 1 levels.
Abort trap (core dumped)
I have no idea what this means, so if you need more
information. Just let me know.
I've updated my ports and tried again, but same problem.
I even tried building my world from the latest stable
sources. I use the GENERIC kernel so there shouldn't be
anything funny there. The JDK that is installed is the
1.3.1_07 linux version.
I hope any of you have any idea on how to solve this.
Thanks for you helps.
Nicky
Nicky
2003-06-02 20:33:10 UTC
Permalink
I wasn't aware of an OpenBSD-java mailing list. However it did give me the hint to search other mailings lists. It seems that (ports-mailinglist) there is entry that Java does not work with the new RedHat 8 emulation. But it should work with the RedHat 6 emulation. I will try the 6 version and tell if it works or not.

Greetz, and thanks for the help.
Post by Rick Barter
Unfortunately, I'm not sure. I've never seen that error. But, it
sounds like you have things set up right. I tried to grep through the
.java_wrapper file for the word OUCH, but didn't find anything. I'm
not sure where the error message is comes from.
Maybe search the archives or post to the OpenBSD-Java mailing list.
rvb
-----Original Message-----
Sent: Monday, June 02, 2003 2:58 PM
To: Rick Barter
Subject: Re: Java on OpenBSD
Linux emulation is enabled, at least i have other
programs running that require linux emulation. Therefor
i assume it is running. Is there a way to check for sure?
/usr/local/jdk1.3.1-linux/bin in my path.
JAVA_HOME is set to /usr/local/jdk1.3.1-linux
although setting these variables, shouldn't matter.
Since i call the java executable from its /bin
directory. However, with or without these variables i
get the same error.
i've tried to compile a java source file. But javac
gives me the same core-dump error. Could it be a problem
in the Java Wrapper? Just a while guess.
Thanks in advance.
Post by Rick Barter
My first question would be: Are you running Linux Emulation?
Do you have your java directory setup in your PATH?
Do you have all of your CLASSPATH variables set up correctly?
Does it work if you type
/usr/local/jdk1.3.2-linux/bin/java <your
Post by Rick Barter
class>?
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 1:15 PM
Subject: Java on OpenBSD
Hello People,
I was hoping someone could help me with the
following problem.
Post by Rick Barter
I've installed the '/devel/jdk/1.3-linux' port on my
OpenBSD 3.3 System. Installation goes without problems.
However when i try to start the
'/usr/local/jdk1.3.1-linux/bin/java i get the
OUCH: nested memory code, to 1 levels.
Abort trap (core dumped)
I have no idea what this means, so if you need more
information. Just let me know.
I've updated my ports and tried again, but same problem.
I even tried building my world from the latest stable
sources. I use the GENERIC kernel so there shouldn't be
anything funny there. The JDK that is installed is the
1.3.1_07 linux version.
I hope any of you have any idea on how to solve this.
Thanks for you helps.
Nicky
Rick Barter
2003-06-02 20:54:39 UTC
Permalink
Very interesting. Let me know if this works out because this *will*
be an issue when I upgrade to 3.3 on my production machine.

I thought someone out there was running Java natively on OpenBSD 3.x.
Can anyone confirm this and tell us what's involved or deny this?

Thanks,

rvb
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 3:33 PM
Subject: Re: Java on OpenBSD
I wasn't aware of an OpenBSD-java mailing list. However
it did give me the hint to search other mailings lists.
It seems that (ports-mailinglist) there is entry that
Java does not work with the new RedHat 8 emulation. But
it should work with the RedHat 6 emulation. I will try
the 6 version and tell if it works or not.
Greetz, and thanks for the help.
Post by Rick Barter
Unfortunately, I'm not sure. I've never seen that
error. But, it
Post by Rick Barter
sounds like you have things set up right. I tried to
grep through the
Post by Rick Barter
.java_wrapper file for the word OUCH, but didn't find
anything. I'm
Post by Rick Barter
not sure where the error message is comes from.
Maybe search the archives or post to the OpenBSD-Java
mailing list.
Post by Rick Barter
rvb
-----Original Message-----
Sent: Monday, June 02, 2003 2:58 PM
To: Rick Barter
Subject: Re: Java on OpenBSD
Linux emulation is enabled, at least i have other
programs running that require linux emulation. Therefor
i assume it is running. Is there a way to check for sure?
The enviroment variables that have anything to do
/usr/local/jdk1.3.1-linux/bin in my path.
JAVA_HOME is set to /usr/local/jdk1.3.1-linux
although setting these variables, shouldn't matter.
Since i call the java executable from its /bin
directory. However, with or without these variables i
get the same error.
i've tried to compile a java source file. But javac
gives me the same core-dump error. Could it be a problem
in the Java Wrapper? Just a while guess.
Thanks in advance.
On Mon, Jun 02, 2003 at 02:18:23PM -0500, Rick
Post by Rick Barter
My first question would be: Are you running
Linux Emulation?
Post by Rick Barter
Post by Rick Barter
Do you have your java directory setup in your PATH?
Do you have all of your CLASSPATH variables set
up correctly?
Post by Rick Barter
Post by Rick Barter
Does it work if you type
/usr/local/jdk1.3.2-linux/bin/java <your
Post by Rick Barter
class>?
-----Original Message-----
Nicky
Sent: Monday, June 02, 2003 1:15 PM
Subject: Java on OpenBSD
Hello People,
I was hoping someone could help me with the
following problem.
Post by Rick Barter
I've installed the '/devel/jdk/1.3-linux'
port on my
Post by Rick Barter
Post by Rick Barter
OpenBSD 3.3 System. Installation goes
without problems.
Post by Rick Barter
Post by Rick Barter
However when i try to start the
'/usr/local/jdk1.3.1-linux/bin/java i get the
OUCH: nested memory code, to 1 levels.
Abort trap (core dumped)
I have no idea what this means, so if you need more
information. Just let me know.
I've updated my ports and tried again, but
same problem.
Post by Rick Barter
Post by Rick Barter
I even tried building my world from the
latest stable
Post by Rick Barter
Post by Rick Barter
sources. I use the GENERIC kernel so there
shouldn't be
Post by Rick Barter
Post by Rick Barter
anything funny there. The JDK that is
installed is the
Post by Rick Barter
Post by Rick Barter
1.3.1_07 linux version.
I hope any of you have any idea on how to
solve this.
Post by Rick Barter
Post by Rick Barter
Thanks for you helps.
Nicky
Continue reading on narkive:
Loading...