 |
 |
How to get a Java program to run in Windows 2000
|
 |
|
 |
|
Junior Member
Join Date: Dec 2003
Location: New Jersey
Status:
Offline
|
|
A few weeks ago I wrote a SQL beautifier in Java. I want to use it at work, where we frequently are our looking at SQL statements. My PC at work doesn't have the Java developer Kit that is installed on my iMac at home, so I'm wondering if I can convert my program into an executable that can be run in Windows 2000.
|
|
MacBook 2.4 GHz
Mac OS X 10.5.8
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2004
Location: Downtown Austin, TX
Status:
Offline
|
|
You could get an exe packager for your main class/jar file, or you could bundle it into an executable jar. Or you could write a simple batch script to execute your main class file, something like
'C  j2sdk\jre\bin\java.exe C  programs\sqlbeautifier\Main'
assuming you have java.exe installed in the above location and also your classes in the above location.
Woowhahs.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status:
Offline
|
|
|
|
|
signatures are a waste of bandwidth
especially ones with political tripe in them.
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Dec 2003
Location: New Jersey
Status:
Offline
|
|
Originally Posted by jamil5454
You could get an exe packager for your main class/jar file, or you could bundle it into an executable jar. Or you could write a simple batch script to execute your main class file, something like
'C:\j2sdk\jre\bin\java.exe C:\programs\sqlbeautifier\Main'
assuming you have java.exe installed in the above location and also your classes in the above location.
Woowhahs.
Could either of the above options be done without installing the JDK?
|
|
MacBook 2.4 GHz
Mac OS X 10.5.8
|
| |
|
|
|
 |
|
 |
|
Junior Member
Join Date: Nov 2004
Location: Michigan
Status:
Offline
|
|
You've probably already done this but I'll say it just in case:
Have you checked if the machine has the JRE installed? You don't need the JDK since you won't be recompiling it at work. I believe (someone correct me if I'm wrong) the JRE is what gets installed when you install the java plugin for IE (pretty standard to have it, hopefully your company does). I think going to www.java.com will tell you if its installed or check C  Program Files\Java or C  Program Files\JavaSoft for it.
otherwise, search google for "java exe maker" and you should find plenty of apps to do the job.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Dec 2001
Location: Atlanta, GA, USA
Status:
Offline
|
|
Originally Posted by apostacy
Could either of the above options be done without installing the JDK?
Well, there are some native Java compilers. But I suspect that you'll find them more trouble than they are worth.
|
|
Mac Pro 2x 2.66 GHz Dual core, Apple TV 160GB, two Windows XP PCs
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |