About solving the running external bat/scripts probs...

754 byte By fatheadcat at 2007-9-26 9:38:01
It seems that using the java system Runtime you can quite happily execute standard executables, etc, but anything that requires a shell doesn't work! For example, doing:Runtime.getRuntime.exec("cmd.exe /c myBat.bat");WILL NOT WORK !!!!You jave to create the environment shell first then issue ...

Is the exec call thread safe ?

413 byte By raj_2001 at 2007-9-26 9:38:42
I have multiple threads in my java executable accessing this call. The command that I am running within the exec is a ping to another solaris box. I have seen the threads randomly come and hang at this call. I am not sure if it is the exec or the ping itself which does not return. (I have ...

When leaves JRE 1.4 beta status?

322 byte By WHolzner at 2007-9-26 9:44:49
Looking on the JRE 1.4 beta it seems that this version will solve many of our problems in the webbased GUI of a host system.So it will be very interesting when Version JRE 1.4 will be completely available as a product.Beta status is fine for test, but to ship it to customers is not acceptable! ...

Runtime.getRuntime().exec(command)

824 byte By Karma1972 at 2007-9-26 9:54:12
I have to exec the keytool command from a server:MY CODE:String cmd = new String("/usr/local/j2sdkee/bin/keytool -genkey -dname \"cn="+nome+" "+cognome+", ou="+lavoro+", o="+impresa+", c="+stato+"\" -alias cert -keypass keypass -keystore /usr/local/server4/keystore/"+userid+" -storepass ...

Runtime.getRuntime().exec(command)

824 byte By Karma1972 at 2007-9-26 9:54:15
I have to exec the keytool command from a server:MY CODE:String cmd = new String("/usr/local/j2sdkee/bin/keytool -genkey -dname \"cn="+nome+" "+cognome+", ou="+lavoro+", o="+impresa+", c="+stato+"\" -alias cert -keypass keypass -keystore /usr/local/server4/keystore/"+userid+" -storepass ...

Java Stand-alone Application

334 byte By frankie_wg at 2007-9-26 10:03:15
Hi all,I am a beginner of programming java. I want to ask how can I write a java application that can be installed to the Windows and run independently. That means it can run on a platform without Java Run Time Environment. In other words, how to produce a java application with .exeThank you ...

Killing the running process.

336 byte By khiz_eng at 2007-9-26 10:04:38
Hi to all,Can anbody help me , i have two options namely buttons one button creates process(i.e. creating dos window) and next button to close this window but i am unable to get this can anybody helps me.Please respond me quickly as i am very much need of this.Thanks in advance.khiz_eng ...

Stack fault on Win95 with Plug-in 1.3

289 byte By sashax at 2007-9-26 10:05:57
I have installed plug-in version 1.3.1_01 on a Win95 and installation goes fine but when I try to open the Plug-in Control Panel, I get an error "JAVAW caused a stack fault".There are no other versions of Java on the machine. What else could be causing a memory error?

for help!!!

841 byte By javabingbing at 2007-9-26 10:07:10
============I tried to run the sample application provided by the tutorial on MulticastSocket. I use the java2sdk.I get the following error messageException in thread "main" java.net.SocketException: set socket option failed (code=10055)at java.net.PlainDatagramSocketImpl.join(Native Method)at ...

BAD Request / Non Seraializable Object error from HashMap

470 byte By muttu at 2007-9-26 10:08:18
Hi all, I am using jre plugin 13.1_01 for windows with IE 5.5.4.. I have an application which has applets and EJB I use orion application server. At times I get very vague errors saying InsputStream has Non Serializable Object,.. where as the object sent over from the server is HashMap,..This ...

compiling with 1.3.1 and run with 1.2.2

83 byte By rpachipala at 2007-9-26 10:08:19
I have compiled my code with jdk 1.3.1. Can I run this with jre 1.2?

runtime.exec to execute a JAR

559 byte By moni_eli at 2007-9-26 10:12:57
my java applicaction runs in Windows, i have a jar file which i can execute by double-clicking on it. If i execute it with this line since te command window (myjar.jar) it executes the application without opening an MS-DOS window, if i introduce this line ("java -jar myjar") it opens an MS-DOS ...

Is it possible to exec() a file that is in a Jar?

522 byte By BisekJM at 2007-9-26 10:17:03
Is is possible to use Runtime.exec() to execute a file that is contained within a .jar file? Both the code that performs the Runtime.exec() and the executable file are in the same .jar file. It appears that Runtime.exec() requires the executable to be specified as an absolute path, or it must ...

How to get the return value from the console

489 byte By he9079 at 2007-9-26 10:17:27
Hi, all:Inside my java program, I need to use Runtime.getRuntime().exec(cmd) to get some file system information, for example, I need to get some files under certain folder using:Process p =Runtime.getRuntime().exec("CMD /C DIR /O-N /A-D /B C:\\temp");I try using p.getInputStream() to get the ...

Runtime.exec() to invoke a browser and a specific URL ?

430 byte By pranav@infics.com at 2007-9-26 10:18:09
Hi I am trying to invoke a browser by clicking a button on my Application .I want the browser to come up with the URL I decide before i click on the button.To invoke the browser i am using the Runtime class. and then using the Runtime.exec() method .But thats only half the solution.(Loading a ...

Executing the .bat file under java

423 byte By Arvind at 2007-9-26 10:21:21
Hi,I have a batch file which will do some useful stuffslike compilation of jar file, deploying the ejb's underWebLogic container etc.I called the batch file under windows environment, itused to display the console without any processingon it.But similar stuff with shell script works fine ...

manipulate windows registry

118 byte By szulfi_ali at 2007-9-26 10:24:50
hi,I would like to know how to manipulate the windows registry thru java.thank you.

Runtime.getRuntime().exec() on Winnt

976 byte By thoes at 2007-9-26 10:26:53
Hi, I created a signed applet where I ftp down an executable file, then call Runtime.getRuntime.exec(filename); where filename is the full path to the executable. I keep getting a create process error. java.io.IOException: CreateProcessat java/lang/Win32Process.shellExec (Win32Process.java)at ...

Problem with memory not being released after JVM has been stopped

828 byte By dinhm2 at 2007-9-26 10:28:38
Our Java web application runs inside WebLogic Server (WLS) 5.1 SP10 on Sun 420R (4 CPUs, 4GB) running Solaris 2.6. The application uses a fair amount of memory during the day (up to 1.6GB). The JVM (JDK 1.3.1_01a) max. heap size (-Xmx option) is set to 1.7GB. When the application is running, ...

jre

41 byte By dipal1 at 2007-9-26 10:38:06
i need books related to jre

execute bat in java

198 byte By judy333 at 2007-9-26 10:38:20
I tried:Runtime.getRuntime().exec("xxx.bat");When i run this code, i can see the dos window forless then one second, but it don't stays open.What is wrong.

Missing Method Signature In Stack Dump (Java 1.4)

515 byte By Jbeyer at 2007-9-26 10:38:53
I am looking for a way the get the signature of the methods in the call stack. Currently the printStackTrace() or getStackTrace() only allows me to see the method names and not the number of arguments and argument types. How can I get access to these informations at runtime?Is the only solution ...

performance

379 byte By ejbjohn at 2007-9-26 10:39:22
Our site recently launched a major update. The site is tooslow.The app,web,jvm cpu usage is normal( around 40-60).This observation making me think that there is nothing wrongin the application.Can this slow response be due to poor html design, causingbrowser rendering difficult.Any help is ...

A question about running in dos mode

331 byte By dungali at 2007-9-26 10:44:00
I coded a program in jbuilder5,the program includes some AWT control, but when I execute it in msdos mode with "java" command,it reported "Exception in thread 'main' java.lang. NoClassDefFoundError: Frame1(wrong name: untitled1/Frame1) at ......"I don't know why, java isn't independents ...

JRE for IE6

272 byte By sandeep1_au at 2007-9-26 10:47:27
I'm an XP user. When will Sun release a version of JRE for IE6?A JVM is not bundled with XP's IE6 version. It is supposedto be installed "on demand", but it doesn't seem to work.Anyone got any answers,Regards, Sandeep Rajkumar.

Why does entire rt.jar get loaded into memory?

413 byte By timesb at 2007-9-26 10:47:52
We're developing under JDK 1.4-beta2 and are close to releasing to in-house use of our application. One thing noticed is that the entire rt.jar and other jars get loaded into memory equalling ~45MB !! I am amazed if this is 'normal' behaviour. Are we missing some tweak or option grossly ...

why does 8-line loop forever program take 12-38MB memory when run?

304 byte By timesb at 2007-9-26 10:48:10
I have this program: NO classes called in explicitly.WHY does it take 12MB on 1.3.02, 38MB on 1.4-beta2?This is NOT sensible.public class hw {public static void main( String[] args ) {int n;while (true) {n = 1;}}} ...

return stream

314 byte By BucherA at 2007-9-26 10:48:18
I want get the InputStream from a running application.So I can not wait until the program has finished, which I executed with runtime.exec().I think id should be possible to get the InputStream beforthe process finished. Am I right?Please post an example.thx ...

When re-installing JRE 1.2.2 I get an error "can't create JAR file"

406 byte By liebenbergj at 2007-9-26 10:49:20
When I uninstalled Java Runtime 1.2.2 and reinstalling, at the end of the installation I get an error:"Error while creating JAR file.Check you have enough disk space.See c:\winnt\temp\uncrunch.log for details"Only trouble is I've got 14 GB open and the uncrunch.log file isn't even created.Any ...

Connecting terminal device?

224 byte By pandazmo at 2007-9-26 10:49:34
How can I set up the com port.How can I make a contact to a terminal device? It uses ECR ram, I should get data from there. I have an dll from the manufacturer, how do I include it in to my code?

Cannot work with two client side applications at the same time!!

1614 byte By chadorbaf at 2007-9-26 10:49:45
Hi Guys,I developed two client side applications(applets). Locate the on Apache/Tomcat. There is also a Index.html file with two links, so when user clicks on each link the associated application will downloaded on his PC and ready to work. (In index.html I used window.open() to load the ...

Maximum of Threads recommended

154 byte By Stylo_Code at 2007-9-26 10:51:18
Hello,I was wondering whats the maximum number of Threads recommended for the System to run to allow smooth operations?

Help Required for Class Path Setting

125 byte By xionsoft at 2007-9-26 10:52:04
Plz Inform me How I Set Classpath in DOS Environment.as soon as Possible.rizwantasadduq@yahoo.com

.class shortcut execute from desktop

412 byte By al_dc at 2007-9-26 10:55:15
hello everyone,i just need your suggestions on how to configure a shortcut of a .class file. the shortcut is located in the windows 98 desktop. objective is, by double click on the shortcut, the java .class program will run.1. i'm using a pjee3.1 environment.2. i plan to install it in windows ...

Unicode Display problem on Windows 98 and Me

370 byte By anup_pandit at 2007-9-26 10:55:33
Hello to All,I want to use unicodes \u250C\u2514 and\u2502 (Range: Box Drawing)in my application.These unicodes are displaying on Windows 2000 and Win NTbut not on Windows 98 and Windows Me.I am using same fonts on all these plateforms.Please tell me the causes and remedies.Anup Pandit ...

Java application on Terminal Server

227 byte By JonasOlsson at 2007-9-26 10:56:49
We have a full-fledged Java application which weighs in at ~35Mb at runtime. If we were to deploy this on Windows 2k Terminal Server how would the server load look like?Are we talking linear growth or what?

How to execute dos command in Java?

220 byte By andyfai at 2007-9-26 10:57:05
I want to know hoe to execute dos command such as "dir" in java.i dont sure Runtime.exec() can help me or not!Please help me and tell me where can find tutorial about this thing! thx~

java -DXXXX where can I get all of them

252 byte By dimitrovnikolay at 2007-9-26 10:57:31
I'm interested in getting all the system properties that java command can take ?Tryied to find a site with such info but I only found some rmi properties (setting a proxy and port made me seach for this...)thank you!

copy file between servers, passing on firewall

588 byte By sombrio30 at 2007-9-26 10:59:19
I'm try copy a file between servers with Windows NT. I mapping the target server to drive X and test copying a file in windows explorer and command window and the files copy is OK. But if I try with a java class don't. I'm try with FileInputStream (read) and FileOutputStream (write) but ...

Setting up classpath in the program

657 byte By houyiming2001 at 2007-9-26 11:01:31
Hi: Given a full path of one class file,I intend to load it byClassLoader.I append its directory to the classpathproperty by calling the method "System.setProperty("java.class.path",System.getProperty("java.class.path") + ";" + directory);", but at last the ClassLoader object failed to load the ...

Run Time Enviroment for Pocket PC

71 byte By timdinh at 2007-9-26 11:01:44
Is there a Java Run Time Enviroment or JVM for Pocket PC?

Please help with executing the c-shell script by using the exe class

336 byte By tho_619 at 2007-9-26 11:06:34
I try to use the exec class to execute a c-shell script in my java gui program like this. But I don't get anything when clicking on the start button.here is my code: Runtime r = Runtime.getRuntime();r.exec("./DDMReportEvents"); ./DDMReportEvents is the name of the c-shell script. ...

Please help with executing a java program from another java program

487 byte By tho_619 at 2007-9-26 11:07:13
Hi, I have tried to execute a very simple java program which is printed out "Hello world" from another java gui program when the user click on the "START" button. However, I don't receive any print out on the terminal when they click it. These two programs are being developed in Unix ...

Error outofmemory

409 byte By vijava1 at 2007-9-26 11:07:32
Dear all,My program 1. Reads large number of files (>5000)2. String tokenize them to get individual words 3. Put them into a vector4. Parse the vector to calculate term freq and document frequency...I am getting OutOfMemory error in the second step. How can I solve this?Should I increase the ...

Swing applet

565 byte By pcaruthers at 2007-9-26 11:08:01
I've been trying to get my browser (Netscape 4.77 on Windows NT) to run swing applets. I've gotjre 1.3.1 installed and it said it got the plugin,but when i try to run the test applet at the urlwww.java.com/products/jfc/tsc/articles/getting_started/applet_test.html i get an error message ...

How to terminate Windows dial-up Network session

611 byte By Mark Waage at 2007-9-26 11:08:28
Need help terminating a Windows dial-up network session from my Java application demo. The application runs on an unattended PC and periodically initiates a Dial-Up networking session, in order to send an email.I'm binding a Process variable to the output from...<runtime>.exec("rundll ...

Netscape 6 Plug-in Error

536 byte By NormanFx at 2007-9-26 11:09:23
I have a Netscape 6 Plug-in Error with Java 1.4 Beta 3. Basically when I attempt to put a check beside the Netscape 6 browser box in the browsers tab in the Java Plug-in applet in the Control Panel and then I click apply, it says unable to change settings in Netscape 6. Please check to see if ...

All java applets fail

3060 byte By JDWomack at 2007-9-26 11:15:31
when using Mozilla 0.9.x or NS6.x with Sun Java 1.3._01 or 1.3.1 on a WinNT 4.0 sp6 machine all applets fail. I have yet to see the Sun Java run-time enviornment work at all. Below is the typical error message I get. Can someone help me figure this out, it is driving me nuts (and back to ...

java -classic?

266 byte By tidenbz at 2007-9-26 11:16:02
Hello,I am doing my assignment. There is a question about thedifferencebetween "java filename" and "java -classic filename."In filename, there are several threads runningsimutanously.Any ideas?Duy

Got a big problem with jsdk

373 byte By Aussiehero at 2007-9-26 11:16:25
Could someone please help me....when I install the java SDK on my computer (any version) it will not compile files that use inhertances (I have tried everything!) I is really annoying, thanksP.S. Do you have any idea how annoying it is to use a keyboard that's spacebar doesn't work? well let ...