The Artima Developer Community
Sponsored Link

Java Answers Forum
create a batch-file

5 replies on 1 page. Most recent reply: Dec 7, 2002 8:54 AM by Thomas SMETS

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
Markus Hort

Posts: 3
Nickname: maho
Registered: Dec, 2002

create a batch-file Posted: Dec 4, 2002 10:58 PM
Reply to this message Reply
Advertisement
Hi

I have the developper-programm eclipse (v2.0.1). I did a *.java-File. It is compiled. Now I should do a batch file (*.cmd) in Windows2k to run as himself. How can I create this file? Where can I do this?
Thank you for your informations

Greetings
Markus


Lawrence

Posts: 5
Nickname: arabian
Registered: Dec, 2002

Re: create a batch-file Posted: Dec 4, 2002 11:56 PM
Reply to this message Reply
create any batch file xyxFile.bat, put the line

java MyCompiledFile


Save and close the .bat file and type in the batch file name from the prompt.
it should launch your application.

Markus Hort

Posts: 3
Nickname: maho
Registered: Dec, 2002

Re: create a batch-file Posted: Dec 5, 2002 1:27 AM
Reply to this message Reply
Hi
Sorry, first time, thank you very much.
But how and where have I to create this xyxFile.bat?
My Developper-programms name ist eclipse (v2.0.1) and I'm learning the java programming.
Have you an example?
Can you give me a message to mhort@fhzh.ch?

Thanks a lot.

Greetings
Markus

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: create a batch-file Posted: Dec 5, 2002 10:05 AM
Reply to this message Reply
Even better, if you associate java.exe (wherever it is) to .class files and add .class to the PATHEXT environment variable, you can run java class files as if they were native programs, without any batch file.

Matt Gerrans

Posts: 1153
Nickname: matt
Registered: Feb, 2002

Re: create a batch-file Posted: Dec 5, 2002 10:07 AM
Reply to this message Reply
(oops -- didn't close that italicalizer)

Even better, if you associate java.exe (wherever it is) to .class files and add .class to the PATHEXT environment variable, you can run java class files as if they were native programs, without any batch file.

Thomas SMETS

Posts: 307
Nickname: tsmets
Registered: Apr, 2002

Re: create a batch-file Posted: Dec 7, 2002 8:54 AM
Reply to this message Reply
Use the Preview button Matt !
;-D

Thomas,

Flat View: This topic has 5 replies on 1 page
Topic: Broadcast and netmask using java Previous Topic   Next Topic Topic: Servlets

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use