Jump to content
  • Advertisement
Sign in to follow this  
PegasusBW

Java exports

This topic is 3481 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi. Does anyone know I which format (and how) I should export my Java program and set it up, so that I can just open the program by double clicking it? Like a Windows executable.

Share this post


Link to post
Share on other sites
Advertisement
I believe you can just compile it into a JAR, and do some things to allow it to be executed or something. I'm not entirely sure - I've never gone into Java too deeply - but I think this official Java trail might be helpful. [smile]

~Jonathan

Share this post


Link to post
Share on other sites
Its not working. I have this whole code written in my html file:


<html>
<head>
<title>Breakout</title>
</head>
<body>
This applet requires Java SE 6.

<applet code=BreakoutGame.class
archive=Breakout.jar
width=900 height=612>
</applet>

</body>
</html>



I put this html file and the jar file both on the desktop (same folder) but I get an error. Tells me it can find the BreakoutGame.class file. (I have made sure that everything is spelled correctly).

Share this post


Link to post
Share on other sites
Never mind I got it :D. It appeared that Eclipse didnt export all the necessary file automatically, but I made it. So Im good, and thanks.

Share this post


Link to post
Share on other sites
Sure! Might be worth mentioning that my new HTML book (released this year) says that the <applet> tag isn't standard, and recommends <object>, but hey, it works doesn't it? [smile]

~Jonathan

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!