File Not Found Exception

banging the head trying to find why the file is not loaded even after adding to classpath. The Simple thing to do is
Add the below lines so that the system shows where the classpath location it is trying to access.

File file = new File("file.txt");
System.out.println(file.getCanonicalPath());

Comments

Popular posts from this blog

'jasypt.encryptor.password' or one of ['jasypt.encryptor.privateKeyString', 'jasypt.encryptor.privateKeyLocation'] must be provided for Password-based or Asymmetric encryption

Field or property 'jobParameters' cannot be found on object of type 'org.springframework.beans.factory.config.BeanExpressionContext' - Spring Batch

java.security.spec.InvalidKeySpecException: Only RSAPrivate(Crt)KeySpec and PKCS8EncodedKeySpec supported for RSA private keys