![]() |
problems with EE
when running a program I get the following error
Code:
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory]Thanks |
Re: problems with EE
is this class in your classpath?
|
Re: problems with EE
Yes
Code:
paul@paul-laptop:~/Documents/eprogramming/week5$ echo $CLASSPATH |
Re: problems with EE
try placing fscontext.jar and providerutil.jar
into JAVA_HOME\jre\lib\ext, where JAVA_HOME is the root directory of your Java 2SDK installation. |
Re: problems with EE
Problem solved.
The problem was that when I was running the program I was saying Code:
java -cp . nameBefore I just run java like this as the class not found error came up. I amended the CLASSPATH with the dot. So all I need to type was java name. Thank you for your help |
| All times are GMT +5.5. The time now is 17:00. |