|
From: Frederik D. <ma...@fr...> - 2006-02-16 12:26:45
|
On Thu, February 16, 2006 5:53 am, Mark Livingstone said: > Hi Freddy, > > Well, I bit the bullet and installed Java 5 for myself from the jdk files > on > java.sun.com and it seems to be working! > > I did also get the Java6 but I don't have the time right now to install it > but > will another time. Just a quick tip. I have all three Java versions installed in parallel. All installed in /opt. Then I created symlinks for every version called java4, java5, java6. Additionally, I've got one "java" symlink which points to the currently used jdk. This is also used in the JDK_HOME env variable. This way I can easily switch between JDKs, without much hassle. This was way easier in Gentoo, which had good support for different JDKs built-in. I have now set java5 as default everywhere. When I want to start Columba with Java6 I simply use the whole path to the jdk, like this: "/opt/java6/bin/java -jar columba.jar" Just my two cents. > > This is what I got; perhaps along with going Java5, we should also fix > these > deprecation issues! > > Cheers, > > MarkL > > compile: > [echo] Compile Columba core > [javac] Compiling 341 source files > to /home/mlivingstone/workspace/columba/classes > > [javac] > /home/mlivingstone/workspace/columba/src/columba/core/org/columba/core/print/cPrintVariable.java:143: > warning: non-varargs call of varargs method with inexact argument type for > last parameter; > [javac] cast to java.lang.Object for a varargs call > [javac] cast to java.lang.Object[] for a non-varargs call and to > suppress > this warning > [javac] return (String) hit.invoke(parent, null); > [javac] ^ > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 1 warning > [javac] Compiling 58 source files > to /home/mlivingstone/workspace/columba/classes It should be sufficient to add the correct typecase to the null-assignment to suppress the warning. Cheers, -Frederik |