Are you looking on a repository for installing the original Oracle JDK 7 instead of the OpenJDK on your Linux Mint 13/ Ubuntu 12.04 box?
Ok, open your terminal and type:
- sudo add-apt-repository ppa:webupd8team/java
- sudo apt-get update
- sudo apt-get install oracle-java7-installer
After the installation finishes, if you wish to see if it was successful, you can run the following command:
It should return something like this:
- java version "1.7.0_04"
- Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
- Java HotSpot(TM) Server VM (build 23.0-b21, mixed mode)
If for some reason, the Java version in use is not 1.7.0, you can try to run the following command in order to set the right java version to use:
- sudo update-java-alternatives -s java-7-oracle
BIIIG Thanks to Matteo Canato for the information
My adventures with the marvelous AndEngine library continue. I had just completed my live wallpaper BizarreMachine III. I could not be happier after all my travails setting up AndEngine for my Android project the thing was finally finished. I set about trying to export a release build when I hit a huge snag. I got a Conversion to Dalvic failed with error 1. I started to Google frantically and for 4 days I got different solutions non of which worked.
The first was advice asking you to search for duplicated *.jars. I had none. Then there was advice to clean the project and restart Eclipse. I did that a number of times with no success.
Next was to download the latest version of Proguard and change the default Proguard settings in my project from this
call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
to
call %java_exe% -jar "%PROGUARD_HOME%"\lib\proguard.jar %1 %2 %3 %4 %5 %6 %7 %8 %9
There was also the advice to remove the android-support-v4.jar from the libs folder sans success.
In all this what was clear was the fact that it was a library issue.
The solution was this:
- Go to the bin folders for AndEngine and AndEngineLiveWallpaperExtension.
- Take the *.jars and save them in a folder in your project.
- Unlink the AndEngine aand AndEngineLiveWallpaper libraries from your Project>Properties>Android Libraries tab.
- Clean your project and Export.
It should work, it worked for me
Caveat: I had to make these changes when the above method resulted in a java.lang.RuntimeException: Unable to instantiate service [name of
package].[name of activity] on the exported apk.
Remove existing referencing libraries (Right click project > properties,
remove the libraries under "Android" tab and those in buildpath except for your
Android.X.X/
Go to your project, create a folder "libs"
Then place the
jars into the folder (andengine.jar and andengineextension.jar etc)
Make them
into buildpath by right click on the jars u just placed.