• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Is my Path installed correctly?

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello good day, this pc is new, I installed it and I had problems with the IDE...so I uninstalled it and reinstalled it. Can you help me?
The problem is that I can not compile code ...I get errors ..it appears that I use symbols that I really do not use and also, errors in Neatbeans..it keeps loading minutes for a simple hello world.
Thanks
https://ibb.co/y0sx0rG
 
Marshal
Posts: 3871
541
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the interesting part of the image:

 
Marshal
Posts: 75857
361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Please show us the full error messages and your full PATH. Is the PATH set for the user or the system? Please try the following instructions at a command line:-
 
Campbell Ritchie
Marshal
Posts: 75857
361
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is often necessary to have the PATH to Java18 before any of the otheer PATH components.
 
Saloon Keeper
Posts: 25649
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When using an IDE, neither your PATH nor your CLASSPATH definitions are used. Instead, the IDE has its own private definitions. They are generally set up when the IDE is installed - although for a delete-and-re-install, there may be junk definitions left from the previous installation.

For compiling and editing code within the IDE, each project (if it's like Eclipse) can use a different JDK, The IDE should have the ability to register JDKs and give them names that can be associated with projects. Often there's a default definition for projects that don't explicitly request a specific JDK. The JDKs for projects don't have to be the same JDK that runs the IDE itself. The IDE is a Java Application, but it has a binary launcher, which sets the IDE's JVM parameters from the IDE's configuration. Which, like I said, is not looking at the OS or local command-window PATH/CLASSPATH.
 
Bruno Valdeolmillos
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ron McLeod wrote:Here is the interesting part of the image:


You're right! How did you enlarge that part of the image without pixelating it? I tried it in paint and it pixelated. Thanks
 
Bruno Valdeolmillos
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Welcome to the Ranch

Please show us the full error messages and your full PATH. Is the PATH set for the user or the system? Please try the following instructions at a command line:-

version-java-y-javac.png
[Thumbnail for version-java-y-javac.png]
 
Campbell Ritchie
Marshal
Posts: 75857
361
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you.
I found your Screenshot difficult to read but the PATH seemed to be set up correctly and both --version calls showed you are running Java18. So the problem, as Tim suggests, is elsewhere. I presume you can compile and run code from the command line with no difficulty.
 
Bruno Valdeolmillos
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:It is often necessary to have the PATH to Java18 before any of the otheer PATH components.


so you say that it should look like this image?in the upper part?
path-arriba.png
[Thumbnail for path-arriba.png]
 
Bruno Valdeolmillos
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
when I want to reinstall NB I get this, what should I do? thanks
beansinstala.png
[Thumbnail for beansinstala.png]
 
Tim Holloway
Saloon Keeper
Posts: 25649
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either you managed to launch the installer twice (I do this often) or a previous installation failed and didn't clean up.

Click the "Cancel" button, launch the Task Manager and check to see if there is another install running, If so, wait for it to pop up progress dialogs.

If there isn't, you should probably reboot and then delete the "." files before launching the installer again.
 
Bruno Valdeolmillos
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:Either you managed to launch the installer twice (I do this often) or a previous installation failed and didn't clean up.

Click the "Cancel" button, launch the Task Manager and check to see if there is another install running, If so, wait for it to pop up progress dialogs.

If there isn't, you should probably reboot and then delete the "." files before launching the installer again.


with any special uninstaller or just accessing that folder and putting delete?
 
Tim Holloway
Saloon Keeper
Posts: 25649
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bruno Valdeolmillos wrote:
with any special uninstaller or just accessing that folder and putting delete?


No special program. Just File Manager or Command Line.

Due to the way that Windows locks files (by name), if you can't delete it, that would mean some program somewhere was open on it. That's why I recommended rebooting.
 
Campbell Ritchie
Marshal
Posts: 75857
361
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bruno Valdeolmillos wrote:. . . so you say that it should look like this image?in the upper part?

Don't know what that image shows because it is so different from what you showed before. We don't find such images at all easy to work with. If you copy and paste from the command prompt, (echo %PATH%) you will probably find that the PATH to Java18 is already at the beginning of the PATH, in which case no changes are required.
 
Tim Holloway
Saloon Keeper
Posts: 25649
183
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:

Bruno Valdeolmillos wrote:. . . so you say that it should look like this image?in the upper part?

Don't know what that image shows because it is so different from what you showed before. We don't find such images at all easy to work with. If you copy and paste from the command prompt, (echo %PATH%) you will probably find that the PATH to Java18 is already at the beginning of the PATH, in which case no changes are required.



But just to repeat, NetBeans isn't going to look at the Windows Control Panel environment settings. It keeps its setting internally. The Control Panel environment only applies to stuff you're running from a "DOS Command Line Window".
 
Campbell Ritchie
Marshal
Posts: 75857
361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tim is right; the problem with NetBeans is something different.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic