Building Processing on Ubuntu
in
Integration and Hardware
•
1 year ago
I downloaded Processing's source from the trunk and got it to build on windows 7(jdk 1.7). But when I tried to build it on Ubuntu 11.04 (running on a
Virtual Machine, with Windows 7 as host os) with jdk 1.7, javac gave an error.
javac: target release 1.5 conflicts with default source release 1.7
The target was set to jdk 1.5 in build.xml, and it refused to compile at all, unlike on windows. I then changed the target version variable inside all build.xml files of the source folders to 1.7 from 1.5. This got it to build successfully using "ant build". But the processing application inside \build\linux\work doesn't run. When I tried "ant linux-run", I got an IO Exception of file not found:
javac: target release 1.5 conflicts with default source release 1.7
The target was set to jdk 1.5 in build.xml, and it refused to compile at all, unlike on windows. I then changed the target version variable inside all build.xml files of the source folders to 1.7 from 1.5. This got it to build successfully using "ant build". But the processing application inside \build\linux\work doesn't run. When I tried "ant linux-run", I got an IO Exception of file not found:
Exception: Cannot run program "./processing" (in directory "/home/quark/processing-read-only/build/linux/work"): error=2, No such file or directory
Is editing the build.xml files a bad idea? I've set java_home, and also added the ant's bin folder to system path. Could it be the VM? Or do I need to downgrade my jdk? Please help me out.
1