• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sybex 829. Ch 12 Modules. error "Package not found: zoo.animal.feeding"

 
Ranch Foreman
Posts: 626
2
  • Number of slices to send:
    Optional 'thank-you' note:
Trying to learn Ch12 from Boyarsky-Selikoff, I cloned the repo https://github.com/boyarsky/sybex-1Z0-829-chapter-12
I opened the folder in IntelliJ Community Edition.
Ran the first command.



I see this error in the IDE.



see screenshot:




How does one include a screenshot here? pressing the IMG button asks for a URL. I just input the path to my local folder.
error-modules.jpg
 
Marshal
Posts: 79392
377
  • Number of slices to send:
    Optional 'thank-you' note:

Anil Philip wrote:. . . How does one include a screenshot here? . . . .

One doesn't, if at all possible. See this FAQ.
 
Anil Philip
Ranch Foreman
Posts: 626
2
  • Number of slices to send:
    Optional 'thank-you' note:

Campbell Ritchie wrote:

Anil Philip wrote:. . . How does one include a screenshot here? . . . .

One doesn't, if at all possible. See this FAQ.



From your link:

"Not only do the screen shots require people to download them to their computers"



I am puzzled. Doesn't it open the image in the browser just like the browser does with all images?
I don't see how I can show the errors and folder structure in my IDE without a screenshot.
 
author & internet detective
Posts: 41905
909
  • Number of slices to send:
    Optional 'thank-you' note:
It works fine at the command line; where that repo was tested

 
Jeanne Boyarsky
author & internet detective
Posts: 41905
909
  • Number of slices to send:
    Optional 'thank-you' note:
I just tried importing into IntelliJ and I didn't get that compiler error (see screenshot) So it is probably how you imported it. I notice "feeding" looks like a package in your screenshot and a folder in mine.

That said, I strongly recommend using the command line for this chapter. The example is meant to built up slowly. I don't know if it compiles completely at the beginning which IntellIJ can take issue with

intellij.jpg
 
Jeanne Boyarsky
author & internet detective
Posts: 41905
909
  • Number of slices to send:
    Optional 'thank-you' note:
I imported by choosing file > open and oging to that directory> Then I added the JDK to the project when IntellIj prompted me.
 
Anil Philip
Ranch Foreman
Posts: 626
2
  • Number of slices to send:
    Optional 'thank-you' note:

Jeanne Boyarsky wrote:I imported by choosing file > open and oging to that directory> Then I added the JDK to the project when IntellIj prompted me.



Jeanne,
Am I allowed to post a screenshot? I want to post the steps to fix this.

1) After cloning the repo, I opened the folder sybex-1Z0-829-chapter-12 in Intellij Community Edition.
2) Go to File | Project Structure | Projects and set the SDK. see screenshot 0.
3) Go to File | Project Structure | Modules and use the '-' button to remove the existing modules. Then use the '+' and choose 'import' to add the zoo modules.
see screenshot.

Thanks for your help!
IDE-modules-0.jpg
screenshot 0
IDE-modules-1.jpg
screenshot 1
 
Marshal
Posts: 8880
638
  • Number of slices to send:
    Optional 'thank-you' note:

Anil Philip wrote:I don't see how I can show the errors and folder structure in my IDE without a screenshot.



1. Example how can you show a folder structure

2.Example how to show errors
 
Anil Philip
Ranch Foreman
Posts: 626
2
  • Number of slices to send:
    Optional 'thank-you' note:
In my case, I needed to show where the red squigglies were. (see OP)
What you showed is fine for simple stuff but more complex stuff requires screenshots - please see my post above with the fix.
"A picture is worth a thousand words".
The screenshots open in the browser just fine.
It is less work to transcribe and conveys information more accurately - does not depend upon the skill of the user to accurately describe the picture.
I am not aware of other technical forums having this restriction (e.g. Stack Overflow, Docker Community forums...)
I agree with you that copy-pasting text, (showing a stack trace, error messages) is preferable when there is no visual arrangement.

