We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › Java -target and -source
Page Index Toggle Pages: 1
Java -target and -source (Read 3713 times)
Java -target and -source
May 3rd, 2005, 11:28pm
 
Not a Processing issue, but it's useful info if you're developing libraries. Depending on the version of Java that you're using, specifying -target 1.1 when compiling libraries for distribution may not be enough to get a 1.1 compatible class file. You may also need to indicate source compatibility. It seems that -source 1.3 is the most recent Java release that is capable of creating 1.1 targeted .class files. All that said, here's a typical compile string for me:

Code:
javac -source 1.3 -target 1.1 -classpath %P5_HOME%\lib\core.jar -d . package/dirs/*.java 



Is this worth adding to the compatibility section in the Library HowTo.txt?
Re: Java -target and -source
Reply #1 - May 3rd, 2005, 11:36pm
 
it's already in there.. line 270.
Re: Java -target and -source
Reply #2 - May 3rd, 2005, 11:44pm
 
right, the part about -target is... but not about -source. People building libraries under Java 1.4 and higher are likely to need to specify -source as well.
Re: Java -target and -source
Reply #3 - May 4th, 2005, 2:08am
 
sorry, misunderstood your post. i've added your paragraph to the howto for the next release.
Page Index Toggle Pages: 1