• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Having trouble distributing my app

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I have been trying and trying to distribute my java program and no matter what I do it all seems to fail. There must be something simple that I am not doing because I just can't explain it. Here is a list of what I have tried to do. Help would be much appreciated!
Tried to just get users to download a .jar file (when I downloaded it it worked but everyone else that downloaded it got some really crazy and strange errors. I don't think that you can just have someone download a straight .jar file)
Then I tried using an applet (I could view the applet just fine but everyone else got a little x)
I then tried JNLP but I realized that I had no clue how to do server mime type stuff so I gave up on that
I then thought I finally had it, I used Apple's Jar Bundler (I have a mac, obviously) and then Package Maker to create an installer for my website. It worked awesome on my computer and I thought I finally had it but when it installed on my friends computer it opened up and exited. It opened for an incredibly small and amount of time and then quit. I checked for error messages but found none.
Has anyone else gone through this kind of trouble? If anyone could please help me I would send you my code (it's nothing special) just so you could make it able to run on someone else's computer other than mine.
Thanks!
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So the first couple problems (can't run JAR, can't run Applet) need the user to have a Java Runtime Environment installed (properly). It is clear from your description that your target users don't. You have a couple choices: You can provide a link to www.java.com where they can download and install it themselves (more work for the user, assumes they can actually do it right), you can provide a JRE with your app and use a script to launch your application via the included JRE (increases the size of your download), or you could provide an installer which checks if a proper version of Java is installed, and if not, installs one for the user (most install builders cost money... but are worth it if you distribute widely).
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please UseAMeaningfulSubjectLine next time.
 
P Mc Gartoll
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rob Prime wrote:Please UseAMeaningfulSubjectLine next time.


Sorry, I've changed the subject
 
Rob Spoor
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. It's much clearer now
 
P Mc Gartoll
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Steve Luke wrote:So the first couple problems (can't run JAR, can't run Applet) need the user to have a Java Runtime Environment installed (properly). It is clear from your description that your target users don't. You have a couple choices: You can provide a link to www.java.com where they can download and install it themselves (more work for the user, assumes they can actually do it right), you can provide a JRE with your app and use a script to launch your application via the included JRE (increases the size of your download), or you could provide an installer which checks if a proper version of Java is installed, and if not, installs one for the user (most install builders cost money... but are worth it if you distribute widely).


I have Java SE 6, the other computer I'm testing on has Java 5. When I try to run the .jar file the console prints out a slew of messages including stuff about an HP IO monitor and SHUTDOWN NOW!!! are some the the messages that I get when I run the jar on the other computer. Is there any way for me to set my JRE to 5 instead of 6?
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the javac tool documentation particularly the source and target options. That should allow you to compile Java6 code for a Java5 runtime.
 
reply
    Bookmark Topic Watch Topic
  • New Topic