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
   Syntax
(Moderators: fry, REAS)
   importing external classes in 65
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: importing external classes in 65  (Read 255 times)
trip

triparepa WWW Email
importing external classes in 65
« on: Oct 14th, 2003, 11:31am »

i've been trying to implement my own external classes without any success... i tried classes that i know are valid java classes and i still cant get it to work
 
i get an error message like this:
---------------------------------------
 
chaos: CODE "40" is an invalid tag !!!chaos: CODE "40" is an invalid tag !!!
 
chaos: CODE "116" is an invalid tag !!!chaos: CODE "116" is an invalid tag !!!
 
chaos: CODE "114" is an invalid tag !!!chaos: CODE "114" is an invalid tag !!!
 
chaos: CODE "117" is an invalid tag !!!chaos: CODE "117" is an invalid tag !!!
 
chaos: CODE "101" is an invalid tag !!!chaos: CODE "101" is an invalid tag !!!
 
chaos: CODE "41" is an invalid tag !!!chaos: CODE "41" is an invalid tag !!!
 
chaos: CODE "59" is an invalid tag !!!chaos: CODE "59" is an invalid tag !!!
 
chaos: CODE "13" is an invalid tag !!!chaos: CODE "13" is an invalid tag !!!
 
chaos: CODE "125" is an invalid tag !!!chaos: CODE "125" is an invalid tag !!!
 
chaos: CODE "13" is an invalid tag !!!chaos: CODE "13" is an invalid tag !!!
 
C:/Documents and Settings/trip/My Documents/processing/processing-0065/lib/build/Temporary_559_820.java:3: 1:3:14: Semantic Error: The class file "InnerClassDemo.class" has an invalid format.C:/Documents and Settings/trip/My Documents/processing/processing-0065/lib/build/Temporary_559_820.java:3: 26:3:39: Semantic Error: A candidate for type "InnerClassDemo" was found, but it is invalid and needs to be fixed before this type will successfully compile.
---------------------------------------
 
can someone post some instructions on how to do the external class thang?
 
c
 
arielm

WWW
Re: importing external classes in 65
« Reply #1 on: Oct 14th, 2003, 2:57pm »

i was able to use external classes successfully with 063:
 
can you give a link to both the .class file and the .pde (simplified as possible) in question?
 

Ariel Malka | www.chronotext.org
trip

triparepa WWW Email
Re: importing external classes in 65
« Reply #2 on: Oct 14th, 2003, 8:53pm »

arielm:
 
can you please post your code and the steps you took in order to get your class to work? in all honesty i'd rather not post code because i don't really know what i am doing... i'm just picking and pecking at some java tutorials, and those don't seem to work with p5.
 
I am trying to grab my class code, copy/pasting it to a text editor, saving it and renaming it with .class... that doesnt seem to work. I am trying to export the applet so i can get the .java file, and that doesnt fly either. and extracting my class from the .jar file and importing it doesnt work either.
 
long story short, can you just step by step this for me? if it still doesn't work, ill post code.
 
c
 
fry


WWW
Re: importing external classes in 65
« Reply #3 on: Oct 14th, 2003, 10:22pm »

are you trying to put .java files in the 'code' folder and renaming them to .class?  
 
if so, that wouldn't work.. .class files are .java files that have been compiled with javac or jikes or something like that. as of now, you can't include just straight .java files with p5, though we may support that in the future.
 
trip

triparepa WWW Email
Re: importing external classes in 65
« Reply #4 on: Oct 14th, 2003, 11:35pm »

ok, so how do i export a class i made in p5? how do i compile it? what file do i put in the code folder?
 
p5 code wouldn't compile with javac right? sorry for all the silly q's, but what i know of java is what p5 has taught me... im trying to learn though
 
thanks
 
c
 
Pages: 1 

« Previous topic | Next topic »