Skip to content
Advertisement

Tag: java

Ubuntu kernel kills CPLEX ILP process due to out of memory

I’m working with the ILOG CPLEX library in Java to solve an ILP problem. I’m using the default settings and did not adjust any parameters. I used the example code which I found online in samples for my main loop: I launched my jar on an Ubuntu 14 system with 24GB RAM and let it solve larger problems. When my

Cannot pass STDIN using shell_exec() in PHP

I am a complete beginner in PHP. I want to execute a java .jar file using PHP.The jar file takes input from STDIN and generates the output at STDOUT.To execute the jar file this is what I do in my Ubuntu Linux terminal: This works perfect.However when I replicate this in PHP as: This sends $p the output generated when

java.lang.ClassNotFoundException with log4j

I am trying my first project with gradle. My project has a dependency with log4j-1.2.17.jar After my project is built, a jar file is generated. I try to run this with the following: But if I build a fatjar with gradle, the fatjar works without specifying any classpath. The dependency statement in gradle is like: Answer Yes, AbtPst is correct.

Platform specific code in Eclipse

We’re developing a java desktop/Eclipse RCP application with a graph-layout component. We faced issues with the GUI scaling on newer(8, 8.1, 10) versions on windows, it appeared that one can only retrieve the scaling factor through win32 api calls, so we added a little DLL that does this and call it through JNI. Works fine on windows, works fine in

Application Development for Windows and Linux [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 years ago. Improve this question Is it possible to create programs in Java and run on both Linux and Windows? What i mean is. is

Detecting the linux distribution from java

Is there a (preferably efficient, i.e. without executing binaries and parsing their outputs) way of detecting the Linux distribution in Java? As far as I know, System provides os.name, os.arch and os.version, which don’t seem to help. For a typical Ubuntu installation they get these values: os.name: amd64 os.arch: Linux os.version: 3.19.0-28-generic What I need is whether the it’s debian

Advertisement