Compiling JAVA into Windows .exe files
Hi,
Here's an easy question - how do you compile JAVA source into Windows .exe files (as opposed to class files with bytecode in them). I imagine there is a third-party product out there somewhere?
A Bayesian network is a mathematical representation of logical inference.
A very simple example has two nodes: "has tail" and "is horse", connected by a single link. If we know "is horse" is true, then it nearly always follows that "has tail" is also true. This is called modus ponens in logic. If we know "has tail" is true, then "is horse" might be true, but it might not. To infer that "is horse" is true in such a case is to commit what is called the fallacy of affirming the consequent, in logic. However, using Bayes' theorem, which would require that we know some general information about the prevelance of horses among tailed animals, and the general prevalence of horses among things in general, we can measure the exact increase in the probability that "is horse" is true that results from our knowing "has tail" to be true.
For more information, see http://www.bayesian.org
The classic book on the subject is Judea Pearl, Probabilistic Reasoning in Intelligent Systems.
Similar Messages
-
Turn a script into an .exe file?
Hi,
How can I turn a JavaScript into an .exe file (on Windows)? The
advantage is that if the script uses only ScriptUI features, it will
never need to launch InDesign. Additionally, it is possible to package
it that way with a special icon that appears if it is placed on the
desktop, and when it runs the icon appears in the taskbar.
An example of what I'd look to achieve is the hyphenchecker script,
written by the late Teus de Jong. There is one Windows-only version
available on his website (which is still being maintained, probably by
his son) which is an .exe file -- precisely what I'm trying to do.
Thanks,
Arielstraight form javascript i don't think there is a way.
however you can use, i think, Visual Basic (not vbScript!!) as a wrapper for js (using doScript)? -
Hi!
I hope someone can help me with this.
I have done a program in Java-code and now I want to convert that code into an executable file that can be run on most computers. I have tried to convert the code to a JAR-file and then, using the program JSmooth, transform it into a exe-file. But, sad to say...it failed. Is JSmooth the way to do it or is there another better way?
Hope to get an answer.. :)
/ Berenuradd a Main-Class: yourclass line to a manifest file, and specify your manifest when you create the jar.
I.e.
Manifest-Version: 1.4
Main-Class: myClassSave that to manifest.mf or something like that.
Then,
jar -cvfm MyJar.jar manifest.mf [all files to include in jar]
done. -
Converting java to an exe file
Hi
Is there any way i can convert my java app into an exe file?
That can be run just by double clicking it?
ThanksDo you see that search box on the left?
<--- That left!
We had so many threads about that topic.
* Search before Posting: Especially if you are in a hurry, you may find that the question has already been asked and answered during the long history of the Forums.
* Know the basics: Read this FAQ and the basic trails of the Java Tutorial (like Getting Started or Learning the Java Language). If you don't understand the question you are posing, you may not understand the answers.
* Be thorough and precise: Proofread your question before posting. Describe the steps that you have taken. The more effort you put into researching and describing your problem, the more likely you will get a sincere effort in return.
* Post a subject line that describes the problem: Experts in your subject may skim right past subject lines like "Urgent" and "Need help ASAP". Use keywords about the technologies instead.
* Post once and in the right area: Multiple postings are discouraged, because they make the category lists longer and create more email traffic for developers who have placed watches on multiple categories. Because of this, duplicate posts are considered a waste of time and an annoyance to many community members, that is, the people who might help you.
* Post a problem, not an assignment: Break your assignment down into specific problems that you can ask for help with. Dorm hall lounges may be a better resource if you have a last minute, "urgent" demand for solutions to homework problems.
* Answer questions as well as asking: You can learn by doing as well as gain respect in the community by being a full participant.
From the forum FAQ -
Conversion of a .jar OR a .class file into a .exe file
Can anyone tell me as how to convert a .jar OR a .class file into a .exe file
I need to know as soon as possible.Okay I will tell you the steps:
Look in the top right hand corner of the page.
There should be a box with a red title line. Inside the
title should be the letters 'S E A R C and H'.
In the white part of th box should be a smaller line, in which you can type.
type in "conversion .jar .class .exe" or some similar string.
Then click on the button next to the text box.
Read the page of results you get.
Click on the first link and read what is said on the connecting page.
If that doesn't help, use your browser's back button and click on the next link, and repeat util your question is answered. -
Can AIR execute Windows .EXE files?
Can AIR execute Windows .EXE files?
hi
you can now implement a standard windows installer (ie a native installer, rather than the AIR installer) when users install your AIR app. Not sure if there's an option to do this in flex/flash builder but it can be done via command line.
eg:
adt -package -storetype pkcs12 -keystore myCert.p12 -target native NativeProcessTest.exe NativeProcessTest-app.xml NativeProcessTest.swf NativeApps/Windows/bin/echoTestWindows icons
or try this handy packager:
http://www.webkitchen.be/package-assistant-pro/ -
How to turn a Java Application an .exe file?
Hello, I'am just above new commer in Java world. I was wondering if anyone could help me. I just developed an application in java, how can I turn it into exe file? is there a way I can run this application without the "Command" promt (window) running?
Pls. help my email address is "[email protected]"
Any assistance will be largely appreciated.you can try the J++ compiler provided with the JBuilder from Microsoft but this is just compiling the java to C++. to create a standalone exe is as far as I know impossible. U can try to use a jar-archive (create with the sdk) and if a Java Virtual Machine is installed (normally with every popular web-browser) it will run with a doubleclick
-
is it possible to make portions of java program into a dll file so that other program can consume it?
dll which stands for Dynamic Link Library, is specific to windows and dos I believe, and so attempting to make a change like the one you request will break the ability of a program to work on mult OSs. There are several exe conversion utilities out there, but I haven't seen a dll conversion one, but then again, I haven't been looking.
Perhaps the best answer is not to directly answer your specific question, but try to answer your problem. I assume that you want Java talking to a C or C++ program or other similar program that can compile to dll form. If so, have you considered looking into using the JNI library? This is one of several solutions that will allow you to do just this. Again, using it usually breaks your program's ability to be interoperable on multiple OSs.
Good luck. -
How to convert erl scripts into single exe file ?
hi
this is not related to java. Does anybody know how to convert perl scripts into exe file in non-readable format?
regards
venkiI believe that ActiveState used to do a Perl compiler.....not sure if they still do and I don't think it was free anyway. Check around their website...
http://www.activestate.com/ -
.class file into the .exe file - simplest possiblity ???
Dear All,
I have a java program....and the compiled ".class" file for this....basically, it is a Frame..i will run this said program from my command prompt like,
C:\java megalaunch
...the frame will appear now....
what i want to know is .............Is it possible to change this said class file, in to an .exe file...so that, (instead of going for a command prompt for running the said program) i can just double click the said .exe file and start that said Frame....
pl. post a reply,
Sakthivel S.
P.S: I dont want to use the batch file option for the above...Easier (and more reliable, smaller. etc) than creating an executable .exe file is to create a Windows (desktop) shortcut to the GUI program, or create an executable .jar that packages your GUI. Both are executable/clickable solutions.
Use a desktop shortcut or an executable jar file:
http://developer.java.sun.com/developer/qow/archive/21/index.html -
How to pack .class or .jar with jvm into an exe file?
In fact, .class or .jar files are middle layer files who need JVM to explain and run them. Sometimes it's unconvenient. Why not provide some tools to pack .class or .jar with jvm into exe file?
because java should be able to run on any OS. That is why SUN doesn't provide such tool. There are other company's who does provide such tool. Like JBuilder enterprise
-
Convert Java Project to exe file
Helloz everyone,
I have completed a java project. Now I have to convert it in exe file for windows.
Can u please guide me. I can use any third party tool.
But I want that it can be installed on any computer whenever double clicked and it make a icon. Whenever user click on that icon then it run the application.
Thanks in advance.
ViVeKYour jar command appears to be incomplete; it should lookk about like this:
jar cvmf0 manifest_file MyJar.jar MyPackage/MyClass.class MyPackage/MyClass.gif MyPackage/MyClass.txt MyPackage/MyClass.html
The 'm' in the command represents the manifest file. The 'f' represents the jarfile name. These can be reversed in order, but must be reversed respectively - that is, if the 'f' comes before the 'm', then the MyJar.jar needs to come before the manifest_file.
The contents of the manifest needs - in the simplest cases - to look like this:
Line 1. Main-Class: MyPackage.MyClass
Line 2.
Note please the Line x. do not appear; however the line 2 must exist and must be empty. IOW, a carrage return must exist at the end of line 1.
Note too that the MyPackage part is optional. It's there if you have a specifically named package.
Note lastly that you may not have .gif, .txt, etc files to add to your jarfile. -
Change java application to exe file
I want to change the java application(*.class)to the exe file in WIN OS in order to update its speed, can anyone tell me some useful infomation? thanx in advance.
HollyI have been using VAJ for several months now and I have not found the option to compile a native executable. Its help system is the worst I can recall ever seeing. So can you tell me exactly how to do that with VAJ?
-
is it possible to compile java to a MS-windows exe?
i would like to do this for two reasons:
1) i hope for a better performance of my desktop-API
2) i can't be sure that all of my users have JVM installed.
do i need special programms for that?
thanks
gammloop1) There are thingys to do that...
There's one on source forge. Can't remember what it's called.
The JIT does that any though, so desktop performance isn't an issue.
2) Oh, they will, they will. Now that evil is spreading across the land like a dark shadow.
Why don't you ship the JRE with your application. Not the sdk (you're not allowed to do that). [I think you can distribute the JRE - I hope you can, otherwise I'm phoning my solicitor.] -
I bought windows through Microsoft online and I have received an exe file. I can't seem to open it on my iMac, I have downloaded the windows support files from boot camp but I still can't get anywhere. What do I need to do?
Thanks,Use a Windows PC and use the exe file to download a Windows ISO file. You can also put it on a USB2 flash disk.
To install Windows on a Mac start at How to install Windows using Boot Camp - Apple Support.
Maybe you are looking for
-
How can i stream music from itunes (ipad or MacBookPro) to Apple TV 2nd Gen?
How can i stream (not sync) music from itunes (ipad or mac) to an AppleTV 2nd gen?? thanks..
-
Should I name each individual picture in an event or just name the event?
I could use some advise from those out there that really know how to organize their photos in iPhoto. Should I name each individual picture in an event or just name the event? The individual photos all have the typical camera file names (ex: 134-234
-
Panasonic Lumix GH4 RAW Support
hi, i am waiting for the support of Panasonic's RAW format in iOS. the format is supported on the MacOS, but not in iOS. any experience how long I have to wait? how quickly does Apple implement new formats? kind regards Stefan
-
Why do my photo file size increases upon export?!?!
This is driving me nuts. I have Aperture 1.5.2 referencing an iPhoto library. When I look at the metadata toolset I can see each photo's file size. I have all my photos already resized to fit in an 800x800px box. When I export through Aperture using
-
Help using a Roland Edirol R-09 with Garageband (kinda bootleg)
Being a career musician, I'm pretty low on funds and I was trying to figure out a cheap way to record music. I used to do this on my old computer (which was a PC) and I never had any problems, and I was wondering if anyone stumbled across anything si