Re: please help me
- From: Simon <count.numbers@xxxxxx>
- Date: Fri, 19 May 2006 13:10:26 +0200
mo_sql schrieb:
Good morning
I have a jar file which I want carried out since an interface java
created with Jdeveloper. Which is the instruction to be used and which
is the step to be followed?
I used :
Runtime r = Runtime.getRuntime();
Process p = r.getRuntime().exec("java -jar
C:\\Jdeveloper\\bin\\name.jar");
But the window of the file launches out and is established after a few
seconds.
What do you mean by window? A command shell (or whatever that is called on
Windows) or a Java Frame or JFrame?
Maybe try to access the Process' input/error streams and exit code to figure out
more about a potential error?
Does "java -jar C:\Jdevelopwer\bin\name.jar" work at the command prompt?
If you do not want to fork a new java process, you can also consider to load the
class in your JAR using a ClassLoader, finding the main class and calling main()
on it, possibly using reflection. Or simply add the jar to the classpath and
just call main() if you know the class name at compile time.
Cheers,
Simon
.
- References:
- please help me
- From: mo_sql
- please help me
- Prev by Date: Re: Exception externalization
- Next by Date: eTrust antivirus gateway
- Previous by thread: please help me
- Next by thread: Re: please help me
- Index(es):
Relevant Pages
|
Loading