Skip to content
Advertisement

Tag: java

Does Java JVM use pthread?

Does JVM on Mac OS X use pthread to create threads? What about on Linux distributions, is it now default way to create threads for JVM on all distributions? Answer Yes, HotSpot JVM (i.e. Oracle JDK and OpenJDK) uses pthreads on Linux and on Mac OS X.

Printing the compilation errors to a file in disk

I am a student of computer science. I am learning java on linux platform ubuntu. While I am compiling a program always I get some compilation error in terminal. I tried to read the error message from terminal. I think reading these error message gives me better understanding about the program/java language itself. So when I recover the error sometimes

Removing trailing bin/java at end of environmental variable in linux

I am trying to compile mahout, I have temporarily changed the JAVA_HOME variable like this: and I checked that it was changed correctly using this command: which returns: But when I run mahout mvn clean install -DskipTests=true I run into this error: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.33.x86_64/bin/java I am not sure how this bin/java has

What is the integer value of AF_UNIX?

So, I’m trying to write some JNA code to work with Unix sockets, and I’m trying to reference AF_UNIX for sockets. I looked through some of the gcc included files, but I couldn’t find anything. Answer On my Ubuntu-machine it is defined in /usr/include/x86_64-linux-gnu/bits/socket.h as 1. I haven’t checked around in other Unix source trees, but I have a feeling

Changing SAMBA Password in Java

I have a Java program running on linux that needs to be able to both set a users initial samba password, and then allow them to change their password without giving them access to the terminal. Below is my code for changing the users password, as this is easier to test with, and I will be able to figure the

Unable to connect Serviceable Agent (sun.jvm.hotspot.HSDB) to running jvm on windows 7 (32 Bit)

As per the link I successfully be able to connect HSDB to running jvm process on Ubuntu by following steps below: (On Ubuntu Terminal) set SA_JAVA=/usr/lib/jvm/java-8-oracle/bin/java (On Ubuntu Terminal) echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope (On Ubuntu Terminal) java -Dsun.jvm.hotspot.debugger.useProcDebugger=true -classpath /usr/lib/jvm/java-8-orcale/lib/sa-jdi.jar sun.jvm.hotspot.HSDB For Windows 7 32 Bit and from the same link I tried to connect sun.jvm.hotspot.HSDB with running

How can I resolve Windows vs Linux properties file paths?

I have a java project on a Windows box which builds successfully and all tests pass locally. This project is then checked in and built with Jenkins on a Linux box. The problem I am having is related to path issues in my properties file which is used for running tests. I point to a resources dir for part of

IntelliJ Linux LWJGL 3 Add natives to

I wanted to try out the new LWJGL 3 which is currently in kind of a “beta”-state. Embarrassingly I can’t even get the HelloWorld example (http://www.lwjgl.org/guide) to run. package org.lwjgl.glfw does not exist is all I get. I added the lwjgl.jar and disruptor.jar to my module dependencies, but I guess I’m missing something about the natives here. I tried adding

Advertisement