Solved

Jar file question

Posted on 2003-11-30
3
222 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Application launch issue with Apache Tomcat 5 24
Unable to start eclipse ? 17 134
micro services vs rest web services 16 87
expectj telnet failing 5 26
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

863 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

27 Experts available now in Live!

Get 1:1 Help Now