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_
   Topics & Contributions
   Tools
(Moderator: REAS)
   creating an EXE
« Previous topic | Next topic »

Pages: 1 2 
   Author  Topic: creating an EXE  (Read 12759 times)
toxi_
Guest
Email
Re: creating an EXE
« Reply #15 on: May 19th, 2004, 8:17pm »

ahmm.. i think you'll have to replace the semicolon (";") with ":" in the "-cp" part under OSX. rest should work, but then again, i have no way of testing under OSX...
 
hth!
 
toxi_
Guest
Email
Re: creating an EXE
« Reply #16 on: May 19th, 2004, 8:23pm »

also, don't have any spaces between the path separator ":" and the jar names! that was definitely part of the non-success
 
skloopy

WWW
Re: creating an EXE
« Reply #17 on: May 19th, 2004, 9:59pm »

OKay cool thanx toxi! I got it to work, but stupid java resizes all the windows when it changes resolution and puts some of them offscreen
 
I wonder if there's a wa to prevent that, because if you wanted to give out a fullscreen app, you can't give one out that's gonna mess up people's windows..
 
toxi_
Guest
Email
Re: creating an EXE
« Reply #18 on: May 19th, 2004, 10:24pm »

well, that's thanks to apple's version of java on OSX. it doesn't do that (thankfully) under windows... but, doesn't QT do this too if you change resolutions? they might also actually call it a "feature" from a usability POV as all interface elements will remain visible in the new resolution...
 
skloopy

WWW
Re: creating an EXE
« Reply #19 on: May 19th, 2004, 11:28pm »

Yeah when you change the resolution manually (like in the control panel) it does that, but I think there's a different way that games are supposed to do it. Some badly ported games do the same thing, so i wonder if they're just using the wrong function?
 
asli


Re: creating an EXE
« Reply #20 on: May 20th, 2004, 1:32am »

nice!
thank you all...
yeah! it's like almost working on osX 10.2.8!!!
 
but i have 2 problems::::
1__ if i
      java -cp applauncher.jar:myDemoApplet.jar BAppLauncher -applet myDemoApplet -sw 1152 -sh 768 -bg ffffff
then
the visual output is not actually 1152x768
it is how it is defined in myDemoApplet.pde
     size(400, 400);
 
2__ and  
some part of the code  
      mouseX
      mouseY
are not working
=strange-
 
could somebody get it really working on osX?
 
toxi_
Guest
Email
Re: creating an EXE
« Reply #21 on: May 20th, 2004, 1:01pm »

asli, re: your first point - specifying a new screen resolution is not meant to resize the applet to it, but merely meant for cases where you simply want to get rid of all the window clutter etc.
 
also, if an applet is 200x200, the "-f" option would possibly switch the screenres to 320x240 (i.e. the lowest possible one on my GFX card) - though pixels in this resolution will be horribly large, so i could force it to use, say 640x480 instead and the applet is shown centered. makes sense?
 
2) mouseX/mouseY seems to work fine with all my applets on the machines i've tested on (windoze only though) - could you please also check with other sketches?
 
hth!
 
asli


Re: creating an EXE
« Reply #22 on: May 21st, 2004, 5:29pm »

1. re:re:  
wooooow  
super ::::
640x480
it works
!!!!!!!!!!!!!!!!
thanks a lot!
 
2. re:re:
i tried many other examples:
hmmmm, if i use 640x480
mouseX and mouseY
works fine. but  
mousePressed()
not.
&!!!!
after clicking somewhere on  the screen,  
mouseX and mouseY  
don't work anymore.
 
3.
i also tried to compile the codes again but:::::::
___________________________________________________________
[asli:applet] asli% javac -g BAppletFS.java
BAppletFS.java:21: cannot resolve symbol
symbol  : class BApplet  
location: class BAppletFS
    BApplet applet = (BApplet) c.newInstance();
    ^
BAppletFS.java:21: cannot resolve symbol
symbol  : class BApplet  
location: class BAppletFS
    BApplet applet = (BApplet) c.newInstance();
       ^
2 errors
[asli:applet] asli% javac -g BAppLauncher.java  
BAppLauncher.java:69: cannot resolve symbol
symbol  : class BApplet  
location: class BAppLauncher
     BApplet applet = (BApplet)c.newInstance();
     ^
BAppLauncher.java:69: cannot resolve symbol
symbol  : class BApplet  
location: class BAppLauncher
     BApplet applet = (BApplet)c.newInstance();
        ^
2 errors
___________________________________________________________
 
anyway,
 
thank you toxi!!!!!!!!!!!!
 
fabsina

Email
Re: creating an EXE
« Reply #23 on: May 22nd, 2004, 12:23pm »

Hey guys!
 
Any idea how to correctly export a jar file from Eclipse? If I try to start the jar file I always get an error message saying that the main-class manifest attribute failed to load. Also when I try to execute it giving the path in the command line it doesn't work. Is it possible to export a java applet as a jar file from Eclipse?
 
Thanks!
 
michael05

WWW
Re: creating an EXE
« Reply #24 on: May 27th, 2004, 4:35am »

on os x you can make executable .app files with an os x developer tools called "jar bundler":
http://processing.org/discourse/yabb/board_Tools_action_display__num_1074042002.html
 

°°°°°°°°°°°°°°°°°°°°
http://www.m05.de
fry

WWW
Re: creating an EXE
« Reply #25 on: Jun 10th, 2004, 4:36pm »

another method, which will eventually be rolled into the 'export to application' feature:
http://processing.org/discourse/yabb/board_Tools_action_display__num_1086874853.html
 
CarlG


Re: creating an EXE
« Reply #26 on: Jan 5th, 2005, 7:09pm »

I may be missing something here...
 
1 - when using Toxi's app launcher can you use the .jar file created by P5's 'Export to web' or does it need to be one created from with eclipse (or the like)?
 
2 - to create a batch file is this just a text file with .bat extension containing the command line?
 
Probably out of my depth a bit here but I really want to get some apps running stand alone.
 
Any pointers would be great.
 
thanks,
 
Carl
 
toxi

WWW
Re: creating an EXE
« Reply #27 on: Jan 5th, 2005, 7:16pm »

on Jan 5th, 2005, 7:09pm, CarlG wrote:
1 - when using Toxi's app launcher can you use the .jar file created by P5's 'Export to web' or does it need to be one created from with eclipse (or the like)

 
the normal PDE exported .jar is just fine.
 
Quote:
2 - to create a batch file is this just a text file with .bat extension containing the command line

 
spot on again. a simple batch file would just contain what you would write as command line too.
 
if you need any more help, mail me offlist... cheers.
 

http://toxi.co.uk/
Pages: 1 2 

« Previous topic | Next topic »