|
Author |
Topic: program wont export (Read 410 times) |
|
Steve
|
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
|
Re: program wont export
« Reply #1 on: Dec 7th, 2003, 8:24am » |
|
Why are you using "Integer"?
|
|
|
|
Steve
|
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
|
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
|
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.
|
|
|
|
Steve
|
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
|
|
|
|
|