AUSkey under Ubuntu Linux 12.04 with OpenJDK-7 and Firefox

451 views
Skip to first unread message

Maxim Zakharov

unread,
Oct 18, 2012, 11:03:13 PM10/18/12
to aus...@googlegroups.com
Hi,

If anyone is interested, I was able to run AUSkey under Ubuntu Linux 12.04 with OpenJDK-7 and Firefox.
A patch for icedtea-web is required, detailed instruction is here: http://blog.dataparksearch.org/334

Rob Hills

unread,
Oct 20, 2012, 10:48:56 PM10/20/12
to aus...@googlegroups.com
Hi Maxim,


On Friday, 19 October 2012 11:03:14 UTC+8, Maxim Zakharov wrote:
If anyone is interested, I was able to run AUSkey under Ubuntu Linux 12.04 with OpenJDK-7 and Firefox.
A patch for icedtea-web is required, detailed instruction is here: http://blog.dataparksearch.org/334

Your timing was impeccable as I've recently updated my laptop OS and was starting to go through the pain of setting up a Sun Java environment.

However, I've run into a couple of hurdles with the ./configure... command:

The first was:
configure: error: Package requirements (gtk+-2.0) were not met:

No package 'gtk+-2.0' found


 A quick Google solved that one:
sudo apt-get install pkg-config

However now, the ./configure ... command gives me this:
configure: error: java.util.jar.Pack200 not found.

Googling hasn't helped me at all with this one.  Has anyone else seen and solved this?

Cheers,

Rob Hills

Rob Hills

unread,
Oct 21, 2012, 6:04:33 AM10/21/12
to aus...@googlegroups.com
Working on this problem further, I discovered the "config.log" file in my "icedtea-web-1.2" directory and it has a bit more detail about the problem:
configure:6966: checking for a JRE home directory
configure:6985: result: /usr/lib/jvm/java-7-openjdk-amd64/jre
configure:6994: checking for a Java virtual machine
configure:7137: result: /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java
configure:7149: checking if java.util.jar.Pack200 is available
sun/applet/Test.java:4: cannot access java.util.jar.Pack200
bad class file: /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/rt.jar(java/util/jar/Pack200.class)
class file has wrong version 51.0, should be 49.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import java.util.jar.Pack200;
Googling the "wrong version" error message turned up nothing specific about Pack200, but suggested a Java Compiler version mismatch.  I had Java 1.6 as my default (from java -version) so I used the "update-java-alternatives" command to change this to the OpenJDK 1.7 compiler.  However, I still get the error when I try and execute the ./configure ... command.

I've now had a closer look at the configure file and I see that it should be using OpenJDK 1.7 (from the "with-jdk-home" command line variable) anyway.

In either case, I'm still stuck and would be very grateful for any thoughts or suggestions.

Cheers,
Rob Hills

Maxim Zakharov

unread,
Oct 21, 2012, 6:50:52 PM10/21/12
to aus...@googlegroups.com
Hi Rob,

When I faced this error I've removed all AUSkey jars from usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext and it helps, configure works without an error.
Perhaps AUSkey were the only jars of java 6 on my PC, you need to remove (move to other, temporary directory) all other jars of Java 6. You return them back after configuring and installing icedtea-web.

Regards,
Maxim

Rob Hills

unread,
Oct 22, 2012, 11:45:23 AM10/22/12
to aus...@googlegroups.com
Hi Maxim,


On Monday, 22 October 2012 06:50:52 UTC+8, Maxim Zakharov wrote:
When I faced this error I've removed all AUSkey jars from usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext and it helps, configure works without an error.
Perhaps AUSkey were the only jars of java 6 on my PC, you need to remove (move to other, temporary directory) all other jars of Java 6. You return them back after configuring and installing icedtea-web.

Unfortunately, when I looked into my /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext directory, there were no AUSkey jars there, only openjdk ones.  But to I guess what you're saying is that somewhere in my classpath there is a critical Jar that has been built with an earlier JDK that is creating a version conflict.  All I need to do is find it :-(
 

Rob Hills

unread,
Oct 22, 2012, 1:33:45 PM10/22/12
to aus...@googlegroups.com
Hi Maxim,

On Monday, 22 October 2012 06:50:52 UTC+8, Maxim Zakharov wrote:
When I faced this error I've removed all AUSkey jars from usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext and it helps, configure works without an error.
Perhaps AUSkey were the only jars of java 6 on my PC, you need to remove (move to other, temporary directory) all other jars of Java 6. You return them back after configuring and installing icedtea-web.

You were right, the AUSkey jars were causing the problem.  However, on my system (Ubuntu 12.04) they were located in /usr/java/packages/lib/ext .  After moving them elsewhere, my ./configure ... command ran without error and I was able to finish configuring and installing icedtea-web.  And, after that, as promised, my AUSkey stuff was back up and running in Firefox on Ubuntu without the Sun JDK!

Many Thanks,
 
Rob Hills

Rob Hills

unread,
Feb 18, 2013, 8:38:17 PM2/18/13
to aus...@googlegroups.com
Hi,


On Friday, 19 October 2012 11:03:14 UTC+8, Maxim Zakharov wrote:
If anyone is interested, I was able to run AUSkey under Ubuntu Linux 12.04 with OpenJDK-7 and Firefox.
A patch for icedtea-web is required, detailed instruction is here: http://blog.dataparksearch.org/334

After upgrading my notebook to Ubuntu 12.10/OpenJDK7, I'm trying to get Auskey running again.  A comment on the dataparksearch blog suggests someone *may* have been able to get Auskey working with an unmodified icedtea-7-plugin.  Has anyone been able to make this work?

Cheers,
Rob Hills
Waikiki, Western Australia
Reply all
Reply to author
Forward
0 new messages