Solved

Jar file question

Posted on 2003-11-30
3
220 Views
Last Modified: 2010-03-31
does jar file have to be run on the computer that have JRE or JSDK installed on it?

can i run jar file on the computer that doesnt has JRE or JSDK? if yes, how?
0
Comment
Question by:JAVAnewbie
3 Comments
 
LVL 4

Expert Comment

by:Howie_Ly
ID: 9847985
You can't as far as i am aware.

0
 
LVL 92

Expert Comment

by:objects
ID: 9848058
Java classes need a VM to run on. If you don't have one installed you cannot run them.
0
 
LVL 24

Accepted Solution

by:
sciuriware earned 25 total points
ID: 9848486
So, JRE is the minimum, AND of the right version!!!!
: you can't run a .jar created with JAVA 2 1.4.2 stuff on a machine with only some old 1.2 version.
Because almost every computer you may encounter has at least 1.1 (MSWindows, MAC, LINUX ...)
you might write some tiny JAVA program, targeted on 1.1 that spawns "java -version" to see
if things are up level.
In most cases you can have the right JRE installed beneath the old version if management wants it
to remain there.
;JOOP!
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now