Vuze won't launch if default Java is not Java 6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
azureus (Ubuntu) |
Fix Released
|
Medium
|
Adrian Perez | ||
Bug Description
Binary package hint: azureus
The azureus package depends on default-jre, which is java 6 on Interpid. The code is compiled with a Java 6 compiler. But, I have my system /usr/bin/java set to Java 5 via the alternatives mechanism. Launching Vuze from the menu silently fails. Launching it from a terminal shows that there is a wrong class file version. I fixed this by copying /usr/bin/vuze, editing the line that sets the java environment variable to point specifically to the java 6 version and then setting the JAVA_HOME appropriately in the terminal where I launched vuze.
If Vuze depends on Java 6, you should probably hard code the path of the Java 6 JRE/JDK in the shell script to launch it.
Attached is a patch of what I did to the shell script to get it to launch.
Changed in azureus: | |
assignee: | nobody → smaioli |
status: | Triaged → In Progress |
Changed in azureus (Ubuntu): | |
assignee: | Stefano Maioli (smaioli) → nobody |
status: | In Progress → Confirmed |
I think it's time for us to bite the bullet and do this... We are pretty sure that only OpenJDK6 and Sun Java6 run Azureus correctly. I think if we compile with class compatibility with Java 1.5 we can get sun-java5 working too.
Stefano and I talked a bit about this before, I think we should hardcode the launcher to prefer OpenJDK6, then sun-java6, then if both are not present then we respect the /usr/bin/java symlink. In addition, we should add an AZUREUS_FORCE_JAVA type of environment variable to respect /usr/bin/java no matter what.