 |
Author |
Topic: Exporting to the original JAVA codes (Read 1239 times) |
|
phiper
  
|
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
|
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
  
|
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
  
|
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
|
|
|
|
|