Monday, April 19, 2021

how to set the default java platform in NetBeans

1. Open the netbeans.conf file located in C:\Program Files\netbeans 11.0\etc directory.

2. Search the file for netbeans_jdkhome.

3. Change the value of the netbeans_jdkhome to the desired java path and save the change.

4. Restart the NetBeans IDE.

-----------------------------------------------------------------------------------------------------------------


If you have ever asked the questions below, you will benefit from reading this book.
What is the meaning of life?
Why do I have to suffer?
How can I have the life I like to have?
How can I be the person I want to be?
How can I have good and harmonious relations with others?

What is the true meaning of spiritual practice?  Check it out here. 

Thursday, April 15, 2021

Not copying library C:\MyProjects\ImportantProject , it's a directory.

 When I was doing a Clean and Build on the ImportantProject in NetBeans, I got the following messages in the Output.

Created dir: C:\MyProjects\ImportantPorject\build

Updating property file: C:\MyProjects\ImportantPorject\build\built-jar.properties

Created dir: C:\MyProjects\ImportantPorject\build\classes

Created dir: C:\MyProjects\ImportantPorject\build\empty

Created dir: C:\MyProjects\ImportantPorject\build\generated-sources\ap-source-output

Compiling 35 source files to C:\MyProjects\ImportantPorject\build\classes

Copying 21 files to C:\MyProjects\ImportantPorject\build\classes

compile:

Copying 1 file to C:\MyProjects\ImportantPorject\build

Not copying library C:\MyProjects\JRx30 , it's a directory.

Copy libraries to C:\MyProjects\Vendors\lib.


When I expanded the ImportantProject and then the Libraries folder, I saw that the C:\MyProjects\ImportantPorject had been part of the libraries. 

After removing the C:\MyProjects\ImportantPorject from the libraries, the red line of message disappeared.

-----------------------------------------------------------------------------------------------------------------


If you have ever asked the questions below, you will benefit from reading this book.
What is the meaning of life?
Why do I have to suffer?
How can I have the life I like to have?
How can I be the person I want to be?
How can I have good and harmonious relations with others?

What is the true meaning of spiritual practice?  Check it out here. 


Tuesday, April 13, 2021

ORA-03113: end-of-file on communication channel

 When you were trying to start the Oracle database, you had the following on your screen.

SQL> STARTUP

ORACLE instance started.


Total System Global Area 6442450944 bytes

Fixed Size                  2938792 bytes

Variable Size            1224738904 bytes

Database Buffers         5200936960 bytes

Redo Buffers               13836288 bytes

ORA-03113: end-of-file on communication channel

Process ID: 13761

Session ID: 237 Serial number: 2961


To fix this problem, first check if it was due to no free memory available for the database. Run the command free -g as the root user.

[root@testMachine]# free -g

              total        used        free      shared  buff/cache   available

Mem:              3           0           2           0           0           2

Swap:             3           3           0


If it is necessary, remove some of the old log files in the directory of  $ORACLE_BASE/diag.

Reboot the linux machine to release the memory occupied by processes.

Restart the database.

-----------------------------------------------------------------------------------------------------------------


If you have ever asked the questions below, you will benefit from reading this book.
What is the meaning of life?
Why do I have to suffer?
How can I have the life I like to have?
How can I be the person I want to be?
How can I have good and harmonious relations with others?

What is the true meaning of spiritual practice?  Check it out here.