Tag Info

New answers tagged

1

Check that your default JDK is the Oracle JDK and not OpenJDK. Many distributions ship with OpenJDK by default due to licensing issues and even if you install the Oracle JDK it might not then be the default. Running java -version from a terminal should tell you which is the default.


0

There is no way to reliably and usefully check that an unrelated process is running: a race condition is always possible. Even if you find a way to detect whether the process you're interested in is running, it might be killed immediately after you've seen it, or conversely it might get started immediately after you missed it. If you control the program or ...


3

The ps ax | grep -v grep | grep "XML2DB.jar -n" technique has a race condition: the grep instances may or may not get started in time for ps to see them, so you get inaccurate counts: see here and here. You aren't the first one to get in trouble using it. I did an strace pgrep somepattern on a RHEL box to find out what pgrep is doing. It stats every process ...


0

Thanks to Weaselboy REF : source There are two parts to Java. There is the JRE (you are on 1.7) that OS X uses to run Java apps on your Mac. Then there is the Java web plugin (you are on 1.8) that is used to run Java on web pages. If you want to update both you need to install the full JDK. That said, there is really nothing wrong with what you have ...


2

You have to run this command: sudo update-alternatives --config java and select the proper number of java 8 (es. 1). Then the command: java -version should return the java version you wanted


0

java-package is of course a better idea. For now, your problem can be related to permissions. chown <current_user>:<whichever_group> /opt/jdk/jdk1.8.0_05/bin/java where current_user is the user you want to run java with (can be root) and chmod -R 755 /opt/jdk/jdk1.8.0_05 And then try.


0

You'd be far better off using the Debian java-package package to install Oracle Java. It allows you to build a Debian package file from the Oracle Java binaries, a package that can be managed using the regular Debian tools (including update-alternatives). For Debian 8.x, the currently supported Java versions are (from here): Oracle ...


0

Your user's profile isn't in /usr/lib/mozilla/ but in /home/user/.mozilla/; therefore, you have to link the java plugin to there ln -s /usr/lib/jvm/java-8-oracle/jre/lib/i386/libnpjp2.so /home/user/.mozilla/plugins/ Take a look at this mozilla support thread for some possible hints/alternative options. As an alternative, install the icedtea plugin ...


0

JRE: Java Runtime Environment. It is basically the Java Virtual Machine where your Java programs run on. It also includes browser plugins for Applet execution. JDK: It's the full featured Software Development Kit for Java, including JRE, and the compilers and tools (like JavaDoc, and Java Debugger) to create and compile programs. So,it's better if you ...


0

apt-get install openjdk-7-jre-headless


1

For some reason openjdk-7-jre does not contain a java executable. openjdk-7-jre-headless does, but that's not much use if you need to run a GUI java program. EDIT: After installing the headless package: $ ls -l /usr/bin/java lrwxrwxrwx 1 root root 22 Feb 13 2012 /usr/bin/java -> /etc/alternatives/java $ ls -l /etc/alternatives/java lrwxrwxrwx 1 root ...


0

Run sudo visudo or alternatively open /etc/sudoers Check for the line secure_paths="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", If your Java is located somewhere else add that path to this list.


1

On some systems there is a command that is called java-config or java-config-2 that helps you selecting a java vm when you have multiple JDK or JRE versions installed with your system installer. But basically you want to call your java app with the java binary that should live somewhere near $JAVA_HOME. I would guess $JAVA_HOME/bin/java. The $JAVA_HOME ...


0

in terminal type java -version and observe the version that appear. say, it is v1 in eclipse Window->Preferences->Java compiler, check version say it is v2 To work v2 must be <= v1, if eclipse has newer java version you need one of two: 1) install newer java on linux 2) downgrade java compiler in eclipse



Top 50 recent answers are included