Newbie on Debian and Trying to Make Java 7 the Default Java Version Used

Jetty 6 from Debain packages with Oracle Java

It is possible to run Jetty 6 from Debian or Ubuntu package repository with Oracle Java 6 and Oracle Java 7.

Eclipse windowbuilder java 1.6 1.7

Go to Project Properties and change the project compliance level from 1.7 to 1.6. Also leave the Eclipse running under Java 1.6.

Java program runs on one computer but not the other

I had a similar problem with an application i wrote. It did not work with the oldrr java version 25 but with 45 and simply updating fixed the problem. Maybe that will fix it here, too since some things changed between these versions.

Errors while building Cassandra debian package

It sounds like you might be running dpkg-buildpackage from inside the debian/ directory. You should be running it from the top-level directory.

If that's not the case, make sure the debian/ directory exists at all. I believe you need to do a source checkout; the downloadable packages won't include it. The easiest way to do that is git clone git://github.com/apache/cassandra.git.

No suitable XML Schema Validator could be found

Fixed! Although I had installed the Sun JVM, update-java-alternatives needed to be run to switch the Java environment.

Debian msgpack install error java maven

msgpack-java is migrating from an older version v06 to a faster version v07, and its build process has changed a lot.

  1. msgpack-java's pom.xml can be found in the central repository: http://central.maven.org/maven2/org/msgpack/msgpack-core/, which is generated by sbt, so you cannot find the pom.xml in the source repository.

  2. Your dependency artifactId should be msgpack-core, instead of msgpack.

Error A JNI error has occurred. Please check your installation and try again in Eclipse x86 Windows 8.1

Solution 1: Right-click on the class that contains the main method. Click on "Run As". Click on "Java Application". The keyboard shortcut is: Shift + Alt + X, J (while holding Shift and Alt, press X; then release Shift and Alt and press J).

Solution 2: As Professor mentioned, please make sure that java -version and javac -version are the same.

Note: Solution 1 is a quick fix and worked for me and a few other people. It may or may not work for you. I think Solution 2 is the proper way to solve it.

Change selection and status of java installation

Have a look to the man page, it says that the priority is set during - - install of a symlink to a valid group of jre/jdk.
The auto mode is used to automatically set the current active (symlink) to the installed group having the highest priority

For instance if you install a new jdk like this :

sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.8.0.05/bin/java 1

The last parameter is the priority. The command creates a link called user/ bin/ java pointing the usr/lib/jvm/jdk1.8.0.05/bin/java binary file and set the priority to one
You can create all the links this way for all the java binaries... But inside a package the initscript is executed during installation and creates all the links for you.

Have a look to this other post



Related Topics



Leave a reply



Submit