473,396 Members | 1,707 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 a exeq

karthickRAJKUMAR
how to convert the java swing inito exe
for example
Expand|Select|Wrap|Line Numbers
  1. import javax.swing.*;
  2.  
  3. public class KmToMiles {
  4.  
  5.     public static void main(String[] args) {
  6.  
  7.         String kmStr;    // String km before conversion to double.
  8.         double km;       // Number of kilometers.
  9.         double mi;       // Number of miles.
  10.  
  11.  
  12.         kmStr = JOptionPane.showInputDialog(null, "Enter kilometers.");
  13.         km = Double.parseDouble(kmStr);
  14.  
  15.  
  16.         mi = km * 0.621;  // There are 0.621 miles in a kilometer.
  17.  
  18.  
  19.         JOptionPane.showMessageDialog(null, km + " kilometers is "
  20.                                           + mi + " miles.");
  21.     }
  22. }
  23.  
i am tested as console aplication i mean in command prompt .how can execute without touching command prompt (without writing javac filename.java and java filename)moderators and my friends please give the full description
Oct 15 '07 #1
10 1476
Please read this article click me
Reply if you have questions?
Good Day!
Oct 15 '07 #2
Please read this article click me
Reply if you have questions?
Good Day!
java -Xmx200m -cp whatever.jar -Dsome.property MyApp
they give like that what can i do with my class
Oct 15 '07 #3
JosAH
11,448 Expert 8TB
how to convert the java swing inito exe
for example

[ code snipped ]

i am tested as console aplication i mean in command prompt .how can execute without touching command prompt (without writing javac filename.java and java filename)moderators and my friends please give the full description
You don't do that in java; you should compile your source files and bundle them
in a executable .jar file; no need to worry: you Java installer already associated
the .jar type with the java virtual machine. All you have to do then is click on a
.jar's icon.

kind regards,

Jos

ps. next time you want to post code please put [ code ] ... [ /code ] tags around
the code for readability reasons.

psps. google for "jar tutorial" and you'll know everyting you ever wanted to know
about .jar files.
Oct 15 '07 #4
Please read this article click me
Reply if you have questions?
Good Day!

please guide me to make above program into exe .please give me code in detail plese please
Oct 15 '07 #5
JosAH
11,448 Expert 8TB
please guide me to make above program into exe .please give me code in detail plese please
You did read that link didn't you and you did read the forum guidelines w.r.t.
full code spoonfeeding solutions? (See the 'Help' link near the top right corner
of this page).

kind regards,

Jos
Oct 15 '07 #6
java -Xmx200m -cp whatever.jar -Dsome.property MyApp
they give like that what can i do with my class
Try the 'Executable Jars' section in the same article. Its very simple.
Good day!
Oct 15 '07 #7
Try the 'Executable Jars' section in the same article. Its very simple.
Good day!
i got the error failed to load main-class manifest attribute from my path(c:/....)
Oct 16 '07 #8
r035198x
13,262 8TB
i got the error failed to load main-class manifest attribute from my path(c:/....)
And what do the tutorials say is the cause of that error?
Oct 16 '07 #9
i got the error failed to load main-class manifest attribute from my path(c:/....)
Ok, try reading this, it should help create a default manifest for you. click me
Oct 16 '07 #10
Ok, try reading this, it should help create a default manifest for you. click me
ok thank for ur valuable suggestion
Oct 17 '07 #11

Sign in to post your reply or Sign up for a free account.

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: 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?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.