how to change the url in the opened IE?

277 byte By c9010003 at 2007-9-26 18:16:35
Dear sir,as i have use the runtime to open a IE in my application, but i want to close it. Anyone can tell me the method?more over i want to get back the modified url in a IE which opened by my java programming? Anyone can help me? Urgent, thx a lot

Read RAM Size of the PC

365 byte By balaji68 at 2007-9-26 18:17:21
Could you please let me know how to read the complete RAM Size of the hardware. I used Runtime object's totalMemory() function. It just shows 2MB (which should be the *runtime* memory) instead of real 128 MB which is the hardware configuration. How do I read the *really* available memory - ...

Magic Number

59 byte By milinddev at 2007-9-26 18:17:23
What is the magic number in java class format

InetAddress.getHostName returns null in Win95

468 byte By PhilSeastrand at 2007-9-26 18:20:52
I have an application that is calling InetAddress.getHostName expecting to get the host name for the local computer. On a small number of Win95 systems this call is returning a null value. I'm using JDK1.3.1. I've examined the problem computer for obvious configuration problems but haven't ...

JRE1.3.1

309 byte By Chardenay at 2007-9-26 18:24:48
Hi ThereI would like to know if there is a jre1.3.1 for the following platforms and where may I download it from. Unix SCOIBM AIX, OS/390, OS/400LinuxPlease excuse me if I don't know much. But this part is very new to me.Yours sincerelyChardenay ...

Which Runtime Environment?

624 byte By merciless at 2007-9-26 18:30:09
I came across some problem which trying to get my Java Comm API to work. I placed the required files into the respective folders in my <JAVAHOME>. But it turns out that the JRE that is executing is the one installed inside the JavaSoft folder inside ProgramFiles. A check on the Java ...

Problem with Process deadlock

319 byte By helloyogi at 2007-9-26 18:30:35
I have a programme where in am creating a process of a linux mkpasswd command.But sometime the process doesnot return the password and goes into a deadlock.Is there ny way to avoid such a situation.I am using the input stream of the process to read the password but the process doesnot ...

Interpreting "java -verbosegc"

461 byte By b_praseed at 2007-9-26 18:31:20
Hi,when i ran my program with -verbosegc it gave the following output.[GC 62716K->60841K(65280K), 0.0247347 secs][GC 62889K->61013K(65280K), 0.0237709 secs][Full GC 63061K->61186K(65280K), 0.8604262 secs][Full GC 65279K->63249K(65280K), 0.8943992 secs][Full GC ...

How can I launch a web browser from my Java application?

449 byte By jeca at 2007-9-26 18:32:43
I've reed about this at Question of the Week ( http://developer.java.sun.com/developer/qow/archive/15/index.html). It doesn't work for me. I'm running win2000 and trying:try {Runtime.getRuntime().exec("start iexplore http://java.sun.com");} catch (Exception e) {System.out.println( ...

How does JAVA handle Imports in terms of performance at runtime?

439 byte By sanandikar at 2007-9-26 18:35:05
I was wondering if any one knows is there a performance difference in Java runtime if I write import A.B.*;instead of import A.B.C;in my porgram where A and B are packages and C is class. what i am asking is will at runtime it resolve the actual calls path when i give * instead of class name ...

Help J2sdk1.4.0-beta3 problem. its urgent!!!!!!!!!

462 byte By becky182 at 2007-9-26 18:35:36
When i try to compile my java source code on windows 2000 MSdos, i get thefollowing error messages:-.Registery key Software\JavaSoft\java Runtime Envinronment\Current Version hasvalue 1.3, but 1.4 is required.Error: could not find java.dllErrror: Could not find Java 2 Rntime Envinronment Pls ...

How do I access Operating System's Environment variables using Java

257 byte By patelmahenc at 2007-9-26 18:38:49
How do I access Operating System's (Unix) Environment variables using Java. I tried System.getProperties(). But, it has only standard ones. I need to access all user defined environment variables in addition to standard environment variables.

Application launcher

596 byte By oceank2 at 2007-9-26 18:45:17
I'd like to know what is the best way to launch java application for common user under Windows.Actually i build a link on the windows office whith the properties :"C:\Program Files\JavaSoft\JRE\1.3.1\bin\javaw.exe" -classpath .;JAQEdit.jar;"C:\Program ...

java runtime damaged

354 byte By pigge162000 at 2007-9-26 18:46:39
Java Runtime Environment 1.3.1Damaged1,3,1,0 http://java.sun.com/products/plugin/1.3.1/jinstall-131-win.cabThis is the message I am getting when I go into System Information and I don't know how to fix it. If I try to go to certain websites I get a black screen and then the machine ...

how to know which browser in invoked

201 byte By anilkumarsh14 at 2007-9-26 18:48:26
Hican any body tell how can we know which browser is invoked at the runtime also it should to on different platformsurgent helpanybody as a solutionanil

Calling Java Application from another

320 byte By infojava1 at 2007-9-26 18:50:22
How can i call a Java Application from another java App.eg., If my Java application is called *MyApp* and i would like call another java application from within it.One way could be by using "System". I would like to know if there is any other method and is portable.Thanks in advance. ...

start a daemon process from a java app

400 byte By tryjavaapp at 2007-9-26 18:52:42
Hi,Is there any one who knows how to start a daemon process (listening on a certain port) from a java app ?I tried various options with Runtime.exec("..."). It works with simple processes like "dir", "cd", "iexplorer", ...But it would not work when I tried to start this daemon process, which ...

Executing class files from a Java App dynamically

529 byte By infojava1 at 2007-9-26 18:55:27
Hi!, Is there any way i can execute java .class files from my Java Application dynamically. I know that java uses Dynamic method Invocation. Is that true of class files generated using some other language compiled for the JVM.In my case i would like to make a Web browser that interprets HTML ...

multiply JVM/hotspot

168 byte By lantnguy at 2007-9-26 18:59:48
If I run 4 different java programs or applications how many JVM will be spawn. I think just one instead of four. Is this correct? Thanks Lan

Segmentation Fault

880 byte By rajesh_nair at 2007-9-26 19:03:13
Hi All,I'm getting the following Segmentation Fault error when i tried to run my java Application.My Application is using Xerces parser and some Clarify objects(CBO).$ java BasicDOMCreating the Application object...Creating the Session object...Logging in...Creating the FormContext ...

Printer Resolution

501 byte By GTed at 2007-9-26 19:04:29
We are using JRE 1.4.0 beta2, and having problems with poor printed output from an applet we are running. I am aware of a 72 dpi resolution limit in earlier JRE's, but thought that this problem had been resolved. Can anyone tell me whether there is still a problem? Another problem (though ...

Calling system commands

544 byte By bastan at 2007-9-26 19:04:40
Hi all. I need to call a process from command line. The following code works with windows 2000 but not with windows 98. try {String [] cmd = {"command.com","/c","dir"} ;Process m ;String S = "" ;m = Runtime.getRuntime().exec(cmd) ;BufferedReader in = new BufferedReader(new ...

size of the object

223 byte By dev_mala at 2007-9-26 19:04:46
Hi all , I want to get size of the object , I mean how much total memory given to an object at runtime...I could not any Method in RunTime and System classes ..Help pls,-Mala

Blocking with runtime.exec(

1064 byte By kimoh at 2007-9-26 19:10:46
Hi, I've tried to execute the jdk1.4's keytool.exe programfrom my java code as below.I typed "java MyProgram keytool" on the console,and the process blocked, i think. What I expectedwas a list of options printed back to me, sincekeytool requires parametersexecuting "java MyProgram keytool" ...

Problems with silent installing of Java Plugin

1167 byte By Peio at 2007-9-26 19:13:42
Hi everyone i'm trying to do a silent installing of java plug-in, i have the jre 1.3.1_02 and i have used it as descriven in java.sun, i have created the .iss file as follows:[InstallShield Silent]Version=v5.00.000File=Response ...

DateFormat is not sensitive to Windows locale setting

355 byte By nremarck at 2007-9-26 19:19:11
Hi all,The DateFormat is not sensitive to Windows locale setting, that's why this piece doesn't work correclty.This bugs is already know (#4514389)SimpleDateFormat dateFormat;dateFormat=((SimpleDateFormat)DateFormat.getDateInstance(DateFormat.SHORT));Anybody knows a workaround ?Many thanks ...

Applet Printing under JRE 1.3.1_02

2280 byte By microneering2 at 2007-9-26 19:20:27
It works under 1.3.1_01, but not _02.Toolkit tk = this.getToolkit();PrintJob pj = tk.getPrintJob(null, "FormViewer", null);if (pj == null) {System.out.println("Error opening print job");resetCursor();isPrinting = false;return;}Graphics page = pj.getGraphics();Dimension pageSize = ...

Speed...?

555 byte By Fishman489 at 2007-9-26 19:22:04
Hi, this isn't a programming related question, but I have a problem with my java runtime environment (I think). I play a java based game called Runescape (www.runescape.com) and it's extremely choppy and the people on it skip instead of walking. I downloaded the Java 2 SDK Standard Edition ...

JRE 1.3 for a Mac?

510 byte By Chippy1 at 2007-9-26 19:22:19
I downloaded Netscape 6.2.2 on my iMac. Now I can't get into any chat rooms or play Yahoo games, or any interactive sites. They ask for a plugin. But they don't tell me which plugin. The owner of a chat site said I need JRE 1.3....I can't find it to plug it in. I called Netscape tech ...

What do I need?

1088 byte By Dynamo at 2007-9-26 19:24:42
Hello all.I am very new to Java. I have just created an applet that runs fine on my PC (with the J2 SDK installed), however when I try to run the applet on another PC, it wont work, I get an error message in the MS IE java console saying something about not finding the swing files. I have just ...

ClassPath problem

1521 byte By mrbd at 2007-9-26 19:26:16
Hi allI have an applet and that uses some classes from a package UIPack. Both the applet and UIPack directory are in the same directory. It works well with applet viewer, but when i tried to load it using IE 6, the applet loads alright but fails to use any class from UIPack.I have imported all ...

A silly question about classpath!

470 byte By linas1 at 2007-9-26 19:29:06
Hi,everybody:I'm a new JAVA programmer and I wanna ask a silly question:I used JBuilder4.0.And after I finished doing a JAVA servelet,I have to make it into .class file.But when I do this,an error pointed to my first statement:import javax.servlet.http.*;I do know that I have to add something ...

Memory used exceeds JVM heap settings

62212 byte By eis-project at 2007-9-26 19:33:30
Hi,I have trouble understanding the relationship between the memory used by a jvm process and the heap size one can set in the java command line.We're launching a process with the following settings -server -Xincgc -Xms1280m -Xmx1280m -XX:NewSize=320m -XX:MaxNewSize=320m ...

WHEN WILL JRE1.4 BE AVAI. AS PROD RELEASE

132 byte By rudegal at 2007-9-26 19:35:35
hi ..anyone know when JRE1.4 will be available as production release? can't seem to find any dates anywhere...

executing perl/c modules from java appln

279 byte By madhunavin at 2007-9-26 19:36:26
Hi,I need to integrate some modules written in Perl/C/C++ , which take a filename as input and stores the ouput in a file. I need to provide the interface in Java. Plz let me know how to execute perl or c++ file with input parameters.Thanks in advance

Sun's demo applets - ClassNotFoundException

3384 byte By Kirner at 2007-9-26 19:38:25
After installing the newest plug-in (international version 1.3.1_02) on a Windows 98 ME computer, i can't get the demo applets from sun.- No previous versions of the plug-in installed;- no LAN.- dial up connection to the internet.Thanks in advance for your help!JosefThis is one of the demo ...

try to run ftp via exec

331 byte By tilecal at 2007-9-26 19:54:34
I try to run ftp via RunTime.exec(String[] s) method.sl[0] = "cmd.exesl[1] ="/C";sl[2] = "ftp";sl[3] = "-s:bin\\comand.bin";try {Process p = Runtime.getRuntime().exec(sl);p.waitFor();} catch (Throwable t) {}The ftp just stops and I don't knew why ...

What's the problem with the URL

834 byte By hiOLGC at 2007-9-26 19:56:05
Someday when I entered an URL into IE browser, I typed like http://greatsite./greatday. Unfortunately, after that, every time when I enter a URL into IE like http://greatsite/someday, it will change to http://greatsite./someday automatically, then the error page below is followed. What's the ...

Why is did two JRE's load from SDK?

360 byte By wsalomon at 2007-9-26 19:56:07
I've just set up the SDK 1.3.1 and have found the the JRE files have been loaded in 2 places, one under the c:\JDK1.3.1, the other under C:\Program Files\Javasoft. Are both necessary, or can the Javasoft copy be safely deleted.Also in the Control Panel Java setting what is the "Default" ...

Need to completely uninstall JRE 1.3.1

550 byte By ScottDF at 2007-9-26 19:57:45
Installing JRE 1.3.1 on a Win2k SP2 machine causes a 16bit application to fail with a "not enough space for environment" error. Uninstalling JRE 1.3.1 does not solve the problem. I can repeat this at will using a machine with only Windows 2000 installed. The problem only appears when the Path ...

Java Plugin in IE

375 byte By StephanM1 at 2007-9-26 20:02:20
Hi,I check the IE with Java Script Codecodebase="plugin/j2re-1_3_1_01a-win-i.exe#Version=1,3,1,1....for the right Java RE Version.But the code checks if the Version is equal 1.3.1.1.I want to check if the Version is 1.3.0.1 or creader.Who can help me with the right statement to check this ? ...

run-time error scrolls from screen

307 byte By fransre at 2007-9-26 20:02:40
One of my Java programs generates a run-time error that is much longer than 25 lines, because it is generated deep in down in the program. But now it scrolls from my screen. Piping to more does not help, because the error is printed to stderr and not to stdout. Anyone knows how to solve this? ...

how to increase JVM memory.

275 byte By mahajan_aruns at 2007-9-26 20:11:21
Hi,I am creating a chat application in java.It goes very slow as number of users logged in increase.Is there a way to avoid this situation.Can this be done by increasing JVM memory.If yes, can anyone tell me the way to do that.Thanx.

Differences of "java" and "javaw?"

221 byte By nawapunth at 2007-9-26 20:11:50
I want to know that except loading the Java Console, what is the difference of loading an application from "java" and "javaw." Is the memory usage differnt? Is the number running process on the OS different?

Memory Leak

724 byte By buatapa at 2007-9-26 20:15:46
I have a java app running on a Sun box 365x7x24. However, The app crashes (became extremely slow in performance and one of the processing threads seems to stop working) every 3 days due to memory leak problem. When I look at the log file and it seems like there are a lot garbage collections ...

Java Run Mode

120 byte By tomym at 2007-9-26 20:19:47
Can any one tell me, In Window NT environment Java is running in 16 bit or 32 Bit mode ? Tomy

Java run time evnironment- Install?

462 byte By jawaharR at 2007-9-26 20:28:31
I have Win2k as my OS When I down load the Java Runtime environment, where do i install it?Does it have to be in the same directory as my current Java_home directory (where the J2SE) is installed.OR does it have to go in Program Files/ Javasoft/I see that at the java.sun.com site there is ...

Exception in thread "main" java.lang.NoClassDefFoundError: Exercise5_1

459 byte By sobeya at 2007-9-26 20:28:43
I installed java 1.3.1_02 on my PC running Windows 2000. I can compile fine, but when I try to run I get the above message. I know my program works because I am taking a class and the program runs on the PC in my classroom but not on my own laptop.I have set the Windows path variable to point ...

Applet not loading ... 2 JREs installed

666 byte By pradeepz at 2007-9-26 20:32:43
Hi all,I have a problem when I'm trying to access a web site which has some applets in it. For some reasons the Applet is not loading and it throws out a java.lang.classNotFoundException. But I saw that that applet is loading on other computers. I was also able to access the same web site ...

Runtime environment problem

126 byte By dpkus at 2007-9-26 20:37:20
how can i activate modem from my java programme and how can i get the properties of modem from my java programme