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
   Programs
(Moderators: fry, REAS)
   program wont export
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: program wont export  (Read 410 times)
Steve

nerdytone WWW Email
program wont export
« on: Dec 7th, 2003, 2:35am »

this program runs fine in p5 but when i export it says "Identifier expected instead of this token" at the first line. I'm using _67.
 
heres the file
 
http://p5.stevegh.com/int/int.pde
 
REAS


WWW
Re: program wont export
« Reply #1 on: Dec 7th, 2003, 8:24am »

Why are you using "Integer"?
 
Steve

nerdytone WWW Email
Re: program wont export
« Reply #2 on: Dec 7th, 2003, 8:40am »

because the arraylist uses objects, and im using array list because i want to dynamically add values to an array with an undefined length. and to get the values out of arraylist i have to create an integer object, and use intValue(). so is this a bug in p5?
 
arielm

WWW
Re: program wont export
« Reply #3 on: Dec 7th, 2003, 5:41pm »

Steve,
 
according to the official java-docs, ArrayList has been introduced with java version 1.2,
 
then it could be one of the reasons your exported applet won't work.
 
(the processing environment is using a modern java virtual machine, version 1.3 or greater, but your browser is probably using the "old" microsoft java vm, which is only version 1.1 compliant)
 

Ariel Malka | www.chronotext.org
Steve

nerdytone WWW Email
Re: program wont export
« Reply #4 on: Dec 7th, 2003, 6:36pm »

arielm, actually the array list works just fine, its something else in my code that wont let me even export the applet, let alone view the generated html in a page. i have sun java vm 1.2 anyway, but something in my file is wrong and i dont know what it is.  
 
i did however make a new file initializing all the variables and arrays i had in this file, and it exported fine.
 
benelek

35160983516098 WWW Email
Re: program wont export
« Reply #5 on: Dec 7th, 2003, 10:45pm »

FWIW it's possible to add values dynamically to an array without using arraylist or Integer objects:
 
http://proce55ing.net/discourse/yabb/board_Syntax_action_displa_y_num_1049409014.html
 
Steve

nerdytone WWW Email
Re: program wont export
« Reply #6 on: Dec 7th, 2003, 11:22pm »

strange, i just copied the code into a new file, and it worked. heh =T
 
Pages: 1 

« Previous topic | Next topic »