I get
Unreachable catch block for FileNotFoundExc eption. This exception is never thrown from the try statement body
when I do
try {
_help= new HelpMethod();
}catch(FileNotF oundException e){
}
It's try to create a log when I'm making HelpMethod
Any suggestion will be great,
Thank you
User Profile
Collapse
-
handle FileNotFoundException
I'm calling a method that need to open up the af.sh file.
Because the file does not exist, I get error:
java.io.FileNot FoundException: \file\af.sh (The system cannot find the path specified)
I can't change this method but I want to run all other parts of the method.
Is there anything I can do to catch this exception while continue running the method? -
yes and I'm try to connect to it
Failed to retrieve RMIServer stub: javax.naming.Co mmunicationExce ption [Root exception is java.rmi.Connec tIOException: error during JRMP connection establishment; nested exception is:
java.net.Socket TimeoutExceptio n: Read timed out]...Leave a comment:
-
Failed to retrieve RMIServer stub: javax.naming.Co mmunicationExce ption [Root exception is java.rmi.Connec tIOException: error during JRMP connection establishment; nested exception is:
java.net.Socket TimeoutExceptio n: Read timed out]...Leave a comment:
-
Failed to retrieve RMIServer stub
Failed to retrieve RMIServer stub: javax.naming.Co mmunicationExce ption
Any idea what this error means and how to fix it? -
Does anyone know what these error means?
Hello,
I'm running my rmi client and got the following errors.
java.io.FileNot FoundException: \logs\new.log (The system cannot find the path specified)
at java.io.FileOut putStream.openA ppend(Native Method)
at java.io.FileOut putStream.<init >(Unknown Source)
at java.io.FileOut putStream.<init >(Unknown Source)
and
Caused by: java.security.A ccessControlExc eption:... -
I'm not sure where I messed up. but after I restart and reset all my environment variables I got the CLASSPATH method to work.
Thank you very muchLeave a comment:
-
-
Java - Importing from a Jar file hav touble with set CLASSPATH
Hello experts,
I'm try to import java file in unix.
Under bash, I tried
export CLASSPATH=/blah/blah/some.jar:/blah/some2.jar
The CLASSPATH variable was initially undefined.
and when I try to compile my java program, I get error message
error: error reading /blah/blah/some.jar; error in opening zip file
Any suggestions? or what I mit be doing wrong?
Thank...
No activity results to display
Show More
Leave a comment: