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)
   Exporting to the original JAVA codes
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Exporting to the original JAVA codes  (Read 1239 times)
phiper

229837034229837034bulenttastan2002
Exporting to the original JAVA codes
« on: Oct 24th, 2004, 2:34pm »

I m creating a project to finish the undergraduate. I'll create a class with processing and use it in my main java class but I tried to export the codes by "processing". This time I get the same codes I have written in processing but java does not except this class like this syntax.    
   I need to have the original class generated by processing...  
   Can you help me for this problem?
   ...I really need this exportation...
 
fjen

WWW
Re: Exporting to the original JAVA codes
« Reply #1 on: Oct 24th, 2004, 3:39pm »

processing is "simplified" java, there a minor parts (0.2 becomes 0.2f for float, color becomes int, ..) that are changed by a preprocessor inside the environment to make it "pure" java, then it's compiled using jikes.
now, to include a sketch class into another java project you'd have to include all of processing (-classes) - if the sketch uses any of the processing buildin objects of functions. you will have to include "pde.jar" and "comm.jar" from processing's lib folder into your project (on windows), then use the ".java" generated by "export to web" in your project.
 
here's a comparison between java and processing:
http://processing.org/reference/compare/java.html
 
/F
 
phiper

229837034229837034bulenttastan2002
Re: Exporting to the original JAVA codes
« Reply #2 on: Oct 26th, 2004, 2:20am »

hmmm.. I got some points from ur reply. Thanks but some point makes me confused.. do i need to import (include in C) the pde.jar and comm.jar files ?
 but they are not classes i think cannot import simply... and if i can see the includings of these classes i would make the proper changes.but anyway without changes  .. can anyone  send me any kind of usage with mixture of original java and processing style coding and using GUI at same time..  
  I m confused because I think it seems i cannot use both but i need these couse of the camera functions of the processing...
 
   Can anyone send me any type of java class which includes both java and processing style? and i can understand how to trate according to these.....
 
    Thanks so far
     Bulent
 
phiper

229837034229837034bulenttastan2002
Re: Exporting to the original JAVA codes
« Reply #3 on: Oct 26th, 2004, 2:29am »

And also I have another idea about processing...
I really loved this processing program.. It really enhances java writing ability.. And I dont know whether it is true or not to mension here, I want to improve the functionality of the processing like creating another version of processing such as  
 :Mobile Processing  which uses  J2ME. I feel myself really qualified about J2ME and dont know how to join this group but i want to enhance the mobile edition of the processing  if anyone can join and if I get the processing formation I want to improve mobile edition...
   I think it will be so good for using processing in creating programs to mobile devices..
   ...Thanks for anyhelp or interest...
 Bulent    -Bogazici Univ. Computer Eng. -       Istanbul/Turkey
 
fjen

WWW
Re: Exporting to the original JAVA codes
« Reply #4 on: Oct 26th, 2004, 5:20am »

jah, maybe post's not been that clear. sorry.
 
by "include" i meant include into your build-classpath, means javac will need to find "pde.jar" and "comm.jar" somewhere to compile your sketch.
 
here's a thread about running a sketch in fullscreen, it includes all the information you need to compile and run a processing-sketch with/as plain java.
 
http://processing.org/discourse/yabb/board_Tools_action_display__num_1074127030.html
 
 
here's a thread about processing and J2ME:
 
http://processing.org/discourse/yabb/board_Contributions_Beyond__action_display_num_1083672342_start_7.html
 
 
if you have any experience with the eclipse-ide this thread might be interesting to you as well:
 
http://processing.org/discourse/yabb/board_general_action_displ_ay_num_1072722668_start_0.html
 
 
/F
 
Pages: 1 

« Previous topic | Next topic »