UnsupportedClassVersionError in upgrading from jdk6 to 7
Tech-Today

UnsupportedClassVersionError in upgrading from jdk6 to 7


Currently I'm working on a JavaEE6 project that is being deployed in Glassfish when I decided to upgrade my Java version (to try the new features), then I encountered this issue. Note that I'm running on Ubuntu 12.04

There are several things to look at to solve this issue:

1.) Make sure that you install the java 7 version (I'm using the one from openjdk).
>sudo apt-get install openjdk-7-jdk

2.) Update the default java and javac version your machine is using. Make sure to select the version 7.
>sudo update-alternatives --config javac
>sudo update-alternatives --config java

3.) If you're working on eclipse, set your project's compiler version to 1.7. Right click the project->properties->Java Compiler. Or you can set in in workspace and disable project specific settings of eclipse.

4.) Again on eclipse, add java 7. By clicking Windows->Preferences->Java->Installed JREs and point to where you install openjdk, normally in /usr/lib/jvm/openjdk*.

5.) More on eclipse, matched the execution environment. By opening Windows->Preferences->Java->Installed JREs->Execution Environment. Select JavaSE-1.7 and on the right panel Compatible JREs, select java-7-openjdk*.

6.) And finally make sure that your Glassfish runtime which you set up previously (I assume is still using java 1.6) is updated and is pointing to 1.7. Windows->Preferences->Server->Runtime Environments->Select the Glassfish server you are using->Click edit->change the JRE to 1.7.




- The Program Can't Start Because Api-ms-win-crt-runtime-l1-1-0.dll Is Missing
This problem is often encountered when running Microsoft Office, Adobe Products or even Apache server. Base on this entry from stack overflow: http://stackoverflow.com/questions/33265663/api-ms-win-crt-runtime-l1-1-0-dll-is-missing-when-opening-microsoft-office-file...

- How To Install Eclipse Plugin Using Available Sites And Eclipse Marketplace
This tutorial will teach us how to install eclipse plugins such as svn, egit, etc using available sites and eclipse marketplace. Note that I've done this on windows using eclipse-jee-juno. Installing eclipse plugins using available sites: 1.) To install...

- How To Install Artifactory And Jenkins On Ubuntu 12.04
This page is a summary of commands that need to be executed in order to install and setup artifactory and jenkins on Ubuntu 12.04. Install artifactory 1.) Download the zipped file from artifactory: >wget http://sourceforge.net/projects/artifactory/files/artifactory/2.6.4/artifactory-2.6.4.zip...

- How To Install Jdk 1.6 Update 32 On Ubuntu 11.10
Currently Oracle prohibit the community from adding java to the linux repositories. So it needed to be manually download from oracle website and installed. Java can be downloaded from: From: http://www.devsniper.com/ubuntu-12-04-install-sun-jdk-6-7/...

- Setting Up Eclipse, Subclipse And Visual Svn Server
If you are tired of the usual copy all, zip backup your application files then I suggest you try using SVN. But let me clarrify, SVN is not a backup management tool. Instead it's a way of properly tagging each file, fix/update wherein you can put...



Tech-Today








.