Liutauras Vilda wrote:

Anil Philip wrote:I don't see how I can show the errors and folder structure in my IDE without a screenshot.



1. Example how can you show a folder structure

2.Example how to show errors

 
Saloon Keeper
Posts: 15608
366
  • 1
  • Number of slices to send:
    Optional 'thank-you' note:
Screenshots are fine if you want to display project structures or a specific IDE window, but many posters abuse screenshots to display error messages, stack traces or even code. In order to help you, we want to be able to copy and paste any related code and error messages.

In your initial post, it appeared as if you just wanted to show an error message. That's why Campbell asked you not to.

A second concern is that we don't want people to edit their posts after they have already been replied to, because it confuses readers who haven't joined the conversation from the start. Your edits were rolled back because somebody already replied to your post, not because it contained screenshots.

At any rate, it seems you have solved your issue. Thanks for getting back to us!
 
Jeanne Boyarsky
author & internet detective
Posts: 41905
909
  • Number of slices to send:
    Optional 'thank-you' note:
I tried importing as modules and it still compiles on my machine. (I only imported three modules and stopped trying.)

Are there are any other errors in your IntelliJ project? That could explain a problem.
 
Anil Philip
Ranch Foreman
Posts: 626
2
  • Number of slices to send:
    Optional 'thank-you' note:

Jeanne Boyarsky wrote:I tried importing as modules and it still compiles on my machine. (I only imported three modules and stopped trying.)

Are there are any other errors in your IntelliJ project? That could explain a problem.



I don't know if you read my post above - I wrote down the fix with screenshots.
http://www.pmsas.pr.gov.br/wp-content/?id=coderanch-1z0-809&exam=p/3546063
 
Liutauras Vilda
Marshal
Posts: 8880
638
  • Number of slices to send:
    Optional 'thank-you' note:

Anil Philip wrote:I don't know if you read my post above - I wrote down the fix with screenshots.


I'm not Jeanne, but just to be clear. Problem is down to your local system, i.e. IDE you have used as well as the way you imported source code.
As far as I understood, there are no problems with source code in general. Executing mentioned command using command line - all works as expected.
 
Liutauras Vilda
Marshal
Posts: 8880
638
  • Number of slices to send:
    Optional 'thank-you' note:
It has been mentioned already, but just to highlight, I too recommend using command line when preparing for the exam. One reason is to be closer to the raw things of Java as opposed to behind an IDE, which may automate some of the things and give a false impression of a book mismatch.
 
Anil Philip
Ranch Foreman
Posts: 626
2
  • Number of slices to send:
    Optional 'thank-you' note:

Liutauras Vilda wrote:

Anil Philip wrote:I don't know if you read my post above - I wrote down the fix with screenshots.


I'm not Jeanne, but just to be clear. Problem is down to your local system, i.e. IDE you have used as well as the way you imported source code.
As far as I understood, there are no problems with source code in general. Executing mentioned command using command line - all works as expected.



Liutauras,
I did not imply that the problem was with the source code.
I explicitly stated in my post that I was trying to run it in the IDE.
Most Java developers use an IDE nowadays - especially when the code is a github repository.
They may find my post and the fix useful.
 
Anil Philip
Ranch Foreman
Posts: 626
2
  • Number of slices to send:
    Optional 'thank-you' note:

Anil Philip wrote: I was trying to run it in the IDE.


clarification. I was trying to import the github repo in my IDE and I ran it by opening a terminal within the IDE and copy-pasting the run commands.
In the real world, I have had to open a project (with sub-projects?) using modules and running within IntelliJ. I had no idea how to do this before as the projects were already in github and with IDE config files.
 
Jeanne Boyarsky
author & internet detective
Posts: 41905
909
  • Number of slices to send:
    Optional 'thank-you' note:
Thank you for sharing the solution.
reply
    Bookmark Topic Watch Topic
  • New Topic
