Creating a .EXE file

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating a .EXE file

 
0
  #11
May 18th, 2005
nanosani,

Thanks for offering to help. It's a GUI application.

C++
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: Creating a .EXE file

 
0
  #12
May 18th, 2005
Originally Posted by jwenting
The native exe option is just an exewrapper to facilitate easier starting of the application.
It still needs an installed JVM on the target machine.
Effectively it's little more than a glorified batchfile
This is the normal way for Java.
True ... the exe file will only run where jvm is installed ... but you can also use installation creators to first install jvm on the target machine and then install your software .. but that will be of too much size.

If its a GUI app .. and its like running and disappearing ... then you should check your constructor code ... there must be some mistake there.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating a .EXE file

 
0
  #13
May 19th, 2005
nanosani,

thanx for ur help. i dont think there's an error in my constructor code, but in case there is, what kind of error would it be? Also, what's that option in JBuilder you mentioned earlier?

Last, is there anyother way 2 make it executable w/out an exe file? I know you said JWS, but i dont really understand it so can u plz maybe help me out???
Thanx.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating a .EXE file

 
0
  #14
May 20th, 2005
can u plz help...
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: Creating a .EXE file

 
0
  #15
May 20th, 2005
I have used JBuilder 7 ... so I'm afraid I'll not be able to tell you the exact paths .... but I remember that the first option in the native exe builder was the dos based program creation and then second one was the windows based one ... and then others for mac linux etc ... you'll have to check the second one ...

There are other tools for building exe of java programs ... you can search google for the tools..

You can also make a small C program that executes your java files ...
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating a .EXE file

 
0
  #16
May 20th, 2005
can you explain how to make a small C program to do that???

Thank you very much.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating a .EXE file

 
0
  #17
May 20th, 2005
when i run it using the CP, it loads the frame, but it's blank (at least the canvas part). In CP, it says there's a NullPointerException. That doesnt make sense because when I run it in JBuilder it compiles perfectly - with no exceptions.

Do you know what could be causing this?

The code is all online: here's the website:
www.planetalia.com/cursos/index.jsp

Thanks again.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 350
Reputation: Ghost is an unknown quantity at this point 
Solved Threads: 2
Ghost's Avatar
Ghost Ghost is offline Offline
Posting Whiz

Re: Creating a .EXE file

 
0
  #18
May 22nd, 2005
nanosani, can u plz help?
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 1,749
Reputation: nanosani is an unknown quantity at this point 
Solved Threads: 55
Team Colleague
nanosani's Avatar
nanosani nanosani is offline Offline
Unauthenticated Liar

Re: Creating a .EXE file

 
0
  #19
May 23rd, 2005
Unfortunately I no longer do programming ... but I do remember that I saw the c++ code in the famous ebook "330 java tips" (now a more advanced version is available named "1000 java tips" but its not free)... you can hunt it down on google. The author's website is http://www.javafaq.nu ..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC