You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to work with single java file without project because of learning purpose. If I create a Java file under a project (that maybe maven or ant etc.), then it will be too heavy and will take more time & cpu to run in the output panel.
So I feel comfortable to run single java file. While learning any programming language, it needs to run a file again and again to practice & understand code.
But the main problem is when I run a single java file with some simple user input statement, then I am unable to type in the output to give user input.
On the other hand if I run same java code under a project (maven or others), then it is possible to type in the output panel to give user input.
It means, typing in the output panel is not possible with single java file.
But why?
Please, I am seeking for help to fix this issue as it become possible to type in the output panel with single java file.
I also attached two screenshots where the problem is simply visible.
Language / Project Type / NetBeans Component
No response
How to reproduce
Step 1: Find out the config file of the output panel, Step 2: Look for properties which are associated for single java file, Finally serach out the typing control for user input.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10 Pro
JDK
JDK 21
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered:
mbien
added
Java
[ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
and removed
needs:triage
Requires attention from one of the committers
labels
Mar 8, 2024
the single file launcher seems to use a very basic output window. e.g stop button is missing too. This is something which would be good to improve I agree.
If I create a Java file under a project (that maybe maven or ant etc.), then it will be too heavy and will take more time & cpu to run in the output panel.
I highly doubt that this makes a difference. Ant projects should have very low overhead. Maven projects should start in less than a second on most systems and if you configure NetBeans to use mvnd (https://github.com/apache/maven-mvnd) it starts almost instantly.
junichi11
added a commit
to junichi11/netbeans
that referenced
this issue
Jun 6, 2024
Apache NetBeans version
Apache NetBeans 21
What happened
I like to work with single java file without project because of learning purpose. If I create a Java file under a project (that maybe maven or ant etc.), then it will be too heavy and will take more time & cpu to run in the output panel.
So I feel comfortable to run single java file. While learning any programming language, it needs to run a file again and again to practice & understand code.
But the main problem is when I run a single java file with some simple user input statement, then I am unable to type in the output to give user input.
On the other hand if I run same java code under a project (maven or others), then it is possible to type in the output panel to give user input.
It means, typing in the output panel is not possible with single java file.
But why?
Please, I am seeking for help to fix this issue as it become possible to type in the output panel with single java file.
I also attached two screenshots where the problem is simply visible.


Language / Project Type / NetBeans Component
No response
How to reproduce
Step 1: Find out the config file of the output panel,
Step 2: Look for properties which are associated for single java file,
Finally serach out the typing control for user input.
Did this work correctly in an earlier version?
No / Don't know
Operating System
Windows 10 Pro
JDK
JDK 21
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: