|
|
Re: The package xxx is not accessible [message #1816101 is a reply to message #1816066] |
Mon, 21 October 2019 09:18 |
Andrea Vt Messages: 2 Registered: October 2019 |
Junior Member |
|
|
Hello and thank you for your answer.
First - english is not my first language - so that could be a problem to express me correct
==================
EDIT later than the rest
- It is as it is - reinstalling Eclipse does not change the facht, that no include works
- jdk from sun did not work, so I changed back to open-jdk
I'm a little bit lost in space
Best regards Andrea
========================================
What I realised just now:
If I try "import java.awt.*;" I also have an uncompilable system -> "The package java.awt is not accessible.
Probably al the text below is not as important as I thougt a couple of minutes ago when i started typing :-)
I remove all and reinstall Eclipse on my mint-machine and if that don't brings up a better situation I make a trial using Windows ....
Till than - perhaps somebody has an idea what has gone wrong ....
========================================
Yes I've done all 3 steps below more than once and I triednit in different ways. So I also added the jar during creating the project. (Over the weekend at home with a very old version of Eclipse - sorry, I forgot to note the version - this gave me a compilable project)
I thougt that the fact that the Editor offers me the completion typing "import com.jcra..." signalizes, that I had done the stepps successfuly - I supposed that it is only a thing of the runtime
To make situation clearer and the discussion easier:
- I just created a new Java project called "Test3" - not choosen any "specials"
- I added a main class ch.andrea.test3.test3main just printing out "Hello world" - of course that runs perfect :-)
- Package Explorer - Test3 - context menu - Build path - configure build path - Tab libraries - select "Module path" - add external jars - jsch-0.1.55.jar
Of course the jar is now listed just oder the entry "JRE system library ..." and in the Test3-Project under "referend libraries"
--> The situation is exactly the same as described in the first post
[Updated on: Mon, 21 October 2019 11:28] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.09054 seconds