Trying to read very large (MLOC), macro heavy C programs has a very long learning curve.A comparable ( or larger) Java program is no harder to dip into than a small Java program. Window Creation Test The following keys are available: ESCAPE: Exit test ARROW Keys: Move window when in non-fullscreen mode L: List selectable display modes 0-8: Selection of display modes F: Toggle fullscreen SHIFT-F: Toggle fullscreen with Display.destroy()/create() cycle Exception in thread "main" Hi vanchin From your question, i assumed that, you are trying load a native library There are two ways you can load the native library 1. System.load(String) Library(String) uses the default path. System.load(String) uses the absolute path Assume, you are working on the windows environment The JVM will search for your dll file in java.system property If your dll directory is not specified in the java.system property, you get this error.
This problem most often shows up because the file does not exist, has incorrect file permissions, or can not be located by the JVM. If this is on Windows, it's looking for a file named "Common Control.dll".
Check to see if this file exists and what it's file permissions are. Hi Alex, Thanks, I found the files, there are about 4 dll files. How to find out that JVM is looking for a '.dll' or '.so' module from the exception thrown? From memory JNI is a bit of a pain (on Windows any way) in that it can also say it can't find things when it means it can't load things so if your DLL needs another DLL you can sometimes get this error."Common Control" is the name of the native library that Java is looking for.
You can't define your own operators which act in the same way though.
For a Java-like (and JVM-based) language which @tuğrulbüyükışık: There are already wrappers for all the existing primitive types - but if you wanted to create your own new wrapper type, you wouldn't be able to make it behave like the other ones, as they have specific support in the language. I don't see how delegates break OOP principles - you need to be much more precise than that in your objections.
No, Java doesn't support user-defined operator overloading.