yz91024 / Save-Fred-Game

Java Game
0 stars 0 forks source link

Deployment #1

Closed LtSnuggie closed 7 years ago

LtSnuggie commented 7 years ago

Hey Lindsay said you thought you had a way to deploy your app. What did you find.

yz91024 commented 7 years ago

I think I can deploy it using only HTML.

LtSnuggie commented 7 years ago

How are you thinking about doing that?

LtSnuggie commented 7 years ago

Also, what class is your main function in?

I was trying to wrap your app in a .jnlp file but it looked like Java was having issues finding your main method. I was trying javagame.Game as it appeared main(args) was in there.

yz91024 commented 7 years ago

The class is javagame.Game.class. It is an applet so it uses init(), start(), and run() instead of main()

yz91024 commented 7 years ago

I am using the applet tag in HTML to run it.

LtSnuggie commented 7 years ago

Have you gotten the applet tag to work? Currently the only supported browsers are IE/Safari according to the Orcale documentation

LtSnuggie commented 7 years ago

If you cannot get the applet tag to work you will need to convert it to an application.

See: http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/applet_migration.html

Look at the section titled 'Re-writing a Java Applet as a Java Web Start Application'

ghost commented 7 years ago

Steven, which version of Java did you use when you wrote this?

yz91024 commented 7 years ago

I used 1.8

LtSnuggie commented 7 years ago

Steven if you cannot get your applet running in pure HTML that is launched outside of the eclipse IDE I will need you to build the game as application as outline in the article I posted above.

If you do get it to launch please add the HTML to your project and commit the files.

yz91024 commented 7 years ago

Ok

LtSnuggie commented 7 years ago

Steven, Ms Walker said you got her a jar. Was this jar built as an application with a main() wrapper around your run() and init() functions to get the game running?

yz91024 commented 7 years ago

Yes

LtSnuggie commented 7 years ago

Perfect, I will try to get this deployable this weekend.