i get a package does not exist error when i try to do the "I think being a programmer is cool lesson". At the top of the page is
package com.codegym.task.task01.task0101;
Is there a way to correct this or do i just continue? Here is a link to the task:
https://codegym.cc/tasks/com.codegym.task.task01.task0101
Stanley Overby
Level 0
Level 0, Lesson 3 package error
Under discussion
Comments (7)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
17 December 2020, 16:07
Where are you doing the task? If you are in an IDE outside of the web page then you have probably set it up incorrectly, which is to be expected if you are just learning how to program. You won't be able to just copy and paste the code and have it work, the package should be the directory the code is contained in for the IDE to be able to run it.
Soon you'll be encouraged to use IntelliJ with the Codegym plugin, which will handle a lot of the proper set up for you.
If you are using Codegym's online IDE then hit the reset button to fix the problem and try again.
0
Stanley Overby
17 December 2020, 17:28
I'm using the IDE that's within this website. You should see it if you go to https://codegym.cc/tasks/com.codegym.task.task01.task0101
0
Guadalupe Gagnon
17 December 2020, 18:01
then hit the reset button and try again
0
Stanley Overby
17 December 2020, 18:19
I did that but I still get the same error. I even tried to comment out that line and even delete it but it still wont compile. I'm not sure why they have that in there for such a beginner lesson. Am I the only one that's getting this error?
0
Guadalupe Gagnon
17 December 2020, 18:37
If you already reset it and it still does not work when you hit the run button (before you add any code), you may have to contact codegym and report it. I can't see your screen so I don't know if it is something you may have inadvertently done or if there was a bug introduced since the last website upgrade on that task.
You can try resetting the task again, then immediately hit the run button before you add anything and see if it actually runs with no errors. If it does then it is something that you are doing in your code.
0
Stanley Overby
17 December 2020, 19:33
I ran it without my code and then it gave me an error that the output was too short. then I added my code back in and it worked. I would have sworn that it was the same exact code as before but at least it went through and now I can move onto the next lesson
+1
Guadalupe Gagnon
17 December 2020, 19:37
Glad it resolved. I wish I could have seen your screen, I would have had a diagnosis for your problem. Either way, as long as you can continue all good. Good luck!
0