• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.jar?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12188
34
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer being displayed is (?i).*jar.*

whats that suppose to mean???
 
William P O'Sullivan
Ranch Hand
Posts: 859
Chrome IBM DB2 Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vishal Hegde wrote:The answer being displayed is (?i).*jar.*

whats that suppose to mean???


What answer? Being displayed where?
 
Vishal Hegde
Ranch Hand
Posts: 1077
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BlackBeltFactory.com
 
Rob Spoor
Sheriff
Pie
Posts: 20611
63
Chrome Eclipse IDE Java Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic