Netbeans into an executable file??

Kmasterrr

Active Member
Joined
Mar 29, 2008
Messages
80
Reaction score
0
Hey guys!

Sorry.. im having trouble finding out this.. i have created a project.. lets call it "Student" I wanna knw how do u change the project into being an .exe file.. where as the end user doesnt have to use netbeans.. he can just install and run the file?? Please help..
 
Java code is compiled to Java bytecode, in essence their version of a exe file is class file. Java cannot compile to binary executable operating system/platform specific files, there are some commercial packages available that can do it but it costs a lot and they have bugs.

That is the whole point of Java, write once, run anywhere, so long as you have the JVM installed you can run a Java application.

.NET works in the same way, code is compiled to CIL (Common Intermediate Language) which only runs if you have the .NET framework installed (totally pointless imho since it only runs officially on Windows anyway may as well compile to x86 Windows executable but whatever).

Both Java and .NET are referred to as interpreted languages because they cannot be run without the interpreter (JVM or .NET framework).

C++ is your best option, really not as complicated as it's made out to be.

Otherwise try Delphi if you don't like pointers.
 
Last edited:
You can create a .jar file that can operate in a similar way as a executable - Right click on the project and choose "Build", then go to the project directory and there should be a .jar for the project located in the directory "dist".

You can then use a batch file / sh script that states

java -jar xyz.jar

where xyz = the filename of the distribution file.

If the user's environment variables / file associations are correctly set up, then they can also merely double click the .jar file.

Good luck.
 
no guys.. i mean.. like if i wanna sell the program.. for instance.. how would i make it into an exe file??
 
It's got bugs, I've looked on the forums, for interest sake. Especially concurrency has got serious problems.

You can still sell Java applications, obfuscate the code and then distribute as a JAR as mentioned above.

First ask yourself if it's worth the effort tho, what kind of application is it?
 
I just got that VC++ now how do i put the netbeans project into an executable project witht that?>???????????

PS the project has databases n so on included
 
Ummm yes and no. .NET is an IEEE standard, Microsoft only supports Windows but the guys at the Mono Project have been busy and it's looking good. I've seen lots of .NET projects on Sourceforge that run happily on Linux!

Oh and x64 support is there but I've seen lots of posts around of people struggling with some of the details.

Wooh there, firstly .NET is not any kind of standard, CLI and C# are both ECMA and ISO/IEC standards (not the same as the IEEE), that is not the same as .NET, those two components are part of .NET but it is not everything (components not included is Windows Forms, ADO.NET, and ASP.NET for example).

Only Windows is officially supported by Microsoft .NET, Mono is a open source project that attempts to create a standard complaint CLI/C# implementation mentioned above.

Mono is also not even nearly comparable to JVM in the sense that JVM is stable and completely complaint to JSE/JEE/etc. standards, mono still has bugs especially when it comes to GUI applications (IE. Windows Forms applications)
 
IEEE, ECMA and ISO/IEC, tomatoe-tomaaato :)

Anyway you are 100% correct, all I'm interested in is C# so I guess I use the term .NET a bit loosely. I think the biggest issue is that the Base Class Libraries are only support Windows. Using "core" C# language you can do almost anything on any platform.

However Mono is sponsered by Novell and we all know about the partnership they have with Microsoft (SUSE Linux intercompatibility) coincidence?

Yup - I was at a Microsoft Interop conference day sometime last year where they discussed the future of .NET on other platforms and demoed Mono in Linux. It was a bit buggy, but I guess Mono has progressed since then... I suspect a few forumites here might've attended the same conference.
 
Top
Sign up to the MyBroadband newsletter
X