linux - java.io.FileNotFoundException: .. (No such file or directory) -


i had developed java project correctly working on eclipse under windows os. wanted switch ubuntu. took full workspace folder (included resources file required running) windows , imported in ubuntu's eclipse.

most surprisingly following exception:

[ test ] error: unable create myclass object.  check implementation requirements! java.lang.reflect.invocationtargetexception @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:422) @ test.main(test.java:183) caused by: java.io.filenotfoundexception: raw\file1.txt (no such file or directory) ... 

but such directory , such file exist in current path.

why may happen?

use forward slash, '/', it's 1 work in file paths both windows , non-windows platforms.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -