Florida's nice, maybe there.
Yes this is a IDE question, I'm doing it on Eclipse.
I don't know which one I need to export to, I tried exporting to .xml and tried opening it but nothing happened.
I want to put it in a website.
If you are using an IDE, ask the question on their forum.
Here's a batch file I use to create a zip file for one of my projects:
@REM Build zip file with EasyBridge executeable stuff
@REM copy doc files to where the jar command will get them
copy ..\Readme.doc Release\Readme.doc
copy ..\History.doc Release\History.doc
jar -cf %JarName% BitMaps/*
jar -uf ..\%JarName% *.lnk CJ609Lib.dll EasyBridge.cnt EasyBridge.exe EasyBridge.GID EasyBridge.hlp EasyBUtils.dll EasyBWizards.dll History.doc Readme.doc
@echo ------------ Created %JarName% ------------------
played on an html file
Is the program an applet? Only applets fit into html pages.
Well, zipping the files will not allow you to do that. All zipping does is compress multiple files into 1, but to access the files again you have to unzip, this means whoever you give it to would need to compile the code just like you did to use the program.(I think)
To use Java on a webpage, you need to create a Java Applet. If that is not what you did then it will be very difficult/maybe impossible to do that now without re coding everything. (Not 100% sure)
To make it standalone, You need to create a JAR file from your code. Try searching google for how to do that. You can also convert JAR files to EXE files.
Why do you have a .xml file in the first place? I thought it was a java project. Java projects contain .java and .class extensions. To make it like you ask, you just create a .JAR file. And to make something actually pop up, you need something visible, such as a JFrame. If you wrote your program just using the system prompt then I think you need to open the JAR file using the command prompt.
I'm not sure what your goals are.
If you want to make your program run on a web page, create an applet and put it in a html file - some IDEs generate this for you.