473,396 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Making an exe

Using the Netbeans IDE or the command line, is it possible for me to
turn my Java code into a native executable for x86 WindowsXP? If not,
is there a free tool I can use to turn .java or .class files into
executables?
Jul 17 '05 #1
5 6868
PlasmaDragon wrote:
Using the Netbeans IDE or the command line, is it possible for me to
turn my Java code into a native executable for x86 WindowsXP? If not,
is there a free tool I can use to turn .java or .class files into
executables?


GCJ works for me on Linux, although some of the standard library classes
haven't been implemented yet. I would be interested to know whether it
works on MS Dubya, too.
Jul 17 '05 #2
PlasmaDragon wrote:
Using the Netbeans IDE or the command line, is it possible for me to
turn my Java code into a native executable for x86 WindowsXP? If not,
is there a free tool I can use to turn .java or .class files into
executables?


We had this problem at work once, how to make an "executable" for our
java program.

Its easy actually, all you need to do is load up your VC++ and create an
empty win32 application. Create yourself a fancy icon (metallic-style
please :-) ) and then load the java class manually.

There are several ways to do this. You can actually do something like
ShellExecuteEx( "javaw -jar MyApp.jar",... );

or there is a way to manually load the JVM. But i never did it this way.

What we used to do is keep the command in an ".ini" file on the client's
machine. The exe would just concatenate the parameters but and prepend
the "javaw.exe" exe to run (weak security measure).
Hope it helps.
Jul 17 '05 #3
Thanks for the help. I was able to make an C++ executable containing
the line

system("java MyJavaProgram");

and it worked.

I tried using GCJ thru the bash shell, but it resulted in the error
"undefined reference to '_WinMain@16'", even when compiling a trivial
HelloWorld program.
Jul 17 '05 #4
You might also be interested in the following link, which offers jre-less
GUIs. The app is free for 60 days.

http://www.excelsior-usa.com/jetswt.html
Pl**********@lycos.co.uk (PlasmaDragon) wrote in message news:<15**************************@posting.google. com>...
Using the Netbeans IDE or the command line, is it possible for me to
turn my Java code into a native executable for x86 WindowsXP? If not,
is there a free tool I can use to turn .java or .class files into
executables?

Jul 17 '05 #5
PlasmaDragon wrote:
Using the Netbeans IDE or the command line, is it possible for me to
turn my Java code into a native executable for x86 WindowsXP? If not,
is there a free tool I can use to turn .java or .class files into
executables?


Or you can try JSmooth, http://jsmooth.sourceforge.net , but in my
practice it acts like a fool when trying to find the specific .jar file.
~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Willam Roberts | last post by:
To me, when you enumerate, you make a list of specific items, like enumerating controls in a form. Am I missing something? I mean is there something more to the meaning of the term "enumeration" or...
31
by: CYBER | last post by:
Hello Is there any other way under python to create blocks ?? instead of def sth(x): return x
2
by: Stewart | last post by:
Originally posted in comp.lang.javascript: Newsgroups: comp.lang.javascript From: "Stewart" Date: 23 Aug 2005 02:50:04 -0700 Local: Tues, Aug 23 2005 10:50 am Subject: FireFox, RemoveChild,...
7
by: redneon | last post by:
Does anyone have any good links to information on how it's possible to make a library in C++? I can't seem to find anything.
90
by: Ben Finney | last post by:
Howdy all, How can a (user-defined) class ensure that its instances are immutable, like an int or a tuple, without inheriting from those types? What caveats should be observed in making...
34
by: Asfand Yar Qazi | last post by:
Hi, I'm creating a library where several classes are intertwined rather tightly. I'm thinking of making them all use pimpls, so that these circular dependancies can be avoided easily, and I'm...
351
by: CBFalconer | last post by:
We often find hidden, and totally unnecessary, assumptions being made in code. The following leans heavily on one particular example, which happens to be in C. However similar things can (and...
10
by: JurgenvonOerthel | last post by:
Consider the classes Base, Derived1 and Derived2. Both Derived1 and Derived2 derive publicly from Base. Given a 'const Base &input' I want to initialize a 'const Derived1 &output'. If the...
7
by: MarkNeumann | last post by:
I'm coming from a Corel paradox background and moving into an Access environment. So I'm struggling with something that I think is probably way simpler than I'm making it out to be. Access 2007...
50
by: Juha Nieminen | last post by:
I asked a long time ago in this group how to make a smart pointer which works with incomplete types. I got this answer (only relevant parts included): ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.