0

I have created a batch file containing Java file locations :

"% C:/location..."

Now , when I double click this file, it opens up eclipse with this java class inside.

What I want is that this file also should get executed by clicking the batch file, and after that, the rest of the classes in this package should get executed.

How can I do this?

IAmMilinPatel
7,7667 gold badges44 silver badges68 bronze badges
asked Jun 7, 2016 at 10:46
1
  • why are you opening "eclipse "? without opening also you can execute your test cases. Commented Jun 14, 2016 at 5:43

1 Answer 1

2

If I understand your question correctly you try to run the java file and not the compiled code. Try exporting your project as an executable .jar via eclipse and run this via "java -jar FileName.jar". Regarding the second part of your question though, I ́ve got no idea what you were trying to say.

answered Jun 13, 2016 at 15:59

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.