Tag Info

New answers tagged

0

You have installed the wrong binaries. Install Oracle Java with a PPA: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer And configure alternatives for Java sudo update-alternatives --config java


0

TL;DR You need nice for this: sudo nice -n -20 <your_command> Start minecraft with this command: sudo nice -n -20 su -c java -jar minecraft.jar $USER If you have a desktop file for minecraft then change the property Exec and install the package gksu, we need gksudo: sudo apt-get install gksu Example (Replace <your_username> with your ...


0

http://stackoverflow.com/questions/16601334/error-to-run-android-studio check the most liked answer. if java is already installed and want to change the priority then update-alternatives --config java


1

You'll have to install the JDK manually if you want to pin the version. This is a pretty good guide for doing just that. https://www.digitalocean.com/community/tutorials/how-to-manually-install-oracle-java-on-a-debian-or-ubuntu-vps Keep in mind no updates, so you'll have to upgrade the java version yourself for security updates and such.


0

Without seeing your code, it's hard to tell if your application would OOM or not. Usually, you would read a manageable chunk of data (say 1MB) from the socket and write that chunk of data directly to a file. That way, you'd never store more than the temporary chunk in memory at any one time. Typically this looks like: FileOutputStream fos = new ...


15

There are two ways this can be done: using the ulimit shell utility, or using the setrlimit system call (which is what ulimit calls in turn). using filesystem quotas, and a special user for the server process, will restrict the total usage of that user ulimit/setrlimit From man 2 setrlimit: RLIMIT_FSIZE The maximum size of files that the ...


5

UPDATE: The answer by muru is perfect for file size, I'm here giving a solution how to size a directory itself, not just a file. There is no such thing direct since filesystem deal with a folder as file of files and its limit is the whole filesystem itself. So as a workaround for your problem you can do a trick creating a virtual filesystem and mount it ...


2

I'd say it's safest to check the file size inside the java program. You can append to any file you have write access to, as long as there is enough space in the partition, so you cannot limit a file's size directly. The only thing I can think of is to create a partition only for this file, so the file size will be limited to the partition's size. Also, if ...


-1

Hey everyone I just solved it! Here is how to fix all SSL error's in Minecraft. You need another linux computers "cacerts" file, so on another linux PC run this command readlink -f /usr/bin/java | sed "s:bin/java::" , and go to that path (Something like /usr/lib/jvm/java-8-openjdk-amd64/jre/) than open "lib" and then open the "security" folder, after that ...


-1

Have you tryed installing repository from software manager, and it can be installed from the software center, and just search for it In the searich option.


2

The plugin to run Java in a browser is called IcedTea. Currently, IcedTea only has Java 7 releases (the version 2 releases). Java 8 would correspond to a version 3 release, so until there's a version 3 release of IcedTea, you won't be able to run Java 8 in the browser.


2

The trouble's fixed, steps I performed: sudo rm /var/lib/binfmts/jar Remove the package jayatana from Ubuntu software center. Remove all the Java related packages (Sun, Oracle, OpenJDK, IcedTea plugins, GIJ): sudo apt-get update apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e ...


0

If you install the official packages from Ubuntu there not much wrong you can do. I would install the following packages using the terminal: sudo apt-get install octave-io octave-java openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless and then set the java path in .octaverc. Create the file using the terminal gedit $HOME/.octaverc and paste inside ...


1

Open a terminal and fire this command: sudo apt-get install --reinstall ca-certificates-java And make sure that the time setting of your system is correct. Source I quote: Basically, Minecraft uses SSL to protect your login, but Java didn’t have the certificates needed to verify. The Minecraft launcher really should give a better error message, ...


0

Sorry for the harsh words, but your code is a disaster. No compiler do something with it. I have made no further tweaks to your code, I have the code modified so that it works at least: package stackoverflow; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class ExeCommand { /** * * run ...


2

From the terminal run: java -cp .:/path/to/jar/file MyFile where you replace /path/to/jar/file with the full path to your external .jar file which in your question is named jsch.jar and -cp is a shorter way of typing -classpath. Explanation . - current directory : - separator character used to separate class paths /path/to/jar/file - replace this ...


1

Indeed there is no specific answer. The answer would bw related to each package unique. The master guidlune to your choice is what you care about. Installing from Ubuntu main repositories ensure you security, stability but with some versions, since to ensure the policies put by ubuntu packaging system would take some time. So as a guidline, don't add third ...


0

Installing from the website itself gives you the latest updates of that particular software. Software being in PPAs generally take time to be tested and modified. I generally download the .deb file from the website only.


0

Had this problem. I solved it by installing libc6-dev-amd64. sudo apt-get install libc6-dev-amd64 If still doesn't work, try to launch the installer in root mode: sudo ./install


2

Seems like you don't have Java installed on your system. Run the following command in the terminal to install Java. sudo apt-get install openjdk-7-jre


1

try this sudo -i dpkg -i --force-overwrite /var/cache/apt/archives/icedtea-netx_1.5-1ubuntu1_i386.deb apt-get autoremove apt-get update apt-get upgrade


0

Open a terminal and install the Java 3D API: sudo apt-get install libjava3d-java And install Java 7 (OpenJDK) with sudo apt-get install openjdk-7-jdk Or Oracle 8 Java with sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer


1

Start a search for all packages for the path /usr/share/java LANG=C apt-file search /usr/share/java/ | awk -F": " '{print $1}' | sort -u | xargs apt-cache policy | grep -P -B 1 "Installed:\s[^(]" With this command, you see a list of installed packages. Install these packages again with: sudo apt-get install --reinstall <package_name> Sample ...


0

Install the JDK with a PPA: sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer And after that sudo apt-get install oracle-java8-set-default Check the installation: % java -version java version "1.8.0_45" Java(TM) SE Runtime Environment (build 1.8.0_45-b14) Java HotSpot(TM) 64-Bit Server VM ...


0

It was my classpath. A friend told me about the -cp flag that could be used to define the classpath. once that was in, the JVM found main(). however now i've just got to find out why it can't find the file i'm passing in for main to work on.


0

I have got same error message but after installing of openjdk-7-jdk Netbeans was installed without any issues. sudo apt-get install openjdk-7-jdk


2

This is because ubuntu supports the binfmt_misc kernel module and the jar type is enabled. see /proc/sys/fs/binfmt_misc/jar This is very old (since kernel 1.03). See more information here: http://stackoverflow.com/questions/1667830/running-a-jar-file-without-directly-calling-java Other examples are python and wine, yes, if you learn how binfmt_misc works, ...


1

This question is now irrelevant as Chrome no longer supports Java beyond version 35.


0

Also be aware when making aplications with: update-rc.d myscript defaults To have permissions 0755 and to use or get before your .sh the path. Let's say your script is on /root/test.sh , you should first change to CD /root/ before accessing test.sh. So best way is to make a SH on init.d and there change the path to your sh and execute it in the start ...


0

Look inside the bin folder of the pycharm folder you extracted. There are files called pycharm64.vmoptions and pycharm.vmoptions. Inside them, you can delete the line with the culprit option of MaxPermSize=350m.


0

Open the file pycharm64.vmoptions nano /opt/pycharm-community-4.5/bin/pycharm64.vmoptions and add a # at the beginning of the line # -XX:MaxPermSize=350m Open the file pycharm.vmoptions nano /opt/pycharm-community-4.5/bin/pycharm.vmoptions and add a # at the beginning of the line # -XX:MaxPermSize=250m MaxPermSize support was removed in Java ...


1

There is no way to install Java to Chrome at the moment. NPAPI plugins are not supported on linux any more. But I have not heard of any existing PPAPI Java plugins now. I use Firefox for Java.


1

If you just want to remove the message you can just edit your $HOME/.bashrc (if using bash) or $HOME/.profile and unset the variable with: unset JAVA_TOOL_OPTIONS This way jayatana will still be there and can just be enabled again if you remove the unset JAVA_TOOL_OPTIONS from your .bashrc / .profile. Note unsetting the variable is NOT equivalent to ...


0

Please go to http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html or hit Ctrl-Alt-T to open up a Terminal. then.. put this line in and hit enter sudo add-apt-repository ppa:webupd8team/java then put this line in and hit enter sudo apt-get update then put this line in and hit enter sudo apt-get install oracle-java8-installer ...


1

You appear to be using an ARM cpu, which minecraft does not support.


1

You can spawn a bash root shell inside a mate-terminal instance, change the mate-terminal's working directory to ~/Desktop and execute your jar file inside it at startup by adding this command to Startup Applications: mate-terminal -e "sudo -H /bin/bash -c \"cd ~/Desktop && java -jar executable.jar; /bin/bash\"" Hit the Super key, type "Startup ...


0

Install the tool aptitude sudo apt-get install aptitude Run aptitude sudo aptitude In the lower area you see a red line. Look at the proposals and choose a suitable proposal.


0

If none of the previous answers work, you can try this: How do I reenable opening jar files by double clicking on them? but if you are using Ubuntu 14.04, you must make a small change in step 1 and 5. In ubuntu 14.04, the application's name is openjdk-7-policytool.desktop and not openjdk-7-java.desktop. So, make the changes like this: Step 1 : cd ...


1

Short answer: Generally JDK is suitable for any cases, so if you don't know what to install - simply install JDK. openjdk-8-dbg Package that consists bring debugging symbols. Debug symbols come with JDK by default, but sometimes you have to install them separately. openjdk-8-demo Package that consists of demos and examples. This package bring some ...


1

For software development: OpenJDK Development Kit (JDK) sudo apt-get install openjdk-8-jdk To start Java applications OpenJDK Java runtime, using Hotspot JIT sudo apt-get install openjdk-8-jre Other packages: openjdk-8-dbg This package contains the debugging symbols. openjdk-8-demo Java runtime based on OpenJDK (demos and examples) openjdk-8-doc ...


1

You could consider using perl e.g. perl -pe 's/(?<=Height\()([0-9.]+)F(.+?)([0-9.]+)F(?=\);)/sprintf "%sF%s%sF",2*$1,$2,2*$3/e' file.java The (?<=Height\() and (?=\);) are zero-length assertions or lookarounds that limit the matches to the specific region between those delimiters, after which the numeric values are extracted using capture groups ...


3

I assume all lines you want to change start with the string private static final Height biomeHeight = new Height. If yes, then you can use awk: awk -F'[(,)]' '$1=="private static final Height biomeHeight = new Height"\ {$0=$1"("$2*2"F, "$3*2"F);";}1' file Explanation: -F'[(,)]' sets awk's delimiter to the characters (, ) and , that we have the paramters ...


0

If you are using a 64 bits OS, you need install Oracle Java for 64 and 32 bits, and configure the 32 bits JVM in JAVA_64_HOME/bin/ControlPanel -> Java and install this libraries sudo apt-get install libxmu6:i386 libxt6:i386 libxtst6:i386


0

I opened a terminal window (Control-Alt-T) then typed ControlPanel and pressed Enter. Just a few moments later the Java Control Panel appeared. I haven't checked yet, but it may be necessary to 'sudo ControlPanel' to save your changes.


4

The method dateChooser.getDate() returns null. You've just instantiated the object dateChooser, but never assigned a Date object. This is the implementation of the method getDate() in JDateChooser.java /** * Returns the date. If the JDateChooser is started with a null date and no * date was set by the user, null is returned. * * @return the current ...


1

From a Terminal Window run the following: sudo rm -rf ~/.local/share/Trash/*


1

Try this: sudo rm -rf ~/.local/share/Trash/* Of course replace the * with the folder that you wish to delete or else everything in the trash will be deleted.


0

I fixed my issue. I figured that Minecraft was running via the Intel integrated graphics card. I used optirun to fire up Minecraft and my issue was solved.


0

Linux udev assigns consistent port names when hotplugged into system. There should not be any need to create soft link, in-fact it is the job of udev. When connecting arduino check "dmesg" command's output. It will tell you exactly what your system is doing. Further consider using scm library for serial port communication ...


1

Where can one start to search for an error? There are strong indications that this is related to xfce 4.12 which is used in Xubuntu 15.04. There are several other people getting the same error messages (including me) and all of them have in common that they use xfce 4.12 as their desktop environment. (Some of them posted it here as an answer, but it was ...



Top 50 recent answers are included