freecol should depend on sun-java6-jre

Bug #280433 reported by sam tygier
4
Affects Status Importance Assigned to Milestone
freecol (Ubuntu)
Fix Released
Undecided
Didier Roche-Tolomelli

Bug Description

Binary package hint: freecol

freecol did not start with the error

sam@oberon-test:~$ freecol
[warning] /usr/games/freecol: No java runtime was found for flavor 'none'
[warning] /usr/games/freecol: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/xawt/libmawt.so
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
 at java.lang.Runtime.load0(Runtime.java:787)
 at java.lang.System.load(System.java:1022)
 at java.lang.ClassLoader$NativeLibrary.load(Native Method)
 at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
 at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
 at java.lang.Runtime.loadLibrary0(Runtime.java:840)
 at java.lang.System.loadLibrary(System.java:1047)
 at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
 at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.awt.Toolkit.loadLibraries(Toolkit.java:1610)
 at java.awt.Toolkit.<clinit>(Toolkit.java:1632)
 at java.awt.Dimension.<clinit>(Dimension.java:87)
 at net.sf.freecol.FreeCol.<clinit>(FreeCol.java:102)
Could not find the main class: net.sf.freecol.FreeCol. Program will exit.

after installing sun-java6-jre it launches

Revision history for this message
Vincent Fourmond (fourmond) wrote :

This works perfectly well in Debian. Please revert the changes introduced by 0.7.4.dfsg-1ubuntu1 and it will work again.

And, please, pretty please, *test* the program before uploading a new version !

Changed in freecol:
assignee: nobody → didrocks
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Vincent: I tested before uploading it. I can assure you that. So please, do not condemned someone before knowing what has been done.

The change was part of a global change which was to make it depends on default-jre | java2-runtime instead of specific java version.

If you look at default-jre :
$ apt-cache show default-jre
...
Depends: default-jre-headless (= 1.6-30ubuntu3), openjdk-6-jre (>= 6b11)
...

and java2-runtime is a virtual package provided by openjdk-6-jre for instance.

So, consedering that, that's very strange that the required package has not been downloaded. I am most in favor of an error during the installation of freecol where every package was not installed. I subscribed doko to this bug as he is the java specialist about that change.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

After having some time to investigate, it seems that you corrected it in the new package (0.7.4.dfsg-2) as the old wrapper didn't worked with openjdk.

I merge it for jaunty and then will do a SRU for intrepid. Vincent, do you prefer that I backport the wrapper or just change the dependency?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package freecol - 0.7.4.dfsg+1-1ubuntu1

---------------
freecol (0.7.4.dfsg+1-1ubuntu1) jaunty; urgency=low

  * Merge from debian unstable, remaining changes: (LP: #299136)
    - remove java specific dependencies and icedtea-java7-jre NBS
  * remove /usr/lib/jvm/java-7-icedtea from debian/rules

freecol (0.7.4.dfsg+1-1) unstable; urgency=low

  * Pseudo new upstream release to work around dak's
    move-from-contrib-to-main bug.

freecol (0.7.4.dfsg-2) unstable; urgency=low

  * Fix watchfile to ignore the alpha releases (users and developers
    seem to complain about their stability).
  * Add openjdk in the wrapper script, and tighten up dependency on
    java-wrappers accordingly. (LP: #280433, #229032)
  * freecol can now move to main ! (closes: #491260)
  * Adapted wrapper/freecol to work around a java-wrappers bug
  * Document undocumented patches, and drop 15-fix-jar-manifest which
    really isn't necessary now that we are using java-wrappers.

 -- Didier Roche <email address hidden> Mon, 17 Nov 2008 18:31:02 +0100

Changed in freecol:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.