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 › Needs to be compiled in Java 1.5
Page Index Toggle Pages: 1
Needs to be compiled in Java 1.5 (Read 2917 times)
Needs to be compiled in Java 1.5
Jan 21st, 2010, 10:29am
 
Hello,

I tried some of the new libraries released this week and I get this message for the KEYSTONE and SURFACELIB libraries:

This version of Processing only supports libraries and JAR files compiled for Java 1.5.
A library used by this sketch was compiled for Java 1.6 or later,
and needs to be recompiled to be compatible with Java 1.5.

I installed Java 1.6 for Mac OS X 10.5 but still get the same error.
I'm using Processing 1.0.9

Is there any other workaround?

Thanks
Steven
Re: Needs to be compiled in Java 1.5
Reply #1 - Jan 21st, 2010, 11:32am
 
Yes you can use the src to recompile them to java 1.5. i recompiled the surfacelib earlier this week and put it here... http://ekeneijeoma.com/processing/surfacelib/download/SurfaceLib.zip
Re: Needs to be compiled in Java 1.5
Reply #2 - Jan 21st, 2010, 12:20pm
 
Thanks for the quick reply.

It's my first time compiling a library so of course I encountered problems.
I'm using terminal to compile the library using javac *.java in the folder I want to compile.

no matter what library I try to compile, I always get errors at the end.
The first error is this:

Keystone.java:24: package processing.core does not exist
import processing.core.*;

So I'm guessing I'm missing some very important knowledge.

Can you lend me a hand ?

Cheers
Steven
Re: Needs to be compiled in Java 1.5
Reply #3 - Jan 21st, 2010, 12:42pm
 
javac -classpath <path to processing>/lib/core.jar *.java
although you might need to take in account the library's package declaration too.
Re: Needs to be compiled in Java 1.5
Reply #4 - Jan 24th, 2010, 9:44am
 
Sorry about that! I re-compiled the library with Java 1.5 and updated the ZIP file on the website.   Hopefully this should fix your issue.

d.
Re: Needs to be compiled in Java 1.5
Reply #5 - Jan 26th, 2010, 11:02am
 
hi.. are you sure ?
I've just downloaded zip from
the lib website and the error mentioned in this thread still exists...
Re: Needs to be compiled in Java 1.5
Reply #6 - Jan 26th, 2010, 2:32pm
 
I've update the file compiled with 1.5.
http://code.google.com/p/surfacelib/
Re: Needs to be compiled in Java 1.5
Reply #7 - Jan 28th, 2010, 10:54am
 
That's strange.

I just double-checked, re-compiled everything with Java 1.5.  Here's what the manifest file says in the JAR file:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Created-By: 1.5.0_19-137 (Apple Inc.)

My ant config in Eclipse uses both the <javac> source and target argument, set to Java 1.5.  The JRE in Eclipse is set to 1.5.  Yet the JAR still doesn't work in Processing /w Java 1.5

Is that version of Java not supported by Processing?  I'm going to have to look into it further.  Sorry for the delay.  I will update here when I fix it (anybody has an idea?)

d.
Re: Needs to be compiled in Java 1.5
Reply #8 - Jan 30th, 2010, 3:45am
 
I've sent you a PM with a link to recompiled jar
( I have no problem in compiling it for java 1.5 via Eclipse on mac osx 10.5.7, maybe that's because I've not updated java to 1.6 on my machine... )

Re: Needs to be compiled in Java 1.5
Reply #9 - Jan 30th, 2010, 3:46am
 
ah.. I've placed the jar here for you guys Smiley
http://jkozniewski.com/test/keystone.jar
Re: Needs to be compiled in Java 1.5
Reply #10 - Jan 30th, 2010, 12:25pm
 
Thanks! it works!! Smiley
Page Index Toggle Pages: 1