Java 5 is very diffrent from previous versions (4, 3, 2) etc., so you cannot compile the code for previous JREs. If some of the warnings look like

Note: [java file].java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

you can safely ignore it. It's a new protective feature added in Java 5 that programmers can take advantage of to write safer code (specifically it can help get rid of ClassCastExceptions from using the Collections framework). As for the warnings, did you put the jar files that Freenet requires into the CLASSPATH? (try C:\Program Files\Java\jdk1.5.0_04\lib ) As for the smaller jar size, the Java 5 compiler add new optimizations to the bytecode, making it smaller. I have noticed this with my own programs, so it is normal.

I hope I have been helpful.


From: Juiceman <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED],Discussion of development issues <[email protected]>
To: Discussion of development issues <[email protected]>
Subject: [freenet-dev] Compiling with Sun 1.5
Date: Sun, 18 Sep 2005 13:44:50 -0400

When I try to compile Freenet on Windows XP_SP2 with the build.bat
file I get the following error:  target release 1.1 conflicts with
default source release 1.5

The jar fails to build.

If I try a different target other than 1.5 it will fail, if I use
-target 1.5 it will build but with 6 warnings and 5 errors.  I have
not try to run this jar because it is 422KB smaller than the official
jar and I don't want anything bad to happen to my datastore.

Any ideas of how to get this to work on Sun JDK 1.5.04 ?

--
I may disagree with what you have to say, but I shall defend, to the
death, your right to say it. - Voltaire
_______________________________________________
Devl mailing list
[email protected]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl


_______________________________________________
Devl mailing list
[email protected]
http://dodo.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to