New answers tagged

0

The way to kill all the jobs launched by a process is to use the process group ID (pgid). The simplest way to see that it to launch your script in the background: $ launch_java.sh & [1] 25649 The number printed above is the PID of the launch_java.sh which is also the group ID since that launches the rest. Alternatively, you can find it through ps: $ ...


-1

use ps -aef or ps -aux command to find PID of parent of children and kill it by kill -9 PID .


1

Oracle JDK is a proprietary JAVA software by Oracle. Open JDK is an open-source JAVA software. There is no "recommended" JDK. You can use either one.


2

Open a terminal (ctrl+alt+t): sudo apt-get install openjdk-8* This will install the folowing packages: openjdk-8-jre-dcevm - Alternative VM for OpenJDK 8 with enhanced class redefinition openjdk-8-jre-zero - Alternative JVM for OpenJDK, using Zero/Shark openjdk-8-dbg - Java runtime based on OpenJDK (debugging symbols) openjdk-8-demo - Java runtime based ...


0

Found the problem. What I needed to do was change the driver I was using to the X.org Nouveau driver. For anyone else experiencing this issue you can change that in "Additional Drivers" For others: I am using an Alienware M14x with nVidia GeForce GTX 765M.


1

The one I did on 16.04 was: For OpenJDK 8.X sudo apt install openjdk-8-jre For OpenJDK 9.X sudo apt install openjdk-9-jre Note: There was no openjdk-6-jre nor openjdk-7-jre for me on Ubuntu 16.04. Also there is NO need to install Oracle JDK (Actually OpenJDK is much better than Oracle one for me).


0

I updated to 16.04 and haven't experienced this issue once. I'm not sure what the exact fix is, but this worked for me.


1

had the same problem too.. but i solved it with these commands: sudo add-apt-repository ppa:openjdk-r/ppa sudo apt-get update sudo apt-get install openjdk-7-jre


0

I fixed compilation from the command line with sudo apt-get --reinstall install openjdk-8-jdk-headless sudo apt-get --reinstall install openjdk-8-jre-headless I fixed Eclipse by deleting "~/.eclipse".


0

Try the following: Install ppa-purge with sudo apt-get install ppa-purge Then bash sudo ppa-purge ppa:webupd8team/java Try to open your filemanager with gksu and delete the Java folders. Next step is to install the ppa again WITHOUT the -y option. You should be able to eccept the terms of service and install java. If you are done check with java ...


0

Use pgrep. For example, pgrep java -a. A test with Google Chrome processes: $ pgrep chrome -a 3572 /opt/google/chrome/chrome 3584 /opt/google/chrome/chrome-sandbox /opt/google/chrome/chrome --type=zygote 3586 /opt/google/chrome/chrome --type=zygote 3588 /opt/google/chrome/chrome-sandbox /opt/google/chrome/nacl_helper 3592 /opt/google/chrome/chrome ...


2

How to get the full lines in the output To get the full output, you can add ww after the command: ps -ef ww Then, the lines in the output will not be cut off. I often use this in scripts to make sure the output fully matches the running script. Example: from ps -ef: jacob 11173 5876 0 apr19 ? 00:00:08 /usr/bin/unity-scope- while ps -ef ...


1

I had the exact same problem as you experienced. Turns out a RAM memory module in my machine was broken. After removing the broken memory module everything went back to normal.


0

Look for your core-site.xml. Mine looks like this: <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost/</value> </property> </configuration> when i am running the code from my ...


0

If you need an elder version of Sun Java (bought by Oracle), you need to download it from http://www.oracle.com/technetwork/java/archive-139210.html, unpack it yourself, and update your $PATH to point to it. Possibly also your $JAVA_HOME for some tooling. The oficial Installation Notes for Linux Make sure that execute permissions are set Run this ...


-1

You can try to install the Java Runtime Environment (jre) first. Simply run the following in terminal: sudo apt-get install openjdk-7-jre OR: sudo apt-get install default-jre


0

