501 byte By
IGOED at 2007-9-26 1:16:07
Apologies in advance if this is not the correct forum for this posting.I want to ship java Runtime, j2re-1_3_1-win-i.exe and Java3D, java3d-1_2_1_01-win32-opengl-rt.exe with our application/installation. Does anyone know the commands to run these installations in silent mode (i.e. no ...
231 byte By
siv-viv at 2007-9-26 1:17:05
well what im trying is that a java application should read a INI file(initialization file) while it starts , how can i specify a java program to read a INI file when it starts.any help is welcome with utmost gratitude
816 byte By
xulifeng at 2007-9-26 1:19:24
From within and EJB I am trying to cast a serializable object, that was passed into this EJB, to its original type. The process ended with a ClassCastException, even though I have double checked that the object being casted is of the correct type and fully qualified package path. It turns out ...
962 byte By
179 at 2007-9-26 1:29:58
Hi, As part of a thesis for college, I am trying to execute a test java program. The program executes okay and I can read the results okay. Sample code. process = Runtime.getRuntime().exec("java test"); InputStream iOutStream = process.getInputStream();InputStream ErrorStream = ...
Hi Is there any special consideration for a Java Programto work under UNIX.My problem is as follows,I have a Java program say "JavaProg.java". I create its class file under Windows-NT i.e."JavaProg.class" after compiling the java code usingthe command "javac JavaProg.java".Everythings perfect ...
1027 byte By
sgercas at 2007-9-26 1:39:39
Hello,I have problem with Java Plugin 1.3.0. My PC is Windows NT 4.0 workstation with SP6 and IE 5.5 with SP1.I have software which should work with Java Plugin 1.3.0 and Internet Explorer 5.5, but IE 5.5 totally crashes when tries to load Java Plugin and this software.I think, that problem is ...
Hello every one! Iam facing a problem with visualage 3.5 persistence name server with Oracle DB. I configured PNS with oracle driver (thin driver).I could start the pns server, Servlet Engine.I loaded my application with PNS and oracle thin driver is not executing any queries. Without PNS, ...
455 byte By
msenecal at 2007-9-26 1:43:00
I've created an application that launches other Java applications, all running on the same JRE. I've noticed that this results in significant memory savings (60% or more). Performance doesn't seem to be measurably affected, but I've never run more than 4 applications at the same time on the ...
1215 byte By
mundo30 at 2007-9-26 1:44:14
I am trying to use RunTime.exec() to run top on "HPUX".It runs fine, but I want it where you can get all the output/processes from getInputStream();Here is a part of the code:--Runtime rt=Runtime.getRuntime();Process child=null;String snapshot="";child=rt.exec("top -s 50 -d 10800 -n ...
282 byte By
roey at 2007-9-26 1:48:24
windows XP is coming. no JVM.does that mean that a simple user would not be able to run a Java application on his PC?end of Java for PC application?what is a solution for that?should we go and look for another job?roey_b@hotmail.com
I have been coding and testing java apps under windows NT. I have been asked to provide information of all the o/s that support java, to enable platform independence. So for eg, if I were to run my java application on Hp or Sun, do I need different runtimes of java, or is there a common java ...
625 byte By
ChrisNF at 2007-9-26 1:52:20
I am running Win NT 4.0 and I am successfully opening my HTML help using the following code:String command = new String("cmd /K ");command = command.concat("G:\editor\help\index.html");Process p = Runtime.getRuntime().exec(command);However, if I run p.destroy(), the browser window does not ...
564 byte By
berg1375 at 2007-9-26 1:59:12
I am tryig to run a java application on a machine that has both jre1.4 and jre1.1.7 installed on it. I am trying to run the application which was developed in jdk1.4, but am having problems specifying the CLASSPATH.This is what I am trying to do:C:> \jdk1.4\bin\java CartonResearchThis tells ...
HiI have some problem executing class file under UNIX. I have a directory under UNIX,/home/user1wherein I have placed a class file say "JavaProg.class"I execute "java JavaProg" from the above directoryand it generates the desired output. Now, I have another directory,/home/user2wherein I again ...
class math1{public static void main(String args[]){System.out.println("Max of -8 and -4 is " + Math.max(-8,-4));System.out.println("Min of -8 and -4 is " + Math.min(-8,-4));System.out.println("Absolute value of -18 is " + Math.abs(-18));System.out.println("The ceiling of 45.7 is " + ...
Hi all,I am trying to delete a directory using my java code as,import java.io.*;class dirinfo {public static void main(String s[]){deldir(s[0]);}public static void deldir(String st){File f= new File(st);if (f.isFile()){ try{Runtime.getRuntime().exec("del " + f.getAbsolutePath() );return;} ...
Hi, I am trying to execute a dir command using Runtime.getRuntime.exec(). the OS is windows ME. i tried appending command.com/c, c:\\windows\\command.com. but nothing is working. can u suggest a solution?thanks
368 byte By
toonk at 2007-9-26 2:07:02
hallo,I'm starting a process with runtime.exec() like this:Runtime r = Runtime.getRuntime();String[] conv = new String[1];conv[0] = "executablepath";Process p=r.exec(conv);Now I want that the application does not appear and run in background. How do I do this?I'm working with Windows ...
790 byte By
chunyun at 2007-9-26 2:11:15
in my application, I have some buttons to launch browser, under solaris environment, i used the following statement to launch netscape:Runtime.getRuntime().exec( new String[] {"netscape", " http://www.sun.com"});it works as in standalone application, but if i integrate it with some other ...
I am using Java on Unix and would like to use Windows True-Type or Open-Type fonts. Can Java read a Windows true/open-type font (.ttf) file?What should I do to make Java pick up such Windows fonts? How should I name the font on Unix (I mean Unix fonts seems to be named in a ...
388 byte By
Abhi325 at 2007-9-26 2:12:09
Hi!I have Java Web Server 2.0 installed. Until now it was working perfectly. Now i get an error when i start the server 'httpd' saying -"Program c:\JAVAWE~1.0\bin\..\jre\bin\jre.exe exited with code 1c:\JAVAWE~1.0\bin\..\bin\jserv.exec:\JAVAWE~1.0\bin\..\bin\jserv.exejserv: Shutting down ...
1137 byte By
TimRyan at 2007-9-26 2:14:54
Hi, I'm trying to make a JAR file containing a Java application that I can run by double-clicking under windows.Everything works fine, except I get the error "Failed to load Main-Class manifest attribute from TextEditor.jar"I have tried to set up my manifest file to contain the Main-Class ...
94 byte By
rmahale at 2007-9-26 2:19:29
Is it possible to pass value of variables in java as parameter to unix commands?
480 byte By
rampe29 at 2007-9-26 2:19:51
I downloaded JDK 2.0 SE 1.3.1 and Java 2.0 RunTimeEnvironment SE 1.3.1. I created this path d:\jdk1.3.1\bin to enable using commands java and javac in command prompt. What I have to do to enable use jre -cp . Hello command to test my Hello program in Windows JRE?If I now type jre command to ...
235 byte By
LuckyLeo at 2007-9-26 2:22:01
I have compiled all the java file using javac command , but when i tried run the program using javac command , it thrown a excetion:Exception in thread "main" java.lang.NoClassDefFoundError:Why?Thanks
HiI have some problem executing class file under UNIX. I have a directory under UNIX,/home/user1wherein I have placed a class file say "JavaProg.class"I execute "java JavaProg" from the above directoryand it generates the desired output. Now, I have another directory,/home/user2wherein I again ...
292 byte By
davidvvv at 2007-9-26 2:22:20
Hello,I am trying to find an api or something that will give me a list of java processes running on the machine, so that I can see if my java program is running. I happen to need this for NT, but there should be something for the JRE Any ideas?thanks
I have written an application that is on a Time accurate box, if the time drifts the System clock is reset(forward and/or back). I have noticed that when I set the time forward the application doesn't care, However when I set the time back my app stops all threads and waits for the time to ...
Hi All,I'm using SOAP to transfer Java Objects to my application. Everything works great if the client has access to the class file for the object it receives.I get a ClassNotFoundException in my deserializer if the class file is not available on the client.I can solve this problem (I think) ...
297 byte By
chunyun at 2007-9-26 2:35:02
if i want to use hotjava to view html files, and when i click a button or something in application, how can i get an existing hotjava window and update its contents?in Netscape, we have -remote option to find out. Thanks for replying!!! -Frank
863 byte By
mneumi at 2007-9-26 2:36:47
Hi all!Is there any more sophisticated way of getting the memory requirements of objects at run-time?Currently I'm using Runtime.totalMemory()-Runtime.freeMemory() to estimate the memory usage before and after loading the object in question. The difference should be the memory used by the ...
633 byte By
Tamer at 2007-9-26 2:37:14
Hi,I'm new into java development, and I would like to check the following: Now, if i develop a small application, that makes some simple stuff (it's size is around 100k bytes) and i want to distribute it to some users as a stand alone application, I know that the users machine should be ...
3449 byte By
humesr at 2007-9-26 2:37:44
Aug 1, 2001PROBLEM:Upon manual installation of the Sun 1.3.1 JAVA Plug In on a client, our applet will load but can no longer "find" the properties file and throws a MissingResourceException. Otherclass files from our single jar are found OK. No other changeswere made on this machine - only the ...
185 byte By
realwxd at 2007-9-26 2:41:32
Can I get system enviroment variable vlues in Java Programm.For example I set a enviroment variableMy_Home=c:\myhome.Do I have ways to get My_Home in Java Programm.
493 byte By
mghaught at 2007-9-26 2:42:37
I hope this question isn't too basic for the forums but I haven't found an answer after poking around.I have a linux (redhat7) webserver running Apache. I just installed Jakarta Tomcat and MySql today. I am now installing the java environment and I'm wondering if I only need to install the ...
330 byte By
mahlzeit at 2007-9-26 2:45:32
Hi Everyone,I'm quite sure that it is not possible to change the screen resolution from within a running java program. The problem is that my boss won't believe it until he reads it in the spec. Does anyone out there know where to find a anything about it the specs?Thanks in advancejan ...
335 byte By
seigot at 2007-9-26 2:46:27
HI- I created a batch file to do various commands. However, every time I try to run it using:Runtime.getRuntime.exec( BAT );BAT being the path name and batch file in a String.I get an IOException. Is there a way to run another command prompt in the VM so I can run my batch file? ThanksSeigot ...
613 byte By
jcsf at 2007-9-26 2:50:12
I need to run an application from inside java.So, I wrote this code, but the first time I run it, I usedthe 'calc' instead of 'notepad'.Now, it always calls the calculator, not the notepad.Even after closing the application and rebooting de computer.Can anyone help me?Tanks. public static ...
245 byte By
anand000 at 2007-9-26 2:52:03
How to copy 'n' of files and folders from one path like "c:/x/*.*" to "d:/y/*.*"?Please suggest me an idea...I gave Runtime.getRuntime().exec("copy c:/x d:/y");But it doesn't reflect anything...Thanks
1993 byte By
poorani at 2007-9-26 2:55:07
Where I can find the error codes, anybody could help me out this.I have the error message in exec(),err, java.io.IOException: CreateProcess: C:\WINNT\Profiles\ismp001\66409.tmp\TestProductAction.class error=193STACK_TRACE: 19java.io.IOException: CreateProcess: ...
548 byte By
garylook at 2007-9-26 2:59:38
Hello,I am trying to run a GUI I created using the Runtime.exec() command like so:Runtime rt = Runtime.getRuntime();Process p = rt.exec("java myGui");However, nothing happens; my GUI doesn't show up. I've seen a number of articles, most notably one at ...
373 byte By
jbuser at 2007-9-26 3:01:05
I installed jre 1.3.1 and then installed Limewire. When I try to run the runlime.sh script I get the following error,Couldn't find or load essential class `java/lang/Object' java.lang.NoClassDefFoundError java/lang/Object Aborted (core dumped)Any thoughts? I am not very familier with java so ...
816 byte By
TST1 at 2007-9-26 3:02:11
I have this problem with JDK/JRE 1.2.2 as well as with JDK/JRE 1.3. I already posted this about a year ago but didn't get any replies. Although I have only the full JDK installed I think it is definitely a JRE-related problem:I can only run Java apps on Windows NT4 or 2000 if I have logged in ...
347 byte By
rahulman at 2007-9-26 3:02:58
Hi,I want to run a java program on a windows NT server continously. The program should automatically start when the server is started and etc...Does anybody know how to register a java program as a windows NT service? or is there any other way to accomplish my task?Any help is greatly ...
144 byte By
zbnjava at 2007-9-26 3:06:05
hi everyone:how can a java application run when i double-click the *.class files? thanks.zbnjava
1113 byte By
limerdm at 2007-9-26 3:10:32
Greetings, I'm having a heck of a time figuring out why the java Date is off 3 hours from the sysdate on an AIX 4.3 machine (running IBM's JDK v1.30).Yes I've set the timezone specifcally to EST, using -Duser.timezone=America/New_York, and EST.I print out the timezone, it says Eastern ...
729 byte By
tapodaca at 2007-9-26 3:10:40
Here is my objective...I am trying to print from an applet. Everything works with plugin 1.3.1, but if the user has 1.3.0, then the call_javascript() function catches an error>Reset printing pageAttempting to call parent.reloadPrintPage()A java.net.MalformedURLException: unknown protocol: ...
392 byte By
Abhi325 at 2007-9-26 3:12:39
I have JWS 2.0 which had JRE version 1.1.7. I upgraded it to JRe 1.2.2_008, but now I get an error while starting the JWS server -Program c:\JavaWeb~1.0\bin\..\jre\bin\jre.exe exited with code -1073741819c:\JavaWeb~1.0\bin\..\bin\jserv.exec:\JavaWeb~1.0\bin\..\bin\jserv.exejserv: Shutting ...
335 byte By
mcemce at 2007-9-26 3:15:14
Normally this is an selfextracting and selfinstalling EXE-file.But the security in our house does not allow something.Also there is no unattended mode (or I didnt found it)Anyway, I should be able manually to install the content of "j2re-1_3_1-win-i.exe."Any hints ?regardsCharly ...
Hi,Is there any way to load images from JAR file?I am not able to get images to Java application (GUI) from JAR file. If I extract JAR file it is working. Any help is appreciated. Rama Reddy.