Win a copy of Rust Web Development this week in the Other Languages forum!

NageswaraRao Karra

Ranch Hand
+ Follow
since Nov 12, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by NageswaraRao Karra

hello,
try this
r.exec("javac source.java");//give space and only as one string
if the source.java is in the same directory or give full path like
r.exec("javac C:\mydir\source.java");
20 years ago
Hello Adnan!
for compiling yr. java files with package notation intact use the following.
c:>javac -d AnyJavafile.java
then it creates a directory structure with yr.package name as parent to the class file.
for execution of such class files
use the following
java package.anyclassfile
Nageswara
20 years ago
Hello!
add test directory to the classpath and try
-Nageswara
20 years ago
Hello!
change like this
import java.io.*
_______________
Process p=rtime.exec("java HelloWorld");
use p.getInputStream() method
read from InputStream till it is empty
Print it on to the System.out with the help of OutputStream
____________________________
hope this is what you wanted
20 years ago
Hello!,
The problem is Float.parseFloat("...") method is since JDK1.2.
the server may be supporting only jdk1.1....
hope it is clear.
20 years ago
Hello!
i think it is not an error.why don't you continue running yr.application and see?
20 years ago
Hello!
This may be due to currupted classfile.
i think if you compile java files again it may work out.i solved this problem only by recompiling
20 years ago
hello!
only *.au files can be played with yr.code.
i tried many times with other files but with no output.if you play any .au files it will work.some of them are in jdk demo directory.
for other files i think there is no support with the packages you imported.may be javax.sound.* may be helpful to you.
20 years ago
Hello!
is it not necessary to mention the driver you are using in auth.properties file if it is other than cloudscape database?
correct me if i am wrong
hello!
after setting classpath in autoexec and executing it,at dosprompt type set command.then observe the classpath settings
which will be displayed.i think there will be no (semicolon)space between two classpath settings.
so try in autoexec.bat the following
set classpath=%classpath%;C:\javawebserver2.0\lib\servlet.jar
hope this works
20 years ago
hello!
the exception is nullpointer exception.
to get the deploytool again you may try the following.
-find delete .ear files you have created for yr.application deployment(in the directory you mentioned while deployment).
-find and delete .jar files (which will be starting with yr.application name).these files will be in -
C:\j2sdkee...\repository\computername\applications....here delete all the jar files which are particular to yr. application.
there are still jar files in \repository\gnrtemp\...
here also delete the jar files of yr.applications.
-delete log files.
-still there is another directory you have to look for.
C:\windows\j2eedeploytool\...
here there will be yr.application files.delete them.
if you do all these you can start the deploytool even without warnings.
-there is another way of doing this.execute cleanup.bat in j2sdkee...\bin directory after shutting down the server.but to what extent it does i don't know.
pl.verify the directory structure and names.
only thing when deleting just be careful
that's all deploytool can be run
Hello!
try http://localhost:8000/
it will automatically load the home page.you need not type index.html.
the port number is 8000 not 8080.
you may start the server with the following command so that you know at which port server is running
j2ee -verbose
hi!
there is a class file called DDConverter in weblogic.ejb.utils ...package.
you may write a deployment descriptor.txt and give this as argument to this class file which creates ejb-jar.xml and weblogic-jar.xml files and you can place these files into META-INF directory.then jar them.and compile with ejbc

java weblogic.ejb.utils.DDConverter DeploymentDescriptor.txt is the command (u may verify.this is in weblogic 5.1 ver)
then yr.problem may be solved.
hello!
visit www.javaworld.com
there is a topic regarding Runtime class.

Originally posted by Karthikeyan Vaidiswaran:
Hi,
I tried to invoke Internet Explorer using the following piece of code.
// code to open ie
public class demo1 {
public static void main(String as[]){
Runtime r =Runtime.getRuntime();
Process p=null;
try{
p=r.exec("notepad");
}
catch(Exception e){
System.out.println(e.getMessage());
}
}
}
I got the error "Create process: iexploe error=2"
Please help in this reagrd.
Thanx
Karthik


21 years ago
hi!
the following will work
String myDate="";
if(myDate.equals(""))
{
st.setString(3,myDate);
}
else
{
Date d=Date.valueOf(myDate);
st.setDate(3,d);
}