it seems that your download is corrupted. [..] sha256sum mismatch jdk-8u77-linux-i586.tar.gz [..] Try to remove the package sudo apt-get purge oracle-java8-installer sudo apt-get clean sudo apt-get update then remove the repo and reimport it sudo add-apt-repository --remove ppa:webupd8team/java sudo apt-get update sudo apt-add-repository ...


0

Been a while that this issue is open. As I run into something like this just today I wanted to add my solution to that. (Would have commented on the answer above...but reputation..) I run into a similar issue and got it solved by sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libc6-i386 If apt-get was not able to locate the ...


0

This is how I configured in my Linux system: I downloaded JDK1.8.0_77 and by default the downloaded file is in the location (Downloads directory) i.e /home/user/Downloads, unpacked the downloaded JDK to /home/user/Downloads/jdk1.8.0_77 and then Open Terminal and type, editor .bashrc write these 2 lines inside, export ...


2

Based on the updates to the initial question, you can see the IP command is returning 192.168.25.26 as the IP address in use, yet you have not defined a hostname on this ip address. /etc/hosts needs the following entry: 192.168.25.26 node02.home After a restart you should see the DNS on your network update and your Java code return the correct hostname.


0

I don't know if you ever got this to work, but the issue I'm almost certain was this: The command you are executing should be: /bin/bash /home/mockie/softwares/PhpStorm-133.982/bin/phpstorm.sh


0

For IntelliJ platform-based IDEs you can enable jayatana by using Help / Edit Custom VM Options menu and adding -javaagent:/usr/share/java/jayatanaag.jar to the end of opened config.


-2

Here is a link that you can try: https://www.mediafire.com/folder/47nwuog45t5q8/Minecraft_Unblocked_Download This site has a unblocked minecraft file for mac,windows and Linux. When u go to the above link download the ".jar" file.


-2

You would probably have to find out if your school is blocking external access to some sites (including Minecraft download servers) with their network firewall. Only your school's IT administrators would probably know about this.


0

To install through command-line, make sure that your package list is updated and then install the package: sudo apt-get update sudo apt-get install groovy Reference: https://www.howtoinstall.co/en/ubuntu/trusty/universe/groovy/


0

The comments above got me thinking, and a little searching on askubuntu led me to the answer - the terminal parameter is wrong. The problem is fixed by changing it to: Terminal=false Clearly running Java is a little different from running a .sh. Thank you to all for your assistance.


1

You can try to remove the file as superuser. So, open a terminal pressing ctrl+alt+t and move the working directory to Desktop position: cd Desktop Now you can run the following command that will delete selected file as superuser : sudo rm -f <filename> where parameter <filename> is the name (or the path) of file that you want delete. The ...


0

RESOLVED There was, among the various class files, one that had not been compiled since the software upgrade. I knew all the others were being recompiled, but I just didn't notice this one. Thus it had a non-matching compiler tag. Sorry.


2

I've also posted this question on the Eclipse Forums: https://www.eclipse.org/forums/index.php/m/1728570/#msg_1728570 It seems to be an issue with Eclipse and GTK3. There is no real fix and it's not clear if they will back-port the fix from the next Eclipse release. Anyway, there are 2 ways to deal with this: 1) Define the environment variable SWT_GTK3=0, ...


0

I figured out the answer and wanted to share with you guys. In the gephi website it is mentioned that in order to run the software we are supposed to type ./gephi in the command line. Instead try LIBGL_ALWAYS_SOFTWARE=1 ./gephi This fixes any issues which occur while running the gephi software.


0

For me there was a problem with some certificates (seems to be a java bug). I fixed it with the following (reference): $ sudo dpkg --purge --force-depends ca-certificates-java $ sudo apt-get install ca-certificates-java


0

I realize this is an old question but I just ran into the same problem with ubuntu 14.04 and trying run thinkorswim. My problem was caused because i was using the 32 bit version of the jre. when I installed the 64 bit version of java the errors disappeared.


0

error was in the configuration file in program itself so it could't read right version i want


0

