Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Running a .jar from a C# program...

807600Sep 6 2007 — edited Sep 7 2007
I'm posting this question in a C# forum as well, but I thought I'd post it here as well because I suspect this might be a Java problem as much as it is a .NET / C# problem.

I'm trying to run a .jar program via a C# program. I've created a C# program that will run and successfully call the .jar. That's the easy part. However, when the .jar is called, nothing happens. I created a .bat file that will run the .jar file so it will open a command prompt (so I can see what's happening). I changed my C# program to call the batch file. The batch file opens, executes, and gives me an error message. The error is: "Unable to access jarfile myProgram.jar"

Any ideas on what my problem may be? Am I going about this completely the wrong way? Do I need to do something specific to allow the .jar to run?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 5 2007
Added on Sep 6 2007
10 comments
1,163 views