i had created the java application in swing and convert into class file and into jar finally i use the third party tool to convert inte exe,the problem was i cant able to run the exe in another system because it does n't have jre .my question was whether we able to run the program without jre
for exmple when we download the software from net and install into our system without know which language that the software was developed,how it possible why i cant?thank u
11 7661
i had created the java application in swing and convert into class file and into jar finally i use the third party tool to convert inte exe,the problem was i cant able to run the exe in another system because it does n't have jre .my question was whether we able to run the program without jre
for exmple when we download the software from net and install into our system without know which language that the software was developed,how it possible why i cant?thank u
What third party tool did you use?
All I know is that you need to have the JRE installed for you to run jar files. Most Java programmers never need to make .exes. I don't know what your .jar to .exe convertor was doing so I can't say the .exe is not running.
What third party tool did you use?
All I know is that you need to have the JRE installed for you to run jar files. Most Java programmers never need to make .exes. I don't know what your .jar to .exe convertor was doing so I can't say the .exe is not running.
-
//Author: Syed M Hussain
-
//Date: 07/02/06
-
//Description: Load multiple JLabel using a loop.
-
//www.java.codeyourself.com
-
//www.codeyourself.com
-
-
import javax.swing.*;
-
import java.awt.*;
-
-
public class MultipleJLabels
-
-
{
-
public static void main(String args[])
-
{
-
MultipleJLabels newMultipleJLabels = new MultipleJLabels();
-
newMultipleJLabels.Display();
-
}
-
-
public void Display()
-
{
-
int top=0;
-
-
JFrame frame = new JFrame("Multiple JLabels");
-
JPanel pane = new JPanel();
-
frame.getContentPane().add(pane);
-
-
JLabel[] label = new JLabel[5];
-
-
for (int i=0; i <=4;i++)
-
{
-
label[i] = new JLabel("JLabel: " + i);
-
label[i].setSize(100,20);
-
label[i].setLocation(0,top);
-
top=top+25;
-
pane.add(label[i]);
-
pane.setLayout(new BorderLayout());
-
}
-
-
frame.setSize(200,200);
-
frame.setVisible(true);
-
}
-
-
}
-
this my java file ,i just comile using java compiler and make to byte code,and i use to change inito am jar file,then i download the tool which use to convert jar to an exe(if click the icon the file will execute autmatically in adesktop),it run in my system but when copy te file to other system it will give the error message,my question is whether it any possibility run the file without jre.we download the software in the net without have idea of technology and run it in our system for example we download yahoomessenger and run in our system without having any knowledge of their technology
I normally ship and deploy my Java applications using an installer: it installs my
jar(s) as well as a JRE on the target machine. The user doesn't know that her
machine contains any Java technology.
kind regards,
Jos
I normally ship and deploy my Java applications using an installer: it installs my
jar(s) as well as a JRE on the target machine. The user doesn't know that her
machine contains any Java technology.
kind regards,
Jos
u cant able to get my question
u cant able to get my question
I beg your pardon?
Jos
I beg your pardon?
Jos
i not mean like that i cant able to convey my question sorry
i not mean like that i cant able to convey my question sorry
I do understand you: you want to create a single executable (.exe) file out of a
bunch of .java source files. I am trying to tell you (repeatedly) that this is not the
way Java works, i.e. you create executable .jar files and install a virtual machine.
In my previous reply I mentioned that you can install that virtual machine using a
proper installer. It installs the java virtual machine together with the .jar file(s) that
contain your application code.
kind regards,
Jos
thank josh,i have assign the work to do in jasper report,which will give the report dynamically,please give some idea i am not able to find the solution yet(dynamically insence we have to sent the value in textbox using swing and should able to sent the report in pdf
thank josh,i have assign the work to do in jasper report,which will give the report dynamically,please give some idea i am not able to find the solution yet(dynamically insence we have to sent the value in textbox using swing and should able to sent the report in pdf
Well, its not uncommon question to ask, but still unresolved. Why to install whole jre, when you made just funny applet. (anyway, Josah, what installer do you normally use?)
During my searching I found a program which functiones exactly like what I would need. See here http://www.kytara.cz/download/chords/chords12ee.zip
He copied all the needed classes(this means all imports, including implicit java.lang.*) into classes.zip and included java.exe Then the program is run by .bat which calls
java.exe -classpath cclasses.zip;chords.jar chords.ChordsAppl
so it starts the main classChordsAppl. It is awesome, it works without any jre at all and zipped it has about 1.3MB. The drawback is, that it is made in java 1.1 and I failed to remake it to java 1.6 It just wouldnt run on computer without jre.
Thanks for any comments.
Well, its not uncommon question to ask, but still unresolved. Why to install whole jre, when you made just funny applet. (anyway, Josah, what installer do you normally use?)
During my searching I found a program which functiones exactly like what I would need. See here http://www.kytara.cz/download/chords/chords12ee.zip
He copied all the needed classes(this means all imports, including implicit java.lang.*) into classes.zip and included java.exe Then the program is run by .bat which calls
java.exe -classpath cclasses.zip;chords.jar chords.ChordsAppl
so it starts the main classChordsAppl. It is awesome, it works without any jre at all and zipped it has about 1.3MB. The drawback is, that it is made in java 1.1 and I failed to remake it to java 1.6 It just wouldnt run on computer without jre.
Thanks for any comments.
If you included java.exe you have included the entire virtual machine. btw I use IzPack for the installation of my applications.
kind regards,
Jos
Sign in to post your reply or Sign up for a free account.
Similar topics
by: QQ June |
last post by:
Hello,
I have some java classes. But, I don't want my users to type "java
my_java_program" every time they run the java class ?
How do I pack them together into one executable file, like...
|
by: Maurice LING |
last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic
typing, is there any other real reasons that Python is slower than Java?
maurice
|
by: Beatrice Rutger |
last post by:
Hi,
I am a previous Micro$oft desertee (moved from VB/VC++ to Java before
this whole DOTNET thing) because I had several issues with Micro$oft. I
am not completely in love with Windoze, but I...
|
by: suresh_C# |
last post by:
Dear All,
What is difference between Portable Executable (PE) file and a Assembly?
Thanks,
Mahesh
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej...
|
by: infobescom |
last post by:
currently we have created an MS access application and we want to create an executable of it we did it this way
tools menu -> datadase utilities ->make MDE file
we have got an MDE format of the...
|
by: Nert |
last post by:
Hi..,
i have build a simple program which is done few days ago.., it's just a simple chatroom. Now my problem is how can i make my java program executable? i want to run it on the other computer...
|
by: Janna |
last post by:
I have the Java JVM installes on my server.
I uncommented
extension=php_java.dll
in php.ini
I uncommented and proerpyl filled out the section in php.ini:
java.class.path...
|
by: r035198x |
last post by:
Setting up.
Getting started
To get started with java, one must download and install a version of Sun's JDK (Java Development Kit).
The newest release at the time of writting this article is...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
| |