wood burning stoves*
The moose likes Performance and the fly likes Java Compiler and Run times(Urgent) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "Java Compiler and Run times(Urgent)" Watch "Java Compiler and Run times(Urgent)" New topic
Author

Java Compiler and Run times(Urgent)

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi,
I want to know following:
I want to create Java application(Not JAva Applet). I want to run that java application on customers machines. So obviously I have to give floppy which embeds Java application and JIT(to run).
Generally developers download JDK1.3 and they run java <java application>.
on customers machine, I don't want they download jdk1.3 and run command java <java application>. I want to embed compilers and JIT in my floppy so when I give to customer, they just type in name of Java application and it should run.
What is the best way to do this?
Thanks in advance
Angela
Joe Paolangeli
Ranch Hand

Joined: Apr 05, 2000
Posts: 73
You would at least need the Java Runtime Edition (JRE 1.3). You would still need to run the java program (ex. java someapp). You could simplify the process by creating a batch file that runs the java application.
Hope this helps,
Joe
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
And you will also have a hard time fitting even a Java runtime onto a floppy. They are several megabytes big.


Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Rohan Patil
Greenhorn

Joined: Jan 04, 2001
Posts: 6
Write java Test(application name) in the batch file and exceute that batch file on the prompt
Regards
Rohan
Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Rohan,Frank,Joe
Thanks for your responses.
Still JRE(1.1) can not feed in one floppy disk. I found one thing, if you have internet explorer above 4.0.And if i don't have any JDK or JRE, i can still work with one command JView. With the use of this command i can run application without JDK OR JRE.Now I want to try this command on diff IE OR NETSCAPE OR MAC OR UNIX.
Thanks
Let me know if you find something very common command
Angela
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Not everyone will have a JRE. Even with IE, the installation of the Microsoft VM can be skipped (and sometimes is, in some companies who feel this creates a security threat). The only answer I can come up with is CDROM. You can get a Jump Start CDROM from Sun or most Java Books that come with a CD have the JRE as an install. If you have access to a burner, you can make installation CD for the JRE without violating Sun's copyright. You can set up a CD with all the latest versions and allow the Customer to choose.
Hope this helps


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
Sivaram Ghorakavi
Ranch Hand

Joined: Nov 30, 2000
Posts: 56
If you are sure about the destination platform (like Windows) use free tools available to conver the java application class files to EXE and distribute it as single file. NO JVM required I believe!!!
Anthony O'Rourke
Greenhorn

Joined: Dec 05, 2000
Posts: 11
Hi Angela,
Firstly, it is the Java Runtime Environment ( the current version to use is Version 1.3.0 )that you need to give to your customers. You can download it and burn it to CD for distribution to your customers, or, if you are tied to floppy discs, there is a cool option to download in 1.44MB pieces. Go to:
http://java.sun.com/j2se/1.3/jre/download-windows.html
(assuming you will be distributing this to windows users.)
Good luck with your project!
Anthony


~~~~~~"Outside of a dog, a book is a man's best<BR>friend: and inside a dog, it's too dark to read."<P>- Groucho Marx~~~~~~~~~~~~~~
Mirko Froehlich
Ranch Hand

Joined: Aug 21, 2000
Posts: 114
I believe that any Windows 9x, NT or 2000 installation includes jview, which is Microsoft's Java runtime implementation. Be careful though - jview only implements Java 1, NOT Java 2. If you don't require Java 2, then this might work fine for you.
-Mirko

Originally posted by Angela Jessi:
Rohan,Frank,Joe
Thanks for your responses.
Still JRE(1.1) can not feed in one floppy disk. I found one thing, if you have internet explorer above 4.0.And if i don't have any JDK or JRE, i can still work with one command JView. With the use of this command i can run application without JDK OR JRE.Now I want to try this command on diff IE OR NETSCAPE OR MAC OR UNIX.
Thanks
Let me know if you find something very common command
Angela

Angela Jessi
Ranch Hand

Joined: Nov 27, 2000
Posts: 428
Hi All
Thanks a lot for responses.
jview you can use with java 2 applications(I think without swing class)
Thanks
Angela
Mirko Froehlich
Ranch Hand

Joined: Aug 21, 2000
Posts: 114
I don't think this is correct. Sure, many applications that work with Java 2 will also work with Java 1 JVMs, such as Microsoft's jview, but if the application uses any Java 2 specific functionality (for example the new collection classes), it will no longer work in Java 1.
-Mirko

Originally posted by Angela Jessi:
Hi All
Thanks a lot for responses.
jview you can use with java 2 applications(I think without swing class)
Thanks
Angela

Ramon Antonio
Greenhorn

Joined: Jun 06, 2001
Posts: 1
Originally posted by Sivaram Ghorakavi:
If you are sure about the destination platform (like Windows) use free tools available to conver the java application class files to EXE and distribute it as single file. NO JVM required I believe!!!

Hi Sivaram...i would like to know what are those free tools you mentioned and if they improves perfomance too...Thanks
[This message has been edited by Ramon Antonio (edited June 06, 2001).]
Mark Herschberg
Sheriff

Joined: Dec 04, 2000
Posts: 6037
Egads! I wouldn't trust Microsoft Java products to be around next week, let alone next year. Microsoft support for Java is about as strong as Linux support for Windows.
Consider using Java Web Start, although that, itself requires an initial installation.
--Mark
hanumanth reddy
Ranch Hand

Joined: Jun 12, 2000
Posts: 118
checkout http://www.cyberdosti.com


<a href="http://www.jobklub.com" target="_blank" rel="nofollow">http://www.jobklub.com</a><br /> 'Add Job To Life'
jatin rai
Greenhorn

Joined: Dec 27, 2000
Posts: 11
well there's something new. I had read on javasoft.com long time back that told u 2 make manifest file out of your jar file which'll allow u 2 doubleclick program icon & run it without needing 2 go 2 dos prompt. But I feel that u'd still need jre!!!
 
 
subject: Java Compiler and Run times(Urgent)