Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Jay Orsaw
Ranch Hand
Posts: 356
Android Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jay Orsaw
Ranch Hand
Posts: 356
Android Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4467
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic