473,379 Members | 1,473 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,379 software developers and data experts.

java executable format without jvm

karthickRAJKUMAR
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
Nov 1 '07 #1
11 7657
r035198x
13,262 8TB
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.
Nov 1 '07 #2
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.
Expand|Select|Wrap|Line Numbers
  1. //Author: Syed M Hussain
  2. //Date: 07/02/06
  3. //Description: Load multiple JLabel using a loop. 
  4. //www.java.codeyourself.com
  5. //www.codeyourself.com
  6.  
  7. import javax.swing.*;
  8. import java.awt.*;
  9.  
  10. public class MultipleJLabels 
  11.  
  12. {
  13.     public static void main(String args[])
  14.     {
  15.     MultipleJLabels newMultipleJLabels = new MultipleJLabels();
  16.     newMultipleJLabels.Display();
  17.     }
  18.  
  19.     public void Display()
  20.     {
  21.     int top=0;
  22.  
  23.     JFrame frame = new JFrame("Multiple JLabels");
  24.     JPanel pane = new JPanel();
  25.     frame.getContentPane().add(pane);
  26.  
  27.     JLabel[] label = new JLabel[5];
  28.  
  29.         for (int i=0; i <=4;i++)
  30.         {
  31.         label[i] = new JLabel("JLabel: " + i);
  32.         label[i].setSize(100,20);
  33.         label[i].setLocation(0,top);
  34.         top=top+25;
  35.         pane.add(label[i]);
  36.         pane.setLayout(new BorderLayout());
  37.         }
  38.  
  39.     frame.setSize(200,200);
  40.     frame.setVisible(true);
  41.     }
  42.  
  43. }
  44.  
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
Nov 2 '07 #3
JosAH
11,448 Expert 8TB
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
Nov 2 '07 #4
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
Nov 2 '07 #5
JosAH
11,448 Expert 8TB
u cant able to get my question
I beg your pardon?

Jos
Nov 2 '07 #6
I beg your pardon?

Jos
i not mean like that i cant able to convey my question sorry
Nov 2 '07 #7
JosAH
11,448 Expert 8TB
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
Nov 2 '07 #8
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
Nov 5 '07 #9
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
Nov 5 '07 #10
jez
1
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.
Nov 5 '07 #11
JosAH
11,448 Expert 8TB
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
Nov 6 '07 #12

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

Similar topics

6
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...
114
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
8
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...
8
by: suresh_C# | last post by:
Dear All, What is difference between Portable Executable (PE) file and a Assembly? Thanks, Mahesh
1
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...
9
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...
2
Nert
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...
2
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...
5
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.