|Re: JNI error and JAVA exception [message #1808510 is a reply to message #1808497]
|Wed, 26 June 2019 04:38
| Ed Merks
Registered: July 2009
All of your projects have a red exclamation mark on the them. This indeed suggests there is a problem with the classpath. In both cases you are showing the IDE with the debug perspective selected (bug icon in upper right corner). In the Java perspective (icon with the J on in before the bug icon in the upper right), there is a Problems view (tab in the same area as the Console view) and there will you will error messages.
Also I notice that some of your Java files are not in a source folder; such files will have a J icon but the J will be a transparent outline of a J rather than like the ones in a source folder (where the root source folder has a little package icon in the upper left of the folder icon). Below a source folder, the folder structure must match the Java package declared in the Java file. So in your first picture, your Hallo.java is in a folder named Prog1Tools (under a source folder named src) so you must that it is in package Prog1Tools. Note that by convention package names should be lower case. In your second picture, it looks like you've compiled to produce byte code that will not run with Java 8. From the context menu of one of your Java projects using the last menu item, Properties, and use that to look at things like the Java Build Path and the Java Compiler properties. Or globally look at Window -> Preferences... -> Java -> Compiler and make sure that's set appropriately; likely have this set to something higher than Java 8 but only have a Java 8 JRE specified in the Java -> Installed JREs section of the preferences.
I'd suggest you Google for "eclipse java tutorial" and follow/read some of the basics...
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.03658 seconds