aspose file tools*
The moose likes Java in General and the fly likes Are .jar files the only files we can make/issue with jar. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Are .jar files the only files we can make/issue with jar." Watch "Are .jar files the only files we can make/issue with jar." New topic
Author

Are .jar files the only files we can make/issue with jar.

Jay Orsaw
Ranch Hand

Joined: Jun 14, 2011
Posts: 356

So after many google searches it seems like this question is answered as it is the only one, but is there anything else? I was able to run my jar files fine, but after giving them to a friend he couldn't open them, and all he gets is a windows error noise. There are many things it seems you need to try in order to get it working. Do our files just run through the Jar files to the JRE? We don't need to install or execute anything, or it's all done via the jar file itself?
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3580
    
  15
Jay Orsaw wrote:all he gets is a windows error noise

Saying what these errors are would help, but in general, you need to have a jre installed and jar files need to be associated with the javaw executable. How you do this is dependent on which OS you are using.


Joanne
Jay Orsaw
Ranch Hand

Joined: Jun 14, 2011
Posts: 356

Joanne Neal wrote:
Jay Orsaw wrote:all he gets is a windows error noise

Saying what these errors are would help, but in general, you need to have a jre installed and jar files need to be associated with the javaw executable. How you do this is dependent on which OS you are using.


that's the problem there was NO error message at all, just a windows noise.... He is running XP(32 I think), I am running Windows 7 (64). I was reading up on it, but the thing is, if you are developing applications isn't this an issue for a huge userbase that might not have everything set up? I think that might be an annoyance to users if you have to try and set up everyone's system...


I realized that I made it for Java 7, and most people use 6 update 28-29.. I also read this article http://www.excelsior-usa.com/articles/java-to-exe.html Helped me out a bit overall. I guess you just need to make sure that the versions are the same...

It works nice!
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

i had a similar problem compiling with java7 and my browser still using java6. i dont usually use an IDE but i noticed Eclipse has an option for compiling with older compilers(nice feature IMO). thanks for the link, i will read that later.


SCJP
Visit my download page
 
Don't get me started about those stupid light bulbs.
 
subject: Are .jar files the only files we can make/issue with jar.