how can i make os independent .exe file in java. I am using netbeans IDE for developing java project

Recommended Answers

All 2 Replies

IMHO you cant make an OS independent executable (.exe) files, cause these files contain instructions native to the OS and your system architecture, for example an executable made for an 64 bit version of an OS may not run on its 32 bit version.

What I think you are looking for is executable JARs. They are platform independent and you can run your program directly(just by double clicking the jar like for an exe) if you have properly packaged it into an executable JAR file.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.