• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Error occurred during initialization of boot layer java.lang.LayerInstantiationException:

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was using jGrasp to write my program, however, it was suggested I try Eclipse in one of my posts on here.  My program runs in jGrasp, but I get an error when I attempt to run it in Eclipse . I have the package named Brown_5, and my class is Brown_5 (saved under the same name as well). I selected it to run in Java 10.0.2 which is what I have installed on my PC. I did attempt Java 1.8 as suggested in another form with no luck. I prefer Eclipse since it debugs as you write the code, and formats like a charm. I am just struggling with getting it to run my program.  Any suggestions?

Error occurred during initialization of boot layer
java.lang.LayerInstantiationException: Package jdk.internal.jimage.decompressor in both module jrt.fs and module java.base
 
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you compile and run the project at the command line?  I suspect it will, since it runs in jGrasp.  If not, you may need to uninstall Java (and maybe all versions of Java).

Works at the command line?  Then you may need to uninstall/reinstall Eclipse.  Don't remove the workspace folder.
 
Elaina Brown
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It was an issue with Java. I had installed Java 11, and also had versions 10 and 8. I now just have version 10.0.2 ( it will not run with the latest version).
It works like a charm now. Thank You. Sorry for the late response.
 
Knute Snortum
Sheriff
Posts: 7111
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm glad you figured it out!  Thanks for posting your solution.
reply
    Bookmark Topic Watch Topic
  • New Topic