Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (754)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Run an applet from the desktop  (Read 1215 times)
0 Members and 1 Guest are viewing this topic.
Offline cheeseman585

Innocent Bystander

« Posted 2009-09-20 23:56:16 »

I am entering my game in a competition that requires the use of an installer.  I can write an executable, but my problem is that I've never needed to run an application from the desktop.

I tried to look this up, but the only JNLPs I've seen reference actual websites.  I'm not sure how to make it reference a JAR file in, say, "C:\Documents and Settings\[the user's username]\My Documents\gameName".

I've also tried using a different folder just to test it out, and it said it couldn't find the class I told it reference even though I know for a fact it was in the JAR file I told it to reference.

Here's my JNLP code if it helps at all.
<jnlp spec="1.0+"
      <jar href="file:///G:/Game/Game.jar"/>
   <application-desc main-class="Game"/>
Offline broumbroum

Junior Devvie

« Reply #1 - Posted 2009-09-21 12:32:52 »

hi file://... URI aren't remote URL and therefore require no connection... if you want to test the jnlp, you could just install some local small webserver and set http://localhost:80/yourjnlp.jnlp as code base.

::::... :..... :::::: ;;;:::™ b23:production 2006 GNU/GPL @
on /projects/sf3jswing
Java (1.6u10 plz) Web Start pool
dev' VODcast[/ur
Offline Riven

« JGO Overlord »

Medals: 1340
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #2 - Posted 2009-09-21 13:24:07 »

 Roll Eyes So... he should write an installer, that launches an http server, so that he doesn't need an installer to launch his game.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline fguy

Senior Newbie

« Reply #3 - Posted 2009-09-21 13:35:50 »

One other consideration. I don't know how you write your applets, but I try to put a much as possible of my GUI onto a JPanel, then add the JPanel to the applet. If you do that, then you should just as easily be able to add the JPanel to a JFrame (desktop version).

I'm no expert, and I'm not aware of any situations where this wouldn't be a good idea, if anyone does, I am all ears.

fchess2 - the rewrite:
Pages: [1]
  ignore  |  Print  

DesertCoockie (33 views)
2018-05-13 18:23:11

nelsongames (75 views)
2018-04-24 18:15:36

nelsongames (69 views)
2018-04-24 18:14:32

ivj94 (752 views)
2018-03-24 14:47:39

ivj94 (82 views)
2018-03-24 14:46:31

ivj94 (622 views)
2018-03-24 14:43:53

Solater (98 views)
2018-03-17 05:04:08

nelsongames (179 views)
2018-03-05 17:56:34

Gornova (405 views)
2018-03-02 22:15:33

buddyBro (1065 views)
2018-02-28 16:59:18
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!