Alternatively, you can use the unzip command to "unzip" or extract a zip file in the terminal to make it readable. For example, if I have a file named Hightail.zip located in my Downloads directory, I would run the following command to unzip or extract the file or files: unzip ~/Downloads/"Hightail.zip" -d ~/Downloads/ To explain: The first part of ...


3

ZIP files are archives, not text files. They contain other files that are compressed so as to save space. A ZIP file can be thought of as a compressed folder. I'm going to bet that what's inside the ZIP is what you want to open with LibreOffice. To open the ZIP, simply browse to it in a file manager and double-click it. In the window that pops up, click the ...


0

I had the same problem. Starting it in the Terminal with the error Unable to access unicentaopos.jar The solution is more simple than the problem. Add to the known starter the line Path=/usr/bin/unicenta/ and the problem is solved. The folder /unicenta is of course the folder where the program is. In that way the starter looks like: [Desktop Entry] ...


1

All threads in a Java process share almost all memory. Each thread will have a local stack which is usually less than a megabyte. As you see all the relate threads show the same memory utilization. The 60 related processes showing 3.7% memory utilization might be using 3.8% of available memory.


0

You currently have JRE installed, not JDK. NetBeans needs JDK to work properly. Install it by running: sudo apt-get install openjdk-7-jdk


0

run sudo apt-get remove oracle-java9-installer


1

This is probably Eclipse bug 489958 which is marked as being fixed in Eclipse Neon milestone 7 (4.6M7) which is not yet available. Eclipse Mars is really intended to be used with the current Java 8 release rather than Java 9 early access releases.


1

I had thought that cvs repositories had all gone but this one works well enough with the following commands: If you do not have a $HOME/.cvspass file in place already use the following command: touch $HOME/.cvspass Login as you have previously done and use the Enter key as the password: cvs ...


0

You don't have JDK installed; you have JRE (although I suspect you already know that). To get that application to work, you need to install OpenJDK: sudo apt-get install openjdk-7-jdk That should set itself to the default Java version, but if it doesn't, you can run the command you have in your question to make it the default.


2

After you have logged in: cvs checkout [repository]


0

As an addendum to bender's answer, if you are using Chrome you may not get a chance to change the default application without first going through the file manager's "Open With other Application" step. In my case (Chrome on XUbuntu 15.10 - XFCE), I had to: Let Chrome (or whatever browser) save the JNLP file Right click on it in the file manager, select ...


0

After a few OS installs, I also tried installing 740 again and here is what worked for me: Downloaded Java version 8u45. Install manually using these instructions. Run Java installer BD_NW_7.0_Presentation_7.40_Comp.2


1

Another possible solution is to add the PPA repository from the project ubuntu-justched available in the Github. This will provide a little bit different solution because it will download the Oracle JRE tarball to a previously configured directory and generate a DEB package from it. That way you won't depend on somebody else packing the JRE, you will do it ...


0

Same problem, solved using this unofficial repo https://launchpad.net/~no1wantdthisname/+archive/ubuntu/openjdk-fontfix before you need to install this version of tzdata http://ftp.uk.debian.org/debian/pool/main/t/tzdata/tzdata_2016c-0%2bdeb7u1_all.deb


0

Apache Server serving around 1000 hits a day Do you always use canons to shoot birds? A thousand hits a day? Seriously? Why don't you use a more light-weighted solution then the monster apache? At least tune your Apache config, otherwise it's no wonder you run out of memory. My guess is that the apache is able to take several 100K hits, the way it's ...


0

The Easiest But A Bit Lengthy Method of Installing Eclipse Mars IDE on Ubuntu 14.04 is described here. It is useful for Beginners in Linux as they don't get well with Proper Terminal Commands. Source: Install Eclipse Mars IDE on Ubuntu Have a look at the following methods: Download the Eclipse Mars Edition for Linux Ubuntu Goto Terminal and Type: gunzip ...


2

Java is cross-platform so you can run same Windows code on Ubuntu. Difference is that if you have a file path specified in the code, you may want to change it. Additionally if you write to a file, remember that text files in Windows end with \n\r , while on any *nix it's just \n. If you have some Windows specific packages you wish to import , that may be an ...



Top 50 recent answers are included