Skip to content

Tag: java

Redirect all output of the java program to log file

I have scheduled my jar file by saving this line at the end of the crontab: Cron has started the job, also created the log file, but there is nothing in that file. Any idea why is that? I am doing System.out.println() in my program. I have added write permissions to everyone for that file. Could it happen tha…

Java Linux Terminal in JPanel

I am making a Scripting Editor and would like to be able to run the Bash/Shell/Python/etc. scripts in the program… So far, I have a way of running them, but there is no way for the scripts to have user input; here’s the code: Any help/ideas are greatly appreciated!!! Answer This is a modification …

Running multiple Java Applications on startup

I currently run these java applications with the following command via root: java -Xms1G -Xmx1G -jar /var/www/tekkit.socialnetwk.com/tekkit.jar nogui Although if I close the terminal window those applications close/stop. Is there anyway to stop this from happening? Either creating it as a service or to start …

How to install man page for Maven on linux?

I am using linux(mint mate), and installed maven by download & unzip & config the environment, I could use the mvn command. I want to have man mvn, not just mvn -help, any tip? @Update: To make the question clear, there is no man page for mvn, because I install maven by unzip, so I want to install man…

Java Command Line on Different OS’s

Okay, so I am using process builder to launch an independent java process from the current java process, using the code: to test it, just as a simple questin, will the command always be “java -jar something.jar,” on all operating systems? and if not, what are the formats for mac and linux? Answer …

Javacpp: liblept.4.dylib library not loaded

On my 64 bit Mac OSX Trying to use a native C++ library from a java project just as described in this link: https://github.com/bytedeco/javacpp-presets/tree/master/tesseract But I get this error when I run the example, library liblept.4.dylib is not loaded, and I have no idea what to do. UPDATE: I tried to in…