Hot answers tagged java
You have it removed. Bash is just telling you, hey, if you want to run java, here are the packages you can install. Try running which java. If no output, then you don't have any JDK installed. You can install any one of the packages suggested.
Replace command: java -jar $SNAP/jar/wallpaperdownloader.jar with run.sh. Here is run.sh: #!/bin/sh # Not good, needed for fontconfig export XDG_DATA_HOME=$SNAP/usr/share # Font Config export FONTCONFIG_PATH=$SNAP/etc/fonts/config.d export FONTCONFIG_FILE=$SNAP/etc/fonts/fonts.conf export HOME=$SNAP_USER_DATA java -jar -Duser.home=$SNAP_USER_DATA $SNAP/...
The mistake is that you used instructions on how to install java on Debian. Not Ubuntu. As root, go to this folder: /etc/apt/sources.list.d Locate this file: webupd8team-java.list and delete it. Execute sudo apt-get update for the system to remove any reference to that update server. Execute add-apt-repository ppa:webupd8team/java to add the correct ppa ...
You seem to be using a development version of java : Java 9 has not been released yet. So, first of all, you should remove this version of java, and install the default one : sudo apt-get remove openjdk-9-* sudo apt-get install default-jre Depending on your version of Ubuntu, it should be a version 7 or 8. If you're on a development version of Ubuntu, ...
You can get them at this PPA sudo add-apt-repository sudo add-apt-repository ppa:webupd8team/java && sudo apt update sudo apt install oracle-java7-unlimited-jce-policy How can you tell if it is installed? This command will succeed :) source
Add the webupd8 team java ppa to your system using sudo add-apt-repository ppa:webupd8team/java Type sudo apt-get update and install both oracle-java8-installer and oracle-java8-set-default. This will install the complete Oracle JDK on your system, including the java plugin for Firefox and all NPAPI compatible browsers. This means that all PPAPI only ...
According to the instructions, the Java version required for Android SDK and Android Studio, is 1.8. You need to install that one.
I'd recommend to install Oracle JDK 8. sudo apt-add-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer
Click in Ubuntu icon (the first bottom in side menu). Write gedit Open Text Editor clicking in its icon. Click in Open. In the list, write: ~/.bashrc Enter Clean your failing .bashrc file. Save and you can open terminal again.
For reference for anyone else having this issue, go to edit profile. In the executable box, put the path to java. (For me, it was /usr/lib/jvm/java-8-openjdk-amd64/bin/java check which version you're using) In JVM arguments, I had -Xmx2560M -Xms512M.
I see the problem you dont have libXext.so.6 so try reinstalling it with this command sudo apt install --reinstall libxext6 Or if that doesn't work: sudo apt remove libxext sudo apt install libxext If even that doesn't work: sudo apt purge libxext sudo apt install libxext This should work :)
[Sloved] Actually it is code problem. After drawing I wrote Toolkit.getDefaultToolkit().sync(); and it works perfectly. I don't know why my code worked good on windows without Toolkit.getDefaultToolkit().sync();.
Anytime you have a .jar with JDK present in your system, you can run it as java -jar <jarfile>.jar. This is independent of the OS you are using.
To see if it has installed, search for the installer. You can try to check in the var directory and into cache. Follow this path:/var/cache/oracle-jdk7-installer/ls. This will give you all the details about JCE and the Policies.
I figured out the problem. The screen sessions aren't "disappearing", they're just detaching. The way I fixed this was by using "screen -ls", finding the PID of the screen I wanted, then using "screen -r " to reattach the screen and allow access to it. Thank you to MadMike for the link.
Only top voted, non community-wiki answers of a minimum length are eligible