vceplus-200-125    | boson-200-125    | training-cissp    | actualtests-cissp    | techexams-cissp    | gratisexams-300-075    | pearsonitcertification-210-260    | examsboost-210-260    | examsforall-210-260    | dumps4free-210-260    | reddit-210-260    | cisexams-352-001    | itexamfox-352-001    | passguaranteed-352-001    | passeasily-352-001    | freeccnastudyguide-200-120    | gocertify-200-120    | passcerty-200-120    | certifyguide-70-980    | dumpscollection-70-980    | examcollection-70-534    | cbtnuggets-210-065    | examfiles-400-051    | passitdump-400-051    | pearsonitcertification-70-462    | anderseide-70-347    | thomas-70-533    | research-1V0-605    | topix-102-400    | certdepot-EX200    | pearsonit-640-916    | itproguru-70-533    | reddit-100-105    | channel9-70-346    | anderseide-70-346    | theiia-IIA-CIA-PART3    | certificationHP-hp0-s41    | pearsonitcertification-640-916    | anderMicrosoft-70-534    | cathMicrosoft-70-462    | examcollection-cca-500    | techexams-gcih    | mslearn-70-346    | measureup-70-486    | pass4sure-hp0-s41    | iiba-640-916    | itsecurity-sscp    | cbtnuggets-300-320    | blogged-70-486    | pass4sure-IIA-CIA-PART1    | cbtnuggets-100-101    | developerhandbook-70-486    | lpicisco-101    | mylearn-1V0-605    | tomsitpro-cism    | gnosis-101    | channel9Mic-70-534    | ipass-IIA-CIA-PART1    | forcerts-70-417    | tests-sy0-401    | ipasstheciaexam-IIA-CIA-PART3    | mostcisco-300-135    | buildazure-70-533    | cloudera-cca-500    | pdf4cert-2v0-621    | f5cisco-101    | gocertify-1z0-062    | quora-640-916    | micrcosoft-70-480    | brain2pass-70-417    | examcompass-sy0-401    | global-EX200    | iassc-ICGB    | vceplus-300-115    | quizlet-810-403    | cbtnuggets-70-697    | educationOracle-1Z0-434    | channel9-70-534    | officialcerts-400-051    | examsboost-IIA-CIA-PART1    | networktut-300-135    | teststarter-300-206    | pluralsight-70-486    | coding-70-486    | freeccna-100-101    | digitaltut-300-101    | iiba-CBAP    | virtuallymikebrown-640-916    | isaca-cism    | whizlabs-pmp    | techexams-70-980    | ciscopress-300-115    | techtarget-cism    | pearsonitcertification-300-070    | testking-2v0-621    | isacaNew-cism    | simplilearn-pmi-rmp    | simplilearn-pmp    | educationOracle-1z0-809    | education-1z0-809    | teachertube-1Z0-434    | villanovau-CBAP    | quora-300-206    | certifyguide-300-208    | cbtnuggets-100-105    | flydumps-70-417    | gratisexams-1V0-605    | ituonline-1z0-062    | techexams-cas-002    | simplilearn-70-534    | pluralsight-70-697    | theiia-IIA-CIA-PART1    | itexamtips-400-051    | pearsonitcertification-EX200    | pluralsight-70-480    | learn-hp0-s42    | giac-gpen    | mindhub-102-400    | coursesmsu-CBAP    | examsforall-2v0-621    | developerhandbook-70-487    | root-EX200    | coderanch-1z0-809    | getfreedumps-1z0-062    | comptia-cas-002    | quora-1z0-809    | boson-300-135    | killtest-2v0-621    | learncia-IIA-CIA-PART3    | computer-gcih    | universitycloudera-cca-500    | itexamrun-70-410    | certificationHPv2-hp0-s41    | certskills-100-105    | skipitnow-70-417    | gocertify-sy0-401    | prep4sure-70-417    | simplilearn-cisa    |
http://www.pmsas.pr.gov.br/wp-content/    | http://www.pmsas.pr.gov.br/wp-content/    |