run a java program

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

Join Date: Dec 2007
Posts: 14
Reputation: aan@ucsc is an unknown quantity at this point 
Solved Threads: 1
aan@ucsc aan@ucsc is offline Offline
Newbie Poster

run a java program

 
0
  #1
Dec 9th, 2007
Could I run a java program without installing the java vitual machine on the computer?If yes how could I do it?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: run a java program

 
0
  #2
Dec 9th, 2007
no.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: run a java program

 
0
  #3
Dec 9th, 2007
Yes you can, just install the java virtual machine.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: run a java program

 
0
  #4
Dec 9th, 2007
that's exactly what it doesn't want to do with its machine, so for it there's no way to run Java programs.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 34
Reputation: vizy is an unknown quantity at this point 
Solved Threads: 6
vizy's Avatar
vizy vizy is offline Offline
Light Poster

Re: run a java program

 
0
  #5
Dec 9th, 2007
At some point, Java source needs to become platform-native executable code. This typically requires a two-step process: the developer compiles his or her source into Java bytecode, and then a Java Virtual Machine (JVM) converts this into native code for the host platform. This latter step originally was performed by interpretation--taking each JVM instruction and converting it on the fly to one or more native instructions. Later, just-in-time (JIT) compilers converted all of a Java program from JVM bytecode to native code as the program started up.

so JVM is a must to run java Program....
Njoy koding... >>>
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 4
Reputation: Jananee is an unknown quantity at this point 
Solved Threads: 1
Jananee Jananee is offline Offline
Newbie Poster

Re: run a java program

 
0
  #6
Dec 9th, 2007
no its not possible
Jananee.. :)
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: run a java program

 
0
  #7
Dec 9th, 2007
Originally Posted by jwenting View Post
that's exactly what it doesn't want to do with its machine, so for it there's no way to run Java programs.
Nope, it proposed installing the java vitual machine, I proposed using the java virtual machine.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 14
Reputation: aan@ucsc is an unknown quantity at this point 
Solved Threads: 1
aan@ucsc aan@ucsc is offline Offline
Newbie Poster

Re: run a java program

 
0
  #8
Dec 10th, 2007
Could I run a java program without installing the java vitual machine on the computer?If yes how could I do it?I mean there is softwares made by java and not need a virtual machine to run.
Reply With Quote Quick reply to this message  
Join Date: Feb 2006
Posts: 2,467
Reputation: masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of masijade has much to be proud of 
Solved Threads: 267
Moderator
masijade's Avatar
masijade masijade is offline Offline
Nearly a Posting Maven

Re: run a java program

 
0
  #9
Dec 10th, 2007
What part of "No" did you not understand? The "N" or the "o"?

A Java program can be converted to a native executable, however this looses all of the advantages you had from using Java in the first place, and the created native programs are, usually, no where near as efficient (in any aspect) as a normal Java Program. All of this is, of course, a moot point if you are not talking about one you are creating, but rather just something you have downloaded.
Last edited by masijade; Dec 10th, 2007 at 4:52 am. Reason: typo
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: run a java program

 
0
  #10
Dec 10th, 2007
and don't forget that those "native" executables are usually exewrappers which pack a JVM together with all the classes the application need into a single executable, so when installing them you're implicitly installing a JVM...
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC