The Artima Developer Community
Sponsored Link

Java Answers Forum
running ant from an java2exe converted file

5 replies on 1 page. Most recent reply: Aug 9, 2004 12:12 AM by Vaibhav

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
lakshmipriya

Posts: 3
Nickname: priyabose
Registered: Jul, 2004

running ant from an java2exe converted file Posted: Jul 12, 2004 10:34 PM
Reply to this message Reply
Advertisement
hai friends,

I wrote a program in java to call a batch file containing ant run statement. If I run the java pgm in command prompt I get the result. The same thing if I do using an exe file of the java pgm (exe got by converting java class file to exe using java2exe) it is not running. I think it may be due to classpath. But I'm unable to solve it. Can any one of U give me an idea to solve this.

Regards,
priya.


Sunitha C S

Posts: 20
Nickname: sunics
Registered: Dec, 2003

Re: running ant from an java2exe converted file Posted: Jul 26, 2004 4:34 AM
Reply to this message Reply
Hello,

in the system environment variable, add classpath to the directory in which the class file reside. the u try to run the exe.

sunitha

Mathew

Posts: 6
Nickname: mam
Registered: Jul, 2004

Re: running ant from an java2exe converted file Posted: Aug 5, 2004 7:22 AM
Reply to this message Reply
r u lakshmipriya from kottayam..
Actually how u created the batch file.?

lakshmipriya

Posts: 3
Nickname: priyabose
Registered: Jul, 2004

Re: running ant from an java2exe converted file Posted: Aug 9, 2004 12:08 AM
Reply to this message Reply
hai sunitha,

Thanks for ur response.
Actually I have set the classpath. Eventhough if I run the exe file it doesn't work.

As I have told earlier it runs if I directly run the class file or even jar file. Only the exe file converted from a class file is not executing.

priya.

lakshmipriya

Posts: 3
Nickname: priyabose
Registered: Jul, 2004

Re: running ant from an java2exe converted file Posted: Aug 9, 2004 12:11 AM
Reply to this message Reply
hai Mathew,

Sorry, I'm not from Kottayam.

What do u mean? Whether batch file creation or content of my batch file.

priya.

Vaibhav

Posts: 4
Nickname: vaibhz
Registered: Aug, 2004

Re: running ant from an java2exe converted file Posted: Aug 9, 2004 12:12 AM
Reply to this message Reply
Check for classpath after executing the exe in a command window... amy this might help.

But beware of using the .class to .exe converters as they are not completely trust worthy

Flat View: This topic has 5 replies on 1 page
Topic: what is this jar command for Previous Topic   Next Topic Topic: Runtime.exec() .. another question.

Sponsored Links



Google
  Web Artima.com   

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