Results 1 to 6 of 6
- 10-24-2008, 06:32 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 34
- Rep Power
- 0
Does the JRE come with command to run?
Hi, I know that I have not posted here for awhile, but I have a question something dealing with the JRE. I have created a program that only runs through the terminal/Command Prompt and while I know that is possible to turn it into a GUI application, I feel that there is no need to do so. I was wondering, does the JRE come with the "java" command or is it only the JDK? I have so far created a shellscript that runs on a Mac and a linux machine, but those had the ability to make Java programs. I was thinking of making an executable script for the Windows platform, that will execute the jar file for them.
- 10-24-2008, 06:35 PM #2
Senior Member
- Join Date
- Sep 2008
- Posts
- 135
- Rep Power
- 0
Yes, the JRE comes with a java executable
- 10-24-2008, 09:12 PM #3
The JRE installation on Windows should set the command to be executed when a jar file is "opened": java -jar <jarfile>.
The jar file should have a manifest file with the Main_Class: entry.
- 10-24-2008, 11:27 PM #4
Member
- Join Date
- Sep 2008
- Posts
- 34
- Rep Power
- 0
- 10-25-2008, 12:33 AM #5
Senior Member
- Join Date
- Sep 2008
- Posts
- 135
- Rep Power
- 0
- 10-25-2008, 01:00 AM #6
Member
- Join Date
- Sep 2008
- Posts
- 34
- Rep Power
- 0
Similar Threads
-
jsf command link
By Srikala in forum JavaServer Faces (JSF)Replies: 1Last Post: 06-25-2009, 09:03 AM -
Edit Command
By viji83 in forum New To JavaReplies: 1Last Post: 08-15-2008, 04:26 AM -
command
By dirtycash in forum New To JavaReplies: 8Last Post: 01-02-2008, 08:52 PM -
command help
By dirtycash in forum New To JavaReplies: 1Last Post: 12-05-2007, 01:24 AM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 01:23 AM
Bookmarks