FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Integration
(Moderators: fry, REAS)
   Support for later java versions like 1.4
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Support for later java versions like 1.4  (Read 514 times)
bcolthurst

WWW
Support for later java versions like 1.4
« on: Sep 22nd, 2004, 3:59am »

I may be missing something, but it seems like the windows and max osx versions 68 of Processing come with an old version of Jikes that only supports java 1.1x or so.  
 
I noticed that it ate dirt trying to support java 1.4 methods, like string.split  (even though use of Processing's own splitstring function suffices fine).
 
So, I downloaded the latest Jikes for windows and copied it over the Jikes that came with Processing, and hooked Jikes up to my Sun java 1.4 run-time jar, and SO FAR everything is working well.
 
Has anyone else had success or failures trying to use other versions of java?
 
I may be speaking out of ignorance -- I had the java 1.1 ceiling support issue on the MAC version of processing -- it may just be a simple matter of upgrading the sun java runtime class jar on either MAC or PC, so perhaps this is a non-issue for others...
 
But right now I'm running jikes 1.21 with sun rt.jar 1.4 and processing 68 on a winXP machine.
 
I'm curious if others have had success doing that on OS X.
 
Thanks,
-b
 

<a href="http://www.fnn247.com">FNN</a>
fry


WWW
Re: Support for later java versions like 1.4
« Reply #1 on: Sep 22nd, 2004, 7:23am »

unless you're using specific language constructs (not methods, but ways of dealing with classes and such) that require a later syntax, you should be fine with the jikes that's included, for instance String.split() will work fine (since it's a method, not syntax).
 
the older version of jikes is used because some later versions of jikes had problems creating 1.1 compatible code, still used by 50-60% of web users. microsoft's java vm that only supports 1.1.4 is still in heavy use.  
 
as such, processing primarily targets 1.1, though there shouldn't be any restrictions that truly keep you from writing code that uses newer java 1.3/1.4 methods.
 
we'll use a later version of jikes someday, though in testing those, the newer versions have other quirks that will require more work.. so you're liable to run into problems with your new jikes, like Processing reporting that you've had a compiler error.
 
bcolthurst

WWW
Re: Support for later java versions like 1.4
« Reply #2 on: Sep 24th, 2004, 7:41pm »

Ah -- I hadn't thought about the Applet, Browser VM support issue.  Yes, that's definately a reason to stay with 1.1 java.
 
I'm using Processing mostly to then use the generated java code in standalone mode, or as a laptop presentation on my machine.
 
I bet I can just re-swap the jikes and reset my classpath to the sun 1.1 classes if I need to make public applets.
 
I haven't really put the 1.4 + new jikes through the motions with Processing, but I'll post any issues here, not to drive dev, but just as an FYI of things to avoid or workaround.
 
Thanks for Processing!  It's so quick and easy to get stuff running.
 
 
 
 

<a href="http://www.fnn247.com">FNN</a>
fry


WWW
Re: Support for later java versions like 1.4
« Reply #3 on: Sep 24th, 2004, 10:04pm »

right, though i guess i don't understand why you're using a new version of jikes. we use that same version of jikes to build the processing environment itself, which is a java 1.4 application that uses things like String.split as well. is there a piece of code that actually had trouble?
 
Pages: 1 

« Previous topic | Next topic »