Tag Info

New answers tagged

0

Even though you only want to change the limit temporarily, the change must be done in a persistent way by creating /Library/LaunchDaemons/limit.maxproc.plist file, owned by root:wheel and permissions 644 with these contents: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" ...


2

Option B is the preferred solution for both performance and portability reasons (see below), and I would probably read the entire contents of the file at once String content = new Scanner(new File(“filename”)).useDelimiter(“\Z”).next(); (from this StackOverflow answer) You should handle I/O errors caused by the file not being present, and reading it when ...


0

The versions of icedTea included in Ubuntu 14.04 have a new control panel that includes the possibility to configure policies that really work. Now you can allow the execution of unowned code. If you are concerned about security, allow that permissions only from the particular CodeBase of you application I have tried doing the same in Ubuntu 12.04.x ...


0

After a lot of troubleshooting and help from @Anthon Anthon, I finally managed to achieve what I wanted. The problem after all was that X server did not have enough time to load. The Xserver was started from lightdm that was an upstart service, and my script started from init.d. It seems that if a monitor is connected X server starts earlier and my script ...


0

You can have any application run with a virtual X frame buffer using tools like Xvfb or Xvnc. You should also consider switching to using a language that doesn't force you to have a running X to connect to. That things work if you use ssh to connect to the machine is not a surprise. Try making the connection after first entering unset DISPLAY, or by doing ...


-1

If you're sure the 'java' command can be called, wouldn't this work for you? export JAVA_HOME=$(dirname $(java -XshowSettings:properties -version 2>&1 | grep 'java\.home' | awk '{ print $3 }'))


1

Plenty of applications on servers and workstations need Java for practical reasons. Examples include the NetBackup GUI, LDAP client adminstration tools, Mathematical analysis packages, etc, while certainly not being limited to this short list. A system is certainly more than just its kernel, as is implied by the "Gnu/linux" statement in your question. I ...


1

apt-get is telling you that you're missing sun-java6-jdk:i386 and libpcap0.8:i386, which are the 32-bit versions of these packages. You have the 64-bit versions installed. Try running apt-get install sun-java6-jdk:i386 libpcap0.8:i386. The output should tell you something more about why those packages aren't installable.


0

As it turns out, the problem was the same as here: I still had to unpack the *.pack files from the lib and jre/lib folders in the java installation. unpack200, the program used to unpack *.pack files to .jar files isn't available in busybox, but it's shipped with java.


0

"Linux From Scratch" and "Beyond Linux From Scratch" will teach you step-by-step how to build your own distro but your best bet is to just use an already existing distro and just have your users install everything as an appliance. For example, F5 LTM is based on CentOS and the LTM functionality is just something they've built using java/tomcat and ...


1

So how does this affect the syntax required to add javac to the path? It doesn't affect your path settings. These links are configurable with the update-alternatives admin tool. See for instance this question on stackoverflow relevant to your case. Normally, the java binaries should be available without modifying the PATH variable for java binary ...


0

When you run a class in Java, you need to give the full package name and class name, and be in the right place for that to match the folder and file name. So in your case, declare package cert; in your class as you did initially, build it, then run it as follows: cd ~/Desktop/OCA_Practice java cert.Test


0

You might want be more specific about the linux distribution you installed on chrome book. Having said that, there are two ways you can perform the required task. First is to check the documentation page of your installed linux distribution for JDK installation, because most of the linux distribution offer some kind of package manager which will do the ...


0

Java command-line parameters like Xmx sets the maximum RAM for the application heap. There are other memory regions, like the stack and perm space.


0

The accepted solution byuser13742 assumes that the server definitely has Java installed. In case you're adding this to a centralized script for many servers it will give some errors like: dirname: missing operand Try 'dirname --help' for more information. To avoid that and only set JAVA_HOME if the server has a Java environment, a slight enhancement is: ...


0

Square brackets do not have a special meaning in this context are a globbing feature ("character range") in this context, so with default configuration (nullglob off) it will pass literal string local4 if there is a file local4 in the working directory, and local[4] otherwise (thanks @Celada). This is not a variable reference (${local[4]} would be an array ...


0

I was actually more wondering about the long-term behavior of daemons in unix or threads in general They run until they stop. The system won't stop them arbitrarily, and you already know the pi can't go to sleep. If by "unresponsive" you mean "slow" and the system has been doing other things, it could just be because the JRE was swapped out (but it ...


0

You should look at which packages depend on openjdk-7-jre being instaleld and use apt-rdepends -r openjdk-7-jre to remove these together with the openjdk-7-jre. You might however find this impractical, I once thought I could get rid of of Java and Perl on a Linux server machine and couldn't without expecting to break the system.


1

"Connection Refused" means: The TCP connection does reach the server (or is being explicitly blocked by a firewall between the client and the server), assuming the latter isn't true - there are 3 possiblities: 1. The IP the client is connecting to isn't the IP or interface the server process is listening on, thus the operating system rejects the connection. ...



Top 50 recent answers are included