aspose file tools*
The moose likes Java in General and the fly likes which file type contains all required stuff the can execute Java Programs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "which file type contains all required stuff the can execute Java Programs" Watch "which file type contains all required stuff the can execute Java Programs" New topic
Author

which file type contains all required stuff the can execute Java Programs

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

What file type can contain all required stuff (source, images, compiled code, etc) to reference, handle, and execute Java programs and libraries?

I am not sure what the answer is .I even googled it but got no proper answers.Please help me


http://www.lifesbizzare.blogspot.com || OCJP:81%
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

.jar?
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 11422
    
  16

I would argue it depends on what you mean by "all required stuff". Technically, to execute a java program, you also need an OS, which would not be in the .jar.


There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

you can in theory build a windows stand-alone executable.

For instance minecraft.exe contains everything needed, and it is written in Java.

There are many many examples out there. You need to look deeper.

WP
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

The answer being displayed is (?i).*jar.*

whats that suppose to mean???
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

a jar contains all the resources you need.

An executable jar (such as my EXAMPLE minecraft.exe) contains a full runtime environment.

What exactly are you asking for?

WP
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4181
    
  21

Vishal Hegde wrote:The answer being displayed is (?i).*jar.*

whats that suppose to mean???


What answer? Being displayed where?


Steve
Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1055

BlackBeltFactory.com
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19723
    
  20

Looks like a regex:
- (?i) means the regex should be case insensitive
- .* means anything
- jar means, well, jar

So that regex says "jar surrounded by anything, and we don't care about the case".

Also, please QuoteYourSources - please provide a full link to where you found that.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Don't get me started about those stupid light bulbs.
 
subject: which file type contains all required stuff the can execute Java Programs