Skip to content

Tag: linux

Background process in linux

I have developed a Java socket server connection which is working fine. When started from a terminal, it starts from listening from client. But when I close the terminal it stops listening. I need to continue even though the terminal closed by user from where jar file was started. How can I run Java server so…

java executing bash script, error=26 Text file busy

I’ve got a java code that is writing a Linux bash script out, then doing a chmod to add execute permission, then trying to execute it. I’m getting an IOException during the start of the process saying error=26, Text file busy. I’ve verified that the file is finished being written and the str…

Running shell_exec(‘which java’) in PHP return nothing

If I run from the command line I get the proper input (/usr/java/…/bin/java). However if I run it in a php script: nothing gets printed out for which java but I get the proper results for which ls… Answer Two things were needed: the full path to the JVM (it wasn’t set in the environment) &#8…

Eclipse release heap back to system

I’m using Eclipse 3.6 with latest Sun Java 6 on Linux (64 bit) with a larger number of large projects. In some special circumstances (SVN updates for example) Eclipse needs up to 1 GB heap. But most of the time it only needs 350 MB. When I enable the heap status panel then I see this most of the time:

Where to store application data (non-user specific) on Linux

In my OSGi-based Java application I am developing a bundle to provide the rest of the system with access to the file system. In addition to providing access to the user home directory, I also wish to provide access to a non-user specific area. Exactly what this area will be used for is as yet undetermined, bu…

What are the main benefits of using Mono over Java